System()
Kenneth Brody
kenbrody at spamcop.net
Wed Mar 11 12:53:18 PDT 2015
On 3/11/2015 3:06 PM, Richard Kreiss wrote:
> Program systems out form one file to add a record in another file. I need to know if the user breaks out of the record before completing it.
> Sy=is the command line to run
>
> Qq(3,.0)=system(sy)
>
> When the record being added is cancelled by pressing the <Home> key, exit "9" is executed. On return qq should equal 9. When I test the value of qq on return, with the debugger, qq appears to be empty. If I put add msgbox "the value of qq is \r"<qq<"\r", the message box shows qq as 9. Even though qq is set to 3 digits, <F> qq shows as | |. I have a dummy field q(1,.0)=""{qq and that field will show a 9 and test as 9.
>
> My questions:
> 1. Why does qq appear to be empty when dis-played in the debugger using <F> qq?
> 2. Why does the actual value appear when displayed with a msgbox?
> 3. If qq has a value of 9 (see 2 above), why does the if: qq = "9" test fail?
>
> Am I missing something when trying to get this return value from exit "9"?
Everything above points to qq not being (3,.0).
In the debugger, what do these (E)xpressions say?
fieldlen(-,"qq")
fieldedit(-,"qq")
--
Kenneth Brody
More information about the Filepro-list
mailing list