Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with USE AGAIN & Multiple DataSessions
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Problem with USE AGAIN & Multiple DataSessions
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01326245
Message ID:
01326245
Vues:
53
Hi All,

Have a form (FORM1) which uses the Default DataSession with a Local View (Will Call VIEW1) in the Form's DataEnvironment with Alias Property Set to 'Source' and NoDataOnLoad set to .T.

In the FORM1's LOAD Method there is Code similar to:

SELECT Source
{Create Indexes}

USE VIEW1 AGAIN IN 0 ALIAS Selected
{Create Indexes}

Code works with no problem and no View Parameter Prompt


Have a 2nd form (FORM2) with a Private Data Session, the same DataEnvironment & Load Method Code.

1. If I run FORM1 first, then do something that Queries VIEW1 (Global Data Session), and then run FORM2 (Private Data Session), I have no problem.

2. If I run FORM2 first and do something which queries VIEW1, and then attempt to run FORM1, the USE AGAIN Line in the FORM1's LOAD Method now asks for a View Parameter & I get an Error Message saying that 'ALIAS Source is Already In Use'...Looks like USE AGAIN with Views doesn't always respect Data Session Boundaries...

Anyone seen this?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform