Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox Dilemma
Message
 
To
25/10/1999 17:40:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00281251
Message ID:
00281261
Views:
21
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform