Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox Dilemma
Message
 
To
25/10/1999 19:03:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00281251
Message ID:
00281309
Views:
12
Well I'm stumped. It still shows 0 and gives no errors?

Try changing .bdft.refresh() to .refresh().

Also what at the property setting for thisform.bdft? If you right click the property sheet and then check non-default properties only to see all the properties that have bben changed.

I'm wondering if maybe it's working just not showing in the textbox.

Try this
WITH THISFORM
      lTestValue = ;
		.bdft1.VALUE + ;
		.bdft2.VALUE + ;
		.bdft3.VALUE + ;
		.bdft4.VALUE + ;
		.bdft5.VALUE + ;
		.bdft6.VALUE + ;
		.bdft7.VALUE + ;
		.bdft8.VALUE
<b>acti scree
? lTestValue</b>

                .bdft.value = lTestValue
                .refresh
ENDWITH
That should display the results of the calculation on the screen. If it's right then we know it's the text box.

BTW is .bdft the right name. It was different in your first post.

hth

-----

>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.
>>>>
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
Reply
Map
View

Click here to load this message in the networking platform