>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