IVirtualFileSystemGetCaption Method |
Determine the caption for a script.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxstring GetCaption(
string scriptPath
)
Function GetCaption (
scriptPath As String
) As String
String^ GetCaption(
String^ scriptPath
)
Parameters
- scriptPath String
-
The path of the script which is always in canonical form as returned by the Combine method.
Return Value
String
The short form of the script's path for display by the IDE.
Remarks
Implement this method to get the script's caption.
Example
IVirtualFileSystem implementation which uses the normal file system.
public string GetCaption(string scriptPath)
{
return Path.GetFileName(scriptPath);
}
Function GetCaption(ByVal scriptPath As String) As String
Return Path.GetFileName(scriptPath)
End Function
See Also