Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manipulating data with objects
Message
From
21/07/2000 11:41:37
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00395398
Message ID:
00395476
Views:
12
>>Do not need the above 2 lines. The database should already be open. Open it in your main PRG and SET DATABASE TO TOMPARCO right after youopen the DBC. You should also set your VFP search paths at the beginning of your main PRG.
>>

What does DBC stand for? Database Code? I'm a little embarrassed about this next question...where is the main PRG?

>>
>>>=CURSORSETPROP("Buffering", 3, "intrancust")
>>
>>I prefer table buffering [5], but that is a personal preference that is mostly shared by other developers. The reason is an implicit Tableupdate() is issued every time the record pointer moves. Even if it is just 1 record in my view, I use table buffering. This gives me TOTAL control on when a Tableupdate is issued. In my form Save method, I programmatically perform table updates if the user did not click the CANCEL command button. The CANCEL set a form parameter, lCanceled, to TRUE if clicked.
>>

This is a multiuser environment. How is table buffering NOT going to interfere with other users and what they might be trying to do?

>>Is the C1 field updatable?
>>Why do you have 2 controls bound to the same field?

C1 is meant to be a "search engine" only. It has a method in its interactivechange event that runs a seek for its displayvalue. When I go to append, I can't enter data into the Combobox because it has a predetermined set of selections as per the field in its rowsource. That's where the textbox comes in. I'm switching to a textbox with the same field as the Controlsource so I can update the append. On save, the Combo comes back.

>>you will have to use a replace statement].

Thanks for the reinforcement -- I am using replace in my saveappend method.

Thanks Again
JD
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform