Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textboxes & Option Button Groups
Message
From
06/08/2001 04:49:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/08/2001 04:13:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00540033
Message ID:
00540038
Views:
24
>Hallo all,
> I usually have a problem with formsets. When I add a record and save (the first record) it saves Ok BUT when I click on the Add button for a second button the textboxes have values of the previously entered record. When the textbox gets focus the value disappears and I can enter the value I want. Same case with the Option group buttons but this time it doesn't "refresh" the way the textboxes do. I've tried "THISFORMSET REFRESH" on the Click event of the Add button but it doesn't work. I've also tried THISFORM.REFRESH on the Init Event of the individual forms (3 forms in the formset) but it also doesn't work. For the option buttons I tried, THISFORM.SETALL("value",0,"optionbutton") on the Init event of the form but it also doesn't work.
> How can I refresh the textboxes and option group buttons such that whenever I click on the Add button they are empty? I'm using VFP6 buttonset for the navigating the formset.
>Thanks in Advance,
>Rich.

Richard,
refresh call should be in click not init.
PS: Formsets are hard to manage, if possible for you do not use formsets.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform