>I am trying to run a small interface program between a clipper program and a VFP5.0 program. The idea is to have the Clipper program call an 'exe' that I have created in VFP and import the data from one long string into a VFP free table. The problem is that VFP is evaluating spaces as delimiters and is truncating my string such that I can't evaluate each piece of the string.
>
>i.e "12345ABC 123 TEST" passes as "12345ABC 123 TEST"
>
>This is a problem because I am substringing the passed value and expecting it to be a certain length for each piece.
>
>Any ideas would be greatly appreciated.
A couple off the cuff
Have the Clipper app slap a set of double quotes around the string that is passed on the command line - it's taken in as a single parameter that way, where you can parse it without the concerns of what the command line interpreter is doing. IOW, Clipper fires the command line:
MyVFPApp.EXE "12345ABC 123 TEST"
Rather than passing the string, you could also put the string in a file and pass the name of the file containing the string to process. IOW, write the string into a textfile in Cripple..erm, Clipper, and then pass the name of the file to process.
There are literally dozens of additional ways to skin this cat...