Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prg gets diff results
Message
From
04/03/2008 11:27:59
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01298437
Message ID:
01298457
Views:
20
>>>>>I am getting different results when I run the same prg:
>>>>>-from within a form
>>>>>and
>>>>>-at the command prompt
>>>>>
>>>>>Is there any logic to this?
>>>>
>>>>And what is the difference?
>>>
>>>It's a financial that tallys and compares a table vs another etc. It sends the output to a file for viewing, and running it from the cmd prompt renders correctly, thru the form, alot is blank.
>>
>>If there is printing involved and there is a grid on the form, then it could be a problem.
>>
>>Also there may be difference in SET ANSI/SET EXACT/SET DELETED in the form and your environment.
>
>That's it!! thanks. the exact was getting reset to 'on' somewhere along the way. Who knows how many hours you saved me!!

At the beginning of your PRG, capture and restore SET EXACT and any other settings that may affect it. This is best done with a memento design pattern. You can have a class on your form to make SET EXACT OFF your standard. Then use == in those cases where you need exact. :)
Previous
Reply
Map
View

Click here to load this message in the networking platform