Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IsNumeric - VFP analogue?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00307922
Message ID:
00308485
Views:
61
Jim,
>
>First, you can set the Format of your editbox to 9 and the Maxlength to 5 and use the same code I sent you.

I read Help about Format function and haven't seen 9 as one of possible formats. I'll try anyway. But it seems to me, that editboxes don't recognize format settings. I tried ! without any effect, I tried A, and I tried combination of them with no result. Can not imagine, why?


If you would look you would see that.
>
>Secondly, why an editbox for a 5 character value?

Jim, I feel obligative to explain again my intentions here, even if I did it several times in other threads. I want to use editbox (and I designed class btcc_edit, based on it) to allow our users specify multiple choices in most convenient way. Right now I'm using this class for zipcodes and zip sections, but, of course, I can use it for any criterion, like owners (right now I use btcc_text for this - so only one choice), etc. The users may type:
12345 (Enter)
24567 (Enter)
01235
etc. and I reconstruct my criterion as INLIST(zipcode,'12345,24567,01235').
I expect, that our users would not type a lot of them, no more than 5-6.
So, in editbox valid method I analyze each line, that they type.
That's it. But I'm tired to defend my choice of editbox here, while Ed Rauh and Ken Veber (?) are trying to convince me to switch into another combination of controls. And now you're too!... My application works fine, this checking is even not requested, and I do it just for my personal sake. And the method, which I placed already, is simple and executes very fast.

OTOH, I learned lots of useful information, read with great interest HELP about Rushmore optimization, optimazed all my classes, etc. and I want to personal thank Ed Pikman, Ed Rauh, Erik Moore, Ken (?), George, Ricardo and you for your kind help. Thanks again.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform