Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox Dilemma
Message
De
25/10/1999 18:13:44
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:
00281266
Vues:
20
Hi Roi,
I used your With...Endwith and I get no more errors, but i'm not getting my total in totalbdft. It stays at zero. Any ideas?

Thanks,
JD


>Hi Jimmy,
>
>TextBoxes don't have a DisplayValue (combos do). Try thisform.bdft1.value instead.
>
>Also this is a perfect place for with...endwith.
>
>example:
>
>
WITH THISFORM
>	.totalbdft.VALUE = ;
>		VAL( .bdft1.VALUE ) + ;
>		VAL( .bdft2.VALUE ) + ;
>		VAL( .bdft3.VALUE ) + ;
>		VAL( .bdft4.VALUE ) + ;
>		VAL( .bdft5.VALUE ) + ;
>		VAL( .c16.VALUE   ) + ;
>		VAL( .bdft7.VALUE ) + ;
>		VAL( .bdft8.VALUE )
>
>	.totalbdft.REFRESH()
>ENDWITH
>
>You can also use the ; to continue lines of code on more that one line, and use spaces to line things up. Makes it a little easier to read :)
>
>Also I don't think you need the val() function. If you get a "function invalid" type message (like I got when testing it) just delete the val() from the above.
>
>Hope this helps.
>
>>
>>each of the bdft references is a textbox, as is totalbdft. i want the sum of the bdft boxes to show interactively in totalbdft. when i run this it tells me 'displayvalue not found'. should i be going at this a different way?
>>
>>Thanks from a new Fox.
>>JD
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform