Revision [12091]

This is an old revision of KeyPgAs made by ElSairon on 2008-01-04 09:52:05.

 

AS


Optional part of a declaration which specifies a data type, or part of the KeyPgOpen Open statement which specifies a file handle.

Syntax:
symbolname As DataType datatype
KeyPgOpen open ... As #filenumber
KeyPgType type ... As DataType datatype

Description:
As is used to declare the type of variables, fields or arguments and is also used in the KeyPgOpen Open statement to determine the file handle. As is also used with the KeyPgTypeAlias Type (Alias) syntax, similar to C's typedef statement.

Examples:
'' don't try to compile this code, the examples are unrelated
Declare Sub mySub (X As Integer, Y As Single, Z As String)
' ...

Dim X As Integer
' ...

Type myType
  X As Integer
  Y As Single
  Z As String
End Type
' ...

Type TheNewType As myType
' ...

Open "test" For Input As #1
' ...


Differences from QB:
See also:
Back to Miscellaneous
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode