Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with get field on the screen
Message
From
24/03/1998 11:21:21
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00086535
Message ID:
00086696
Views:
56
>>Edward,
>>
>>Hello, my name is Paul Telesca. I work along with Vlad. The issue at hand is that the field is a user-defined field. Our clients are using the field and we wouldn't want to change the variable type. This would mean a conversion, etc.
>>The screen has many other udefs on it as well. For uniformity they are all the same width. If we make this field the same width as the others the user can enter a value larger than the variable is set to store, and we get an error, as expected. If we use a mask we limit the value to 9999999.99. We might want to accept a whole number and not enter the decimal point. In any case we want to limit the input to 10 and only 10 characters. Isn't there some way to prevent the system from accepting more? Please advise.
>>
>>Thank you,
>>
>>Palu Telesca
>Palu,
>
>If a field is 10,2 it cannot fit 10 digit integer, it needs to be 13,2 to hold a 10 digit integer., You can use a mask of "9999999999.99" for 13,2 and "9999999.99" for 10,2.
>
>You can use AFIELDS() to find out if the field is 10,2 or 13,2 and then build your mask from that information.

Jim,
Thanks. It is very curious because sometimes I get 10 digit integer, sometime 8 digit integer.
Is there any way to read the content of that field before it displays? I know about typeahead but inkey() returns only the first key in the buffer.
Thank you.
Vlad.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform