Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Negative Numbers in Parenthesis
Message
From
23/04/2003 16:20:16
 
 
To
23/04/2003 16:15:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00780813
Message ID:
00780840
Views:
13
>I'm working on that one...
>

:)

Well, if the parenthesis don't need to show while actually entering (or correcting) a number, it would be much easier. You can superimpose two textboxes...one that is for entry, one for display. On lostfocus() of the entry textbox, set the value of the display box (using the transform()), and put the display one back on top (or make the entry on not visible again).

Now don't come back and say it's in a grid...*grin*

>>Do they want the parenthesis to appear *while* they are in the textbox? If so, how would do they turn a negative number into a positive one?
>>
>>
>>>That's fine for display but, I have a numeric field bound to a textbox. The client wants negative numbers in parenthesis...
>>>
>>>>How's this?
>>>>
>>>>
>>>>x = -99.01
>>>>? transform(x, "@( 999999.99")
>>>>
>>>>
>>>>>How do you do this?
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform