Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically Add Table In Data Environment
Message
From
13/08/2002 05:15:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00689012
Message ID:
00689019
Views:
24
>I'm Sorry But I'm just a beginner of it..
>
>I still don't get it what you told me...
>
>What does it mean ????
>
>Hope you tell me more.....
>thanks...
with thisform.Dataenvironment
 .CloseTables
 .Addobject('mycursor','cursor')
 with .myCursor
   .Alias = 'myAlias'
   .Database = 'c:\myPath\myDBC.dbc'
   .cursorsource = 'myTable'
 endwith
 .OpenTables
endwith
Relation would be in the same manner. However if you don;t have a good reason do not try to do this in dataenvironment. Instead directly code in load or init depending on your needs. ie: form.Load

use myTable in 0 order tag myTag
use myParent in 0
select myParent
set relation to myField into myTable

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform