IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
-Collapse +Expand Paradox To/From
To/FromCODEGuides
-Collapse +Expand Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

December Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardParadox Forms Topic   Print This     

Form Return

Form Return in Paradox Forms topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: Form Return  
hr41pearl
 (Inactive)
Chula Vista, CA
OK, I used the NoKeys form and modified it a little for my needs. In KeyPhysical I have blocked all keys except the 0-9, CONTROL, and RETURN. The form now returns any number that you put in. Now I want to test the input to see if the user used his/her badge. The badge is bar-coded and has a CNTRL-O inbedded. I scan the badge and all I get is the numbers portion. HELP
Any thoughts / ideas? Thanks.

hr41pearl Now that
 Posted 17 years ago (Thread Starter)
Comment Quote
About hr41pearl -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
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 #10892, 9 replies
Thread Started 12/17/2004 1:54:00 PM
View Counter=2492
Last Reply Posted 12/22/2004 12:14:00 PM)
Location=Chula Vista, CA  
Joined=18 years ago   MB Posts=16  
Tony M
 (Inactive)
So, are you using a scanner? A barcode reader?

What are you using to read that badge?

Are you sure the ^O is being read by the scanner/reader and passed to Paradox? It could be that whatever 'other' stuff you are using isn't reading/passing the ^O to Paradox - do you have a way of testing/verifying this?

Also, can you embed a different control character in the badge and see if it gets passed?
 Posted 17 years ago
Comment Quote
About Tony M -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.

Post ID #10894 (Level 1.1)  Reply to 10892
Thread Started 12/18/2004 7:13:00 AM
View Counter=2
Location= 
Joined=19 years ago   MB Posts=410   KB Comments=1  
Tony M
 (Inactive)
"Any and all control characters are read properly, but passing them back to the program is where I am stumped. In the form, how do I add a number to the read if a control character is pushed?"

Add a number to the read if a control character is pushed?

What do you mean by this?

What do you ACTUALLY get back when the badge is scanned? And why do you need to add anything?

Maybe someone else is 'getting it' and can chime in.
 Posted 17 years ago
Comment Quote
About Tony M -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.

Post ID #10898 (Level 1.2)  Reply to 10892
Reply Posted 12/20/2004 8:06:00 AM
Location= 
Joined=19 years ago   MB Posts=410   KB Comments=1  
Daniel Fought
Prestwood IT
Home office in Fresno, CA.
I gather from the conversation that you are receiving a string back from the barcode reader and populating a field with the numerical portion. However you feel that there is a control character being scaned in the barcode but you are not picking that up in your application. My suspecion is that you are getting the control key but it is occuring as a single key stroke. I'd bet that if you trap for the control key you will see it. You will then need to apply the control key to the next character. Hope this helps.

Dan Fought
Senior Programmer Analyst
Prestwood IT Solutions
http://www.prestwood.com

 Posted 17 years ago
Comment Quote
About Daniel Fought -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Daniel Fought
Danial Fought is a senior programmer analyst with Prestwood IT where he develops custom Windows software and custom websites. When Dan is not coding for clients, he participates in this online community. Coding specialties include Paradox/ObjectPAL, MS Access, Visual Basic, and VS.Net/VB.Net.

Post ID #10899 (Level 1.3)  Reply to 10892
Reply Posted 12/20/2004 8:59:00 AM
Location=Home office in Fresno, CA. 
Joined=19 years ago   MB Posts=401   KB Posts=12   KB Comments=4  
Daniel Fought
Prestwood IT
Home office in Fresno, CA.
I have a suspecion that all your information is being received but that there is a problem visualizing the last portion. From what I've read you are scanning in a barcode that represents something like 1234^O and in the field you only see 1234 but you really dont want to see ^O. Is something supposed to happen when the ^O is entered. Have you attempted to enter the value manually? What is the result? What do you wnat the application to do? I have a suspecion that you need to test for the control key press in the Keyphysical event to make this work but that is just a guess.

Dan Fought
Senior Programmer Analyst
Prestwood IT Solutions
http://www.prestwood.com

 Posted 17 years ago
Comment Quote
About Daniel Fought -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Daniel Fought
Danial Fought is a senior programmer analyst with Prestwood IT where he develops custom Windows software and custom websites. When Dan is not coding for clients, he participates in this online community. Coding specialties include Paradox/ObjectPAL, MS Access, Visual Basic, and VS.Net/VB.Net.

Post ID #10902 (Level 1.4)  Reply to 10892
Reply Posted 12/21/2004 10:01:00 AM
Location=Home office in Fresno, CA. 
Joined=19 years ago   MB Posts=401   KB Posts=12   KB Comments=4  
Daniel Fought
Prestwood IT
Home office in Fresno, CA.
I think that you will find that if you trap for key strokes on the field you will see individual key strokes for each key including the control key. You should also test for the control key being down(eventinfo.isControlKeyDown()). You can then substitute the Z for the q key stroke.

Dan Fought
Senior Programmer Analyst
Prestwood IT Solutions
http://www.prestwood.com

 Posted 17 years ago
Comment Quote
About Daniel Fought -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Daniel Fought
Danial Fought is a senior programmer analyst with Prestwood IT where he develops custom Windows software and custom websites. When Dan is not coding for clients, he participates in this online community. Coding specialties include Paradox/ObjectPAL, MS Access, Visual Basic, and VS.Net/VB.Net.

Post ID #10906 (Level 1.5)  Reply to 10892
Reply Posted 12/22/2004 7:20:00 AM
Location=Home office in Fresno, CA. 
Joined=19 years ago   MB Posts=401   KB Posts=12   KB Comments=4  
hr41pearl
 (Inactive)
Chula Vista, CA
As I stated, the badge is barcoded. So we read them with a barco reader that is attached to the keyboard circuit. I placed a message statement in the form to verify reading and a message statement in the program to verify that it is returned to the program. The form reads, but then fails to return all the information.

Any and all control characters are read properly, but passing them back to the program is where I am stumped. In the form, how do I add a number to the read if a control character is pushed?

hr41pearl
 Posted 17 years ago (Thread Starter)
Comment Quote
About hr41pearl -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
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 #10897 (Level 1.6)  Reply to 10892
Reply Posted 12/20/2004 7:40:00 AM
Location=Chula Vista, CA  
Joined=18 years ago   MB Posts=16  
hr41pearl
 (Inactive)
Chula Vista, CA
Daniel. Exactly. The badge creater (my boss) added a CNTRL-Q to the end of the badge number. IE 1234^q. Technically, a person could type their number in and press cntrl-q with the same effects. I just dont see how to return the cntrl-q. Plus, I dont want to show it on the input line.
I should say, that this is all working in 4.0 and I am attempting to convert to 9.0.

Is there anyplace in Prestwood's book that speaks to this?

Thanks for you help.

hr41pearl
 Posted 17 years ago (Thread Starter)
Comment Quote
About hr41pearl -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
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 #10900 (Level 1.7)  Reply to 10892
Reply Posted 12/21/2004 6:57:00 AM
Location=Chula Vista, CA  
Joined=18 years ago   MB Posts=16  
hr41pearl
 (Inactive)
Chula Vista, CA
Visualization is not my strong suite. And programing requires a lot of it. But, yes, you have the right idea. I would like keyphysical to return current data PLUS a "Z" if it sees the ^q on the badge. Or am I way off? Does it return every keystroke to the main program until the RETURN is pressed? I guess I am thinking it buffers until the return key.

hr41pearl
 Posted 17 years ago (Thread Starter)
Comment Quote
About hr41pearl -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
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 #10904 (Level 1.8)  Reply to 10892
Reply Posted 12/21/2004 11:58:00 AM
Location=Chula Vista, CA  
Joined=18 years ago   MB Posts=16  
Most Recent Post
hr41pearl
 (Inactive)
Chula Vista, CA
YUP. Thanks for you assistance. I think I solved it using switch/case in the keyphysical. I was able to set Badge = True. Thanks again and have a good holiday.

hr41pearl
 Posted 17 years ago (Thread Starter)
Comment Quote
About hr41pearl -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
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 #10908 (Level 1.9)  Reply to 10892
Reply Posted 12/22/2004 12:14:00 PM
Location=Chula Vista, CA  
Joined=18 years ago   MB Posts=16  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P195A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #10892 Counter
2492
Since 4/2/2008
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2021 Prestwood IT Solutions.   [Security & Privacy]