Where should one add a new table to the data environment of the form?
Also, do you have to USE the table as well as adding it to the environment?
I had the following command in my Form Activate method (VFP 3):
WITH Thisform
.Dataenvironment.Addobject([Cli_name],[Cursor])
.Dataenvironment.Cli_name.Buffermodeoverride =2
ENDWITH
SET STEP ON
Then I tried to select Cli_name, and it told me it wasn't in use.
I tried adding USE Cli_name before and after the Addobject command, which seemed to work, but then when I do a TABLEREVERT or TABLEUPDATE, it tells me I must have a row or table buffering mode set.
SO, I got rid of the Buffermodeoverride command and added
SELECT Cli_name
=CURSORSETPROP('Buffering', 2)
But that didn't work at TABLEREVERT time.
Any suggestions? I'm obviously new to adding a table to the environment programmatically like this, so I'd appreciate any hints.
JR
CLARC Services, Inc.
3500 Tamiami Trail
Port Charlotte, FL 33952
www.clarc.com(941) 743-0108
(800) 246-5488