Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>>>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. :)
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement