Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IsNumeric - VFP analogue?
Message
 
 
To
25/12/1999 09:14:32
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00307922
Message ID:
00308685
Views:
41
Dragan,
>>
>>You're welcome. My point is simply that you could provide the same ease of entry using another control that would provide for better validation for you.
>>
>>You could create a container class with a fixed number of textboxes that have their borders turned off and it would look exactly like the editbox without scrollbars in it but each textbox would fire its valid with one discrete value in it for you to check. If all the textobxes needed the same validation you could easily add a method to the container and have each textbox call teh containers method from its own valid.
>
>
>Or, maybe a combination of a textbox and a listbox - so whatever you type in the textbox gets validated in it, and goes to the listbox. I've seen this sort of interface in several places, and it's not that bad at all. In the listbox's rightclick you may have the 'remove' method, or a 'remove selected' button below the listbox.
>
>It's been said, if it can't be done in at least three ways...

You're right. You know, the more I think about these approaches, the more I like them. It's honestly... After Ed wrote his letter, explaining me details about grid class, I was thinking about it. I thought at night and it became clear for me how to define such class in the morning. I have this code in my mind using NewObject method to substitute regular textbox with my class textbox in Init method. I also need to have property CursorName and create cursor in Init method. I may also use logical property CloseCursor, to close it explicitly in Grid Destroy method, etc. BTW, I already made these changes for btcc_multilist class, so, I may do it in parent class instead, because code is the same for both grid and listbox.

I also like now the idea of textbox+listbox, which was originally suggested by Ken Weber. BTW, I even think, that this approach and grid approach don't require necessarily command buttons. We can place code in KeyPress method, which would handle this. But may be command buttons're just fine, I haven't decided yet.

Anyway, finally this discussion gave me new look and new thoughts, that're just great!
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