GKatReliable
Programmer
In FPW26a, I am writing a program using SET ALTERNATE and ?/?? to write transactions to a text output file to send to a vendor (darn mainframe-y vendors). In the middle of one of these output lines, I had occasion to do a calculation with SUM hours TO mhrsworked ...
Then later on I did a ?? mhrsworked.
What was actually written to the file was the word "hours" from my SUM command. I changed it to hourfile.hours, and lo and behold, the text file got "hourfile.hours".
I fixed this by SET ALTERNATE OFF, then do the SUM, then SET ALTERNATE ON and continue with my ?/?? statements.
In essence, this is the portion of the program:
SET ALTERNATE ON
...
?? field1
?? field2
SUM hours TO mhrsworked...
?? mhrsworked
?? field3
...
SET ALTERNATE OFF
Why would Fox do this?
Regards,
Glenn Koproske
Then later on I did a ?? mhrsworked.
What was actually written to the file was the word "hours" from my SUM command. I changed it to hourfile.hours, and lo and behold, the text file got "hourfile.hours".
I fixed this by SET ALTERNATE OFF, then do the SUM, then SET ALTERNATE ON and continue with my ?/?? statements.
In essence, this is the portion of the program:
SET ALTERNATE ON
...
?? field1
?? field2
SUM hours TO mhrsworked...
?? mhrsworked
?? field3
...
SET ALTERNATE OFF
Why would Fox do this?
Regards,
Glenn Koproske