Difference between revisions of "FolderItem.CreateVirtualVolume"

From Xojo Documentation

m (Text replacement - "{{Deprecated" to "{{DeprecatedItem")
 
Line 1: Line 1:
{{Deprecated | version=2019r3 }}
+
{{DeprecatedItem | version=2019r3 }}
 
{{MethodBox
 
{{MethodBox
 
| name=CreateVirtualVolume
 
| name=CreateVirtualVolume

Latest revision as of 19:05, 3 September 2020

Method

FolderItem.CreateVirtualVolume() As VirtualVolume

Supported for all project types and targets.

Creates and formats a new VirtualVolume at the location specified by the FolderItem.

Example

This example creates a VirtualVolume.

Var vv As VirtualVolume
Var realFile As FolderItem
Var virtFile As FolderItem
Var output As TextOutputStream
realFile = GetFolderItem("VV")
vv = realFile.CreateVirtualVolume
If vv = Nil Then
MessageBox("Unable to create virtual volume")
Else
virtFile = vv.Root.Child("Virtual File.txt")
output = TextOutputStream.Create(virtFile)
output.Write("Hello world!")
End If

See Also

VirtualVolume