It's actually quite easy to do that.  You scan the data, then read the
part of the structure that holds the string.  Here's an example:

if(( StrNCompare( ( char* )decodeDataMsg.data, "NR", 2 ) == 0 ))
{
        bcheck = false;
}                                                                       
else                                                            // Good scan
{
        StrCopy( strP, ( char* )&decodeDataMsg.data );
        bcheck = true;
}

where strP is a string you define.  Then, display the string to
the field.  It's pretty easy, and there's a function in the manual
called SetFieldTextFromStr (and an accompanying function 
SetFieldTextFromHandle) that will display your string to a field.

-Rus

>-----Original Message-----
>From: Matthew Johnson [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, June 29, 2000 10:32 AM
>To: Palm Developer Forum
>Subject: Barcode Sample App
>
>
>
>Does anyone know where I can get the source code for the application
>called 'Barcode' that comes on the SPT 1700? I want a tutorial 
>that shows
>how to create records and scan in certain fields. DemoScan and 
>SimpleScan
>do not save the scan to a form field so they dont help...
>
>
>- Matt
>
>
>-- 
>For information on using the Palm Developer Forums, or to 
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to