Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox Dilemma
Message
De
25/10/1999 19:42:50
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
 
 
À
25/10/1999 19:19:33
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00281251
Message ID:
00281322
Vues:
26
BTW,
what would cause a textbox to come up as readonly? in properties, readonly is F. In the builder, readonly isn't checked, and nothing in the field it's bound to is read only (that i can tell). i want to enter values to use in methods.

JD


>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.
>>>>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform