Hi everyone
I have a small tool, written in DataFlex, which should take one or two parameters from the command line and depending on their values do some stuff.
If my parameter is longer than 82 characters the string is cut.
Code:
Handle hoCommandLine
Integer iArgs i
String sParameter
Get phoCommandLine of ghoApplication to hoCommandLine
If (hoCommandLine > 0) Begin
Get CountOfArgs of hoCommandLine to iArgs
If (iArgs=0) Begin
// ... do some stuff
:
:
End
Else Begin
Get Argument of hoCommandLine 1 to sParameter
:
:
End
End
I'm not sure if this is relevant: My tool is really small. Most of the code is outside of a function/procedure, most of the variables are global.
According to the different documentations (DataFlex, Windows, Batch, ...), the parameters can be longer, at least 256 characters should be possible.