General information
Category:
Forms & Form designer
Hi Tariq,
The place to stick your SET TALK OFF is in the form data environment
BeforeOpenTables event. You will need to set all your environment
commands here, as in a private data environment, each form will
use the VFP default settings. I use a function call from there-:
FLibSetEnvironment() && In start up programme.
Oh for a data environment class.
I set SET CENTURY OFF in my startup programme (even though default value).
I my form bass class Load event I check that SET CENTURY has ben set to ON,
then I know that I have remembered to call function FLibSetEnvironment()
which sets Century On.
IF FLiblDevMode && Only check in development mode.
* Make sure developer has FLibSetEnvironment() in Data Enviromment.
IF SET("Century")="OFF" && Fox default and set in startup programme to off.
=MESSAGEBOX("Developer Message-: " + CHR(13) + CHR(13) + ;
"The function FLibSetEnvironment() has not been called in " + CHR(13) + ;
"the form about to activate Data Environment.",48, ;
"This Application Will Close")
CANCEL
ENDIF
ENDIF
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only