Dynamically adding tables to data environment, VFP 7 
Author Message
 Dynamically adding tables to data environment, VFP 7

I am generilazing an application. Part of this process is to define a working
direcotory (folder) on a departimental basis. I do this by reading the value
form a table. I assign the value to a global variable (yes I know a property
is better but that would involve other changes I do not want to tackle yet).
Current several forms point to free tables in the working direcotory. Call
the global vairable gcWorkdir. How do I dynamically open tables for the forms
data enviroment when the form starts up and then assign properties to the
table and set relations? For example in one form I want to use the table
PIORIDERS in folder workdir7 (value of gcWorkdir) in Exclusive mode and have
the field cstkno in table INSTOCK joined (set a relation) to field clstkno in
table PIORDER. In other form I want to open table VORDTMP and set its tag to
field cvendcode. Currently relations are set in the INIT method of the data
enviroment in one form and hard code (diagram) in the other. Can it all be
done in the INIT method? If so please post sample code. TIA

Mon, 19 Jul 2004 01:23:21 GMT
 [ 1 post ] 

 Relevant Pages 

1. VB6-Adding records to a table in the Data Environment

2. set dynamically connection on data environment

3. Adding Columns dynamically to a #temp table

4. Dynamically adding tables with merge repl.

5. Problem dynamically adding fields to tables

6. Dynamically adding tables?

7. Connecting Data Environment to VFP

8. Help: Changing the Data Environment directory in VFP 3b

9. VFP's Data Environment

10. VFP, Reports, Data Environment and Cursors - Help!

11. VFP 6.0 : FLOCK() in Data environment in Form

12. VFP Data Environment

Powered by phpBB® Forum Software