Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to have same effect as Wizard
Message
From
01/03/2002 06:39:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/03/2002 00:26:32
Ashish Patel
Hindustan Petroleum
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00626809
Message ID:
00626876
Views:
12
>Hi
>
>I want to give the same effect as given by the wizard when we generate a simple
>data entry form using foxpro free tables.
>
>e.g the text fields are dirctly bound to the table.
> What all setting is required ?
>
>It provides a cancel button.
>So when we cancel the add event it won't save the value in the table ?
>How do it writes the code.
>
>Can you pl. guide me on the above subject.
>
>I always use the commands as follows
> sele filename
> appe blank
> replace field1 with thiform.txt1.value,;
> field2 with thieform.txt2.value and so on
>
>What will be the efficient way ?
>
>Thanks in Advance
>
>Ashish Patel

You have to enable buffering. That way, even if the textboxes are "bound" directly to the field (through the .ControlSource property), data is not saved until you give the command TableUpdate(). And you can revert (undo) changes with the command TableRevert().

Take a look at the wizard class libraries - the commands there should serve as a starting point. The wizard-generated forms are not very sophisticated, in my opinion, but they do show you how to solve certain problems.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform