Navigation:  Miscellaneous >

Compiler Directive Examples

Print this Topic Previous pageReturn to chapter overviewNext page

 

       #ALL_LOC

 

       #endp                        //the other part of the #proc

 

       #fmt                        //include screen/report forms in the TAS 3 style.  See example.

 

       #ForceRWN                //will always create RWN file

 

       #FormsEncrypted  ThisIsTheEncryptionStringABCDEFG10101

                               //no quotes around the string

                               //the longer the better

 

       #inc C:\TAS\INCLUDE        //no quotes around file name.

                               //variables not allowed.

                               //extension is assumed to be .SRC

 

       #incx C:\TAS\INCLUDE        //no quotes around file name.

                               //variables not allowed.

                               //extension is assumed to be .SCY

 

       #lib C:\TAS\LOOKUPS        //no quotes around file name.

                               //variables not allowed.

                               //extension is assumed to be .LIB

 

       #libx C:\TAS\LOOKUPS        //no quotes around file name.

                               //variables not allowed.

                               //extension is assumed to be .LCY

 

       #MainMenu                //this program will replace default

                               //menu in runtime.

 

       #proc                        //the first part of the PROC/ENDP block

 

       #tdata 128                //adds 128k to temporary data buffer

 

       #udx                        //will compile both UDCs and UDFs

 

       #winform FirstScreen        //no quotes around file name.

                               //you can specify path during compilation only.

 

 

 

Routines within a library (either #lib or #libx) must start and stop with a specific line.  The beginning of the library routine must be a colon followed by the routine label name.  It must end with a double colon.  So, for example, a simple library routine that just displays a small message when the program calls the appropriate label:

 

:SimpleTest

#Proc

 

SimpleTest:

 msg 'This is a simple test'

 ret

 

#EndProc

::

 

Anything after the trailing double colon is ignored, so you can put anything you want there to help you document the routine.  Notice the use of the #Proc/#EndProc directives.  They are not required in a library routine, however, if you do use them they must be within the beginning colon and ending double colon.

 

 

 


Page url: http://www.cassoftware.com/tas/manual/compilerdirectiveexamples.htm