Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_screen command
Message
From
22/04/1999 11:46:38
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
_screen command
Miscellaneous
Thread ID:
00211043
Message ID:
00211043
Views:
61
I am trying to close all screen object in my program when the user clicks Exit. I am getting an error that says forms is not an object on the line after the beginning of the for loop. My code is below.

Please help and thanks,

Jim


private lndatspast
lndayspast = date() - ae.backupdate
IF lndayspast > bkdays
FOR I = 1 to _SCREEN.FORMCOUNT
_SCREEN.FORMS(i).release
ENDFOR
IF MESSAGEBOX("Warning: You have not performed a backup in " + alltrim(STR(lndayspast)) +" days." + CHR(13)+ ;
"Would you like to bakup now?",20,gcappname) = 6
DO form backrest
else
do exit_prg
ENDIF
ELSE
do exit_prg
ENDIF
Thanks

Jim
Next
Reply
Map
View

Click here to load this message in the networking platform