| View previous topic :: View next topic |
| Author |
Message |
Quatre87 Valued Newbie
Joined: 07 Jan 2004 Posts: 25
|
Posted: Wed Jan 07, 2004 12:42 am Post subject: I Need run a command saved |
|
|
| 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 |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Jan 07, 2004 6:38 am Post subject: |
|
|
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
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Quatre87 Valued Newbie
Joined: 07 Jan 2004 Posts: 25
|
Posted: Wed Jan 07, 2004 11:36 pm Post subject: |
|
|
| 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 |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Thu Jan 08, 2004 9:09 am Post subject: |
|
|
I think I know what you mean
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
Best regards,
Vic _________________ phpBB Development Team |
|
| Back to top |
|
 |
Quatre87 Valued Newbie
Joined: 07 Jan 2004 Posts: 25
|
Posted: Sun Jan 18, 2004 9:57 pm Post subject: |
|
|
| but.. if the fuction data that i have saved i need run it, how can i do it? or is impossible? |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sun Jan 18, 2004 10:17 pm Post subject: |
|
|
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 |
|
 |
|