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 


I Need run a command saved

 
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: Wed Jan 07, 2004 12:42 am    Post subject: I Need run a command saved Reply with quote

I'm using VDS4 and my problem is this : I have a command saves on a @XYZ(Any,thing) por example, and i need run it, How can i do it?
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Wed Jan 07, 2004 6:38 am    Post subject: Reply with quote

Hi Quatre87
Welcome to the VDSWORLD Forum.
Prolly you need to detail more what you are exactly looking for.
Do you want to:
Save some data to - a file / - a ini file / - registry and read it again?
Save a file from one place to another ?

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Quatre87
Valued Newbie


Joined: 07 Jan 2004
Posts: 25

PostPosted: Wed Jan 07, 2004 11:36 pm    Post subject: Reply with quote

sorry, a command saveD into a @BCD(xyz), a conection dll give a value @socket(.....) that i want use it like command. and i need run it, but when i put "@socket(....)" not work,
Back to top
View user's profile Send private message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Thu Jan 08, 2004 9:09 am    Post subject: Reply with quote

I think I know what you mean Wink

You can't use functions as commands; functions are ment for returning data from vds (or an external dll), and loading it in a variable, or using it as a parameter of a command.

Like this:
Code:

rem We'll load the data returned by @file(myfile.txt, Z) in %%MyVar
%%MyVar = @file(myfile.txt, Z)
info The filesize of 'myfile.txt' is %%MyVar kB

rem And now we'll use a function as a parameter for a command
file rename, myfile.txt, @item(1)


I hope this is what you want to know Smile
Best regards,

Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Quatre87
Valued Newbie


Joined: 07 Jan 2004
Posts: 25

PostPosted: Sun Jan 18, 2004 9:57 pm    Post subject: Reply with quote

but.. if the fuction data that i have saved i need run it, how can i do it? or is impossible?
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Sun Jan 18, 2004 10:17 pm    Post subject: Reply with quote

Looks to me like you want something like:
Code:

%%command = @socket(....)
REM Sets command to something like DIALOG SET,Whatever
%%command
REM Does the DIALOG SET

If that is what you want..you can't do that in VDS, although it'd probably be nice for quite a few of us.

You can do something like:
Code:

%%return = @socket(....)
REM Sets command to something like DIALOG SET,Whatever
OPTION FIELDSEP,@CHR(32)
PARSE "%%command;%%params", %%return
if @EQUAL(%%command,DIALOG)
  DIALOG %%params
end

I hope that helps.

_________________
-Sheep
My pockets hurt...
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