Page 1 of 1

how does the "as" operator work?

Posted: Mon Nov 19, 2007 6:08 pm
by jorgejones
when i try to use the AS operator it raises an error, how can i use it?

i tried

foreach temp() as var
....

yet it doesnt let me whats the point of it being highlighted if its not supported?

Posted: Mon Nov 19, 2007 6:30 pm
by freak
The As keyword is only for use together with Import:

Code: Select all

Import "xyz.lib"
  myFunction() As "some_weird_name"
EndImport

Posted: Mon Nov 19, 2007 6:34 pm
by Demivec
jorgejones wrote:when i try to use the AS operator it raises an error, how can i use it?

i tried

foreach temp() as var
....

yet it doesnt let me whats the point of it being highlighted if its not supported?
The "AS" operator is used between Import and EndImport.
Look to the user manual for specifics on those commands.

Posted: Tue Nov 20, 2007 12:58 pm
by jorgejones
oh i thought it could be used for assigning a variable in a loop :(
sorry