Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Form Data Enviroment but Open the tables by coding
Message
 
 
À
30/03/2004 03:45:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00890557
Message ID:
00890984
Vues:
22
Hi Viv,
Thank you very much, that is exactly what I wanted to do.
Thanks again.
Hani

>Hi,
>
>>>
>My Form will use different tables names but with the same alias depend on user selection.
>for Example : Inventory Table could be Items1 or Items2 or Items3
>I want to use the DE but I have to define the table name, my problem that Table name will be different, so how can I still use the DE.
>
>I can open the tables myself in the Load event but I want to get the advantage of the sursor properties and events within DE.
>>>
>If the user can select the required table before the form is instantiated:
>At design time set .AutoOpenTables to .F. , set the cursorsource property to, say, "Inventory". In the form.init():
>
>this.dataenvironment.Inventory.CursorSource = "Items1"
>this.dataenvironment.OpenTables
>
>HTH,
>Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform