Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing specific characters in EditBox to another
Message
From
04/12/2000 12:00:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00448862
Message ID:
00448875
Views:
7
>>>Hi everyone,
>>>
>>>I have a form DataDict with IndexExpr field as an EditBox (memo field). I want
>>>to convert the entry in this field (EditBox) to:
>>>1) Upper case
>>>2) Replace <> or != with #
>>>3) Replace single quote or [] with double quote.
>>>
>>>What's the best EditBox method/event to achieve this functionality?
>>>
>>>Thanks a lot in advance.
>>
>>Lostfocus ? But are you sure you want to do it for option 3.
>>Cetin
>
>Yes, I thought about LostFocus too. Great minds... you know :)
>And I can not be 100% about option 3, though in my application and the usage of IndexExpr I believe, can be. It would be very unlikely, that user want an Index expression like:
>index on "Nadya's + Cetin's work [could ]+upper(fieldname)+' not be done'" :)

Actually I noticed DataDict and IndexExpr after I clicked 'send' :) Why don't you just normalize() and leave rest as is.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform