Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When does datasession change ?
Message
De
20/06/2001 15:09:34
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
When does datasession change ?
Divers
Thread ID:
00521629
Message ID:
00521629
Vues:
42
Hi All,

I met some ackward situation calling and returning between forms.
Let me explain and wish someone set me free from whole day debugging.

1.open a LOOKUP-form(ex. order list by date)
. modeless and private datasession..based on parameterised view
. opened at datasession 2 ...hide himself on calling other form
2.call input form(ex. order input form) according to selected PK value
. modeless and private datasession (opened at datasession '3')
. 2 updatable views are used and invokes hidden called form on UNLOAD after
. data input or correction.

When 2nd form is released, Datasession has not been changed..it still says
datasession '3' and fires calling form's activate event and after unloading
itself, finally datasession has set to calling form's datasession '2'.

The problem is when I call 2nd form again, Datasession set to '4' as if
last form has not been destroyed and VFP holted on 2nd form's activate saying
'Fatal Error...',I guess, some trouble in datasession.

To make me crazy, other kind of forms nearly same behavior with same parent
class as above runs fine, in which datasession once returned to default('1')
on 2nd forms' release event and set to 1st form's datasession('2'), and when i
call 2nd form again, it's datasession starts from '3' normally.
There is no overwritten code at release event but i don't know why one form
behaves wrongly , others run fine.

Any advice would be highly appreciated.

RGDS
HK.Lee
MCP
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform