>I'm trying to execute a run command in click even of a button.
>The string I'm trying to execute is
> run /n &exestring
>exestring = 'c:\quake2\Quake2.exe +set dmflags 16408 +set hostname "Enter Host Name Here" +set port 27910 +set timelimit 20 +set fraglimit 30 +set maxclients 16 +set rate 25000 +set cheats 0 +set allow_download 1 +set password "" +set dedicated 1 +set deathmatch 1'
>
>This string is 251 characters long. When I execute this from the Run box in win9x it works.. Also I can use a run command in vfp if I use fewer parameters in the string.
>
>Also is there a way around the max string size? I reallly need the executable string to be about 270-290 characters.. Thanks in advance
Joe,
The limit for a string is 2GB, but the limti of a macro expansion is 255 or so. You can break the macro up into smaller ones;
exestring1 = 'c:\quake2\Quake2.exe +set dmflags 16408 +set hostname' + ;
' "Enter Host Name Here" +set port 27910 +set timelimit 20 +set exestring2 = 'fraglimit 30 +set maxclients 16 +set rate 25000 +set cheats 0 ' +;
'+set allow_download 1 +set password "" +set dedicated 1 +set ' + ;
'deathmatch 1'
RUN /N &exestring1 &exestring2