Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scantron
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00616412
Message ID:
00616638
Views:
29
Yes, there is an ocx.

The way you did is the way we have it in our fox DOS programs (see tread #606882 and participate there please, your experience is always welcome) but now some enhancements need to be done and I'm planning to use the ocx.
It's a simple ocx which provides a SendCommand method, an Input property where the results of the SendCommand are stored and a DataReady event that indicates when the data from the scanner is available, so it goes like this:
Thisform.oScantron.SendCommand("QREV") && get revision info from scanner

*-- in the Thisform.oScantron.DataReady method you have:

wait wind thisform.oScantron.Input
Problem is, the DataReady event is not always working in VFP, it works for the READ command but not for the QREV, for example.
As far as I'm testing the command gets executed and the Input property contains what was required, simply the DataReady event fires for the READ but not for the QREV.

I was working in the dark with some examples in VB (with syntax errors that I corrected), and translating them to VFP, no big deal, but now that I have the Programmers Manual, I have more info to solve the problem.

Max


>Wow, there's an ocx for those things? I did an app last Summer for the local school district food services to process menu cards (replacing a cranky QBASIC program), and rather than reinvent the wheel I left their scan procedures alone and imported and processed the text files. Direct access to the scanner - that could be fun. Next time I visit them I will have to look into it.
>
> Randy
>
>>Hi all,
>>
>>I need to deal with scancomm.ocx, an activex for scantron machines.
>>It works well in VB but in VFP something is not working, or better said, it's half working, have somebody here worked with it and may share sample code?
>>
>>Max

...Y soy feliz, bien feliz, asi lo grito;
Mira, que el mundo sepa, que se sepa:
Soy feliz....                       

...And I'm happy, quite happy, so do I yell it;
Look, so the world knows it, so be known:
I'm happy...
 

Ismael Rivera "Oye cosita linda"
Previous
Reply
Map
View

Click here to load this message in the networking platform