| View previous topic :: View next topic |
| Author |
Message |
Quatre87 Valued Newbie
Joined: 07 Jan 2004 Posts: 25
|
Posted: Mon Mar 22, 2004 1:31 am Post subject: Read commands |
|
|
I Have a command saved into a variable, but after, when i want open the variable like a command, is imposible like
%%var = @knw(vvfr)
%%var
Well, i ask, and a user said me this code :
%%return = @Socket(......)
OPTION FIELDSEP,@CHR(32)
PARSE "%%command;%%params", %%return
if @EQUAL(%%command,Dialog)
DIALOG %%params
end
Goto evLoop
Well, the error has dissapeared, but now, the fuction isn't appear too. How i can do it? |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Mar 22, 2004 4:21 am Post subject: Re: Read commands |
|
|
| Quatre87 wrote: | I Have a command saved into a variable, but after, when i want open the variable like a command, is imposible like
%%var = @knw(vvfr)
%%var
|
Sorry, but this will not work.
%%var = @knw(vvfr) puts the "return" value of @knw(vvfr) into %%var.
Using %%var = "@knw(vvfr)" (quoted) puts the literal string into %%var.
And finally, you cannot call %%var as a command.
However, you can put a command in a subroutine and put the subroutine label name in %%var - then use GOSUB %%var (if that helps ya any).
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|