forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Read commands

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Quatre87
Valued Newbie


Joined: 07 Jan 2004
Posts: 25

PostPosted: Mon Mar 22, 2004 1:31 am    Post subject: Read commands Reply with quote

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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Mon Mar 22, 2004 4:21 am    Post subject: Re: Read commands Reply with quote

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. Confused

%%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). Wink

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group