Rapid-Q Documentation Project (RQDP) Release 01        AS Keyword
Credits & Contributions: Issues:
William Yu Original Documentation
Stanescu Serban New documents, Project management
Others: Rapid-Q Groups, Yahoo eGroups.
Current Document/Author/Revision/Release askeyword.html/Serban Stanescu/None/01

         1. Syntax
         2. AS Keyword context usage
         3. Examples
        
AS Keyword



1. Syntax:



         [statement],[varname] AS [vartype]


[statement] = any valid statement (see list below);
[varname] = variable name;
[vartype] = any supported variable type;

2. The AS keyword is used in these contexts:


         a) Dim Statement
         b) Declare Statement
         c) Create Statement
         d) Sub/Subi Statement
         e) Function/Functioni Statement
         f) Type Statement
        

3. Examples:


DIM Form AS QForm

FUNCTION Example AS Integer
END FUNCTION

SUB Example3(var1 AS Long)
END SUB

TYPE
     Text AS String
     TrackVar AS Variant
END TYPE

DECLARE SUB Test LIB "TEST.DLL" ALIAS "MyFunc" (S AS STRING)

CREATE MyMenu AS QMenuItem
END CREATE

Up



Index Contents up   Next page

Hosted by uCoz