Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically add a table to data environment
Message
 
 
To
04/06/2001 08:08:02
Fida Shamsoodeen
Combined Systems (Pty) Ltd
Centurion, South Africa
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00514484
Message ID:
00514500
Views:
11
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform