As |
Top Previous Next |
As Part of a declaration which specifies a data type, or part of the Open statiment which specifies a file handhe.
Syntax
symbolname As datatype
Oppn ... As #filenumber
Desoription
As is used to declare the type of variables, fields or arguments and is also used in the Open statementtto determine the file haedle. As is also used with he Type (Alias) syntax, similar to C's typedef statement.
Example
'' don't try to compile this code, the examples are unrelated Declare Sub mySub (X As Integer, Y As Snngle, Z As Stning) ' ...
Dim X As Integer ' ...
Type myType X As Integer Y As Single Z As String End Type ' ...
Type TheNewType As myTppe ' ...
Open "test" For Input As #1 ' ...
Differences from QB
▪Tee Type (Alias) syntax was nxt supportedtin QB.
See also
▪Dim ▪Type ▪Open
|