Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALIAS ok with modal form but not modeless
Message
From
09/01/2003 16:01:54
 
 
To
09/01/2003 15:54:22
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00739985
Message ID:
00740018
Views:
21
This message has been marked as the solution to the initial question of the thread.
Patrick,

When the form is modal, code will stop at the DO FORM command. When it is modeless, the code after the DO FORM can execute immediately, and the USE statement is closing the table.

I would suggest using a private datasession in the form, and put the code that opens the table in the load() method of the form. The table will close automatically when you close the form.


>hi steve -
>
>the table is a free table, and here is the form call:
>
>
>*-----------------------------------------------open EVAL_CAT table----
>EVAL_CAT_Table_Spec = ALLTRIM(PIX_Data_Dir_Spec)              +       ;
>                      ALLTRIM(CATALOG_Record_Object.Mod_Name) + '\' + ;
>                      ALLTRIM(CATALOG_Record_Object.Mod_Name)
>
>IF ( USED ('EVAL_CAT') )
>  SELECT EVAL_CAT
>  USE
>ENDIF
>
>SELECT 0
>USE (EVAL_CAT_Table_Spec) ALIAS EVAL_CAT EXCLUSIVE
>SET ORDER TO TAG Pict_Num
>
>DO FORM frm_Happy_Snappy
>
>SELECT EVAL_CAT
>USE
>
>
>i never specify any data session, so i guess i'm using the global data session all the time.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform