Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox Dilemma
Message
 
À
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:
00281275
Vues:
23
Hmmm.. Not sure about that. Is totalbdft the correct name? Maybe try a thisform.refresh() at the end of the code.

Also 2 things you can use to help find out what's going on:

put set step on on the line right before you are having a problem. When VFP hits this line it will bring up the debugger. It'll probably be pretty confusing at first but look at the Trace window. that will show the code currently being run and a little pointer will tell you what line your are at. You can hover your cursor over vars and properties and the tooltip will tell it's current value. That way you can see what VFP is doing.

Also you can use the ? to display stuff on the VFP screen. If the code is in a method do the following:
acti scree && causes ? output to end up on the screen and not the form.
? thisform.brdft1.value
>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
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