Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox Dilemma
Message
From
25/10/1999 19:19:33
 
 
To
25/10/1999 19:03:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00281251
Message ID:
00281304
Views:
21
ok, UPDATE -
i've got combo1,combo2,and combo3. selected values in these three combos are used in method1 to produce a value in textbox bdft1. a second row of combos does the same with method2 and comes out in textbox bdft2. method tbf() adds the values in the two textboxes and spits it out in textbox total.

this doesn't work when a value is chosen in combo1,combo2, and combo3; but when you go back and rechoose combo1 it does.

MONDAYS!!!
JD


>the code is in a form method called tbf().
>
>WITH THISFORM
> .bdft.VALUE = ;
> .bdft1.VALUE + ;
> .bdft2.VALUE + ;
> .bdft3.VALUE + ;
> .bdft4.VALUE + ;
> .bdft5.VALUE + ;
> .bdft6.VALUE + ;
> .bdft7.VALUE + ;
> .bdft8.VALUE
>
> .bdft.REFRESH()
>ENDWITH
>
>i put thisform.tbf() in every object involved except the textbox i want to output to.
>
>JD
>
>
>>Where is the code you posted at? Is it a form method or a function?
>>
>>Best place to put it is in a form method. Click the Form menu item and then 'New Method'. Call the new method something like 'CalcBrdFeet'. Now open the form method and drop the code in there.
>>
>>As the last line of the InterActiveChange event of each combo, put thisform.CalcBrdFeet(). Now when each combo is changed it should call that form method and do the calculations. You may need to add a thisform.refresh() to the IAC as well.
>>
>>hth
>>
>>>Roi,
>>>the textboxes change due to interactivechange events of combos on the form. does that have anything to do with it? and does the totalbdft() function need to be in the interactivechange of all involved objects?
>>>
>>>JD
>>>
>>>
>>>>Hmmm.. Not sure about that. Is totalbdft the correct name? Maybe try a thisform.refresh() at the end of the code.
>>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform