Case Conversions With The KeyPhysical Event

Case Conversions With The KeyPhysical Event in ObjectPAL topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: Conversions   KeyPhysical   Case Conversions   Case Conversions KeyPhysical  
K Packard
Falls Church, Virginia USA
This should be an easy one but I have tried several things to accomplish this task. I am trying to have all data entries on a form convert to uppercase as the user keys each character. I accomplished this by using an eventinfo.vchar statement for each letter. Obviously, this is too much code but it works. I can use the "upper()" function on a pushbutton event or canDepart event to do this after the fact but I would really like to have this process occur as the user was typing. I also looked at the Format "cu" statement. Can anyone clue me in to the proper syntax and what event to place the code on. I am using Paradox 8. Thanks.

[This message has been edited by K Packard (edited March 18, 2001).]
About K Packard
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #1416, 4 replies
Thread Started 3/16/2001 6:44:00 PM
View Counter=2352
Last Reply Posted 3/21/2001 9:00:00 AM)
Location=Falls Church, Virginia USA  
Joined=1/31/2001   MB Posts=2  
Cheryl
 (Inactive)
New Bern, NC USA
Maybe I missed something here . . . but how about a picture on the form fields or on the table?
About Cheryl
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #1461 (Level 1.1)  Reply to 1416
Thread Started 3/21/2001 8:52:00 AM
View Counter=2
Location=New Bern, NC USA 
Joined=11/30/2000   MB Posts=8  
AIBreveleri
I think the best way to do this is to add this line to the PreFilter clause of the form's keyChar event:

eventInfo.setChar( upper( eventInfo.char() ) )

This forces all operator keyboarding on the form, except in response to a view(), to upper case. Does anyone remember using a TeleType ASR-33 printing teminal for a computer console?

-Al.
About AIBreveleri
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #1420 (Level 1.2)  Reply to 1416
Reply Posted 3/17/2001 1:39:00 AM
Location= 
Joined=1/15/2001   MB Posts=286   KB Comments=8  
K Packard
Falls Church, Virginia USA
Thanks A. I. Breveleri! This was exactly the solution I was looking for. There is no way I could have guessed the syntax for this one. The text is now automatically converted to uppercase without any delay on the network.
About K Packard
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #1430 (Level 1.3)  Reply to 1416
Reply Posted 3/19/2001 6:49:00 AM
Location=Falls Church, Virginia USA  
Joined=1/31/2001   MB Posts=2  
Most Recent Post
Joe Ng
-- USA
I agree with Cheryl. Define the field's Picture property with *! in the table will store and display field values in upper case.
About Joe Ng
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #1463 (Level 1.4)  Reply to 1416
Reply Posted 3/21/2001 9:00:00 AM
Location=-- USA 
Joined=3/13/2001   MB Posts=80  
www.prestwood.com For service: 916-726-5675
or support@prestwood.com
Copyright (C) Prestwood IT Solutions.
All Rights Reserved.
Printed 6/14/2026