AliasInfoMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to AliasInfoMBS class.

AliasInfoMBS.InfoForAliasData(data as string) as AliasInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Alias MBS MacClassic Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Query information for alias data.
Example
dim folder as FolderItem = SpecialFolder.Desktop
dim m as new MacAliasMBS
dim error as Integer = m.Create(nil, folder)
if error = 0 then
dim data as string = m.GetRecord
dim info as AliasInfoMBS = AliasInfoMBS.InfoForAliasData(data)
MsgBox info.PathString
else
MsgBox "Failed to create the alias. Error "+str(error)
end if

Returns nil on any error.

AliasInfoMBS.InfoForSaveInfo(data as string) as AliasInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Alias MBS MacClassic Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Query information about alias in SaveInfo.
Example
dim folder as FolderItem = SpecialFolder.Desktop
dim SaveInfo as string = folder.GetSaveInfo(nil, FolderItem.SaveInfoDefaultMode)
dim info as AliasInfoMBS = AliasInfoMBS.InfoForSaveInfo(SaveInfo)
MsgBox info.PathString

This is for saveinfo data returns by GetSaveInfo function in folderitem class.
Returns nil on any error.

The items on this page are in the following plugins: MBS MacClassic Plugin.


💬 Ask a question or report a problem