Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox Dilemma
Message
 
À
25/10/1999 17:40:07
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:
00281261
Vues:
22
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
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform