Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.Dataenvironment.AddObject & Buffering
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
.Dataenvironment.AddObject & Buffering
Divers
Thread ID:
00063231
Message ID:
00063231
Vues:
76
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform