Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting value from a table opened in a different DS
Message
 
 
À
10/03/2010 09:58:20
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01453599
Message ID:
01453730
Vues:
35
>naomi,
>that cursor in the form. The current code uses
>>
>>set datasession to 1
>>
>>...
>>
>>then restores the datasession using saved transform of the set('datasessionID')
>>
>>set datasession to &lcOldDS
>>
>>I think it's not a very good code and looking for alternative methods.
>
>If the cursor is opened anyhow on the app object,
>methods to query it should be on the app object.
>
>Or, to be more exact, they should be on the object creating the cursor.
>For application services it often makes sense to open some tables only once
>and not again in every form - but then the service should be intelligent to query this table.
>
>my 0.02 EUR
>
>thomas

I agree, but the application and code is already written and I didn't want to mess much with the code - don't know what problems may arise if I change it.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform