Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically add a table to data environment
Message
 
 
À
04/06/2001 08:08:02
Fida Shamsoodeen
Combined Systems (Pty) Ltd
Centurion, Afrique du Sud
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00514484
Message ID:
00514500
Vues:
12
>Hi to All
>
>Can anyone please help with this...
>
>I want to copy structure A's table to B.
>Then I want to programmatically add table B to the DataEnvironment.
>Then i would like to make the RecordSource the table B and the RecordSourceType the Alias of B.
>
>Thanks in Advance
>
>Fida

In a method of your DE, probably Init, you need to add a cursor object: This.AddObject("CursorNameHere", "Cursor")

Then you can specify properties:
with This.CursorNameHere
   .CursorSource = "Talble_or_View_Name"
   .Database = "MyDBC"
   .Alias = "SomeAlias"
   .Order = "LastName"
   .BufferModeOverride = 5
   .Exclusive = .F.
endwith
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform