Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Phantom values in textboxes
Message
From
08/07/2002 15:18:51
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00676267
Message ID:
00676304
Views:
14
Hi Nadya,

Try this
define class TextBoxNonbound as textbox
initvalue = ''

function refresh
this.value = this.initvalue
endfun

enddefine
>>>Hi everybody,
>>>
>>>I add some textboxes to the form in run-time. The controlsource for these textboxes is left blank. I add one record and type something in each textbox. I save this record and then add another one. All textboxes have the values from the previous record!
>>>
>>>How can I start each time with the clean textboxes?
>>>
>>>Thanks a lot in advance.
>>
>>You reset textbox values to the empty value of corresponding type. If they are not bound, there is nothing which would reset them automatically.
>
>Right, I just figured this. So, I have to loop through page controls and reset value to "" if controlsource is empty.
>
>Uf... :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform