Reading magnetic strip card

Chris Sharman Chris.Sharman@ccagroup.co.uk
Mon, 25 Sep 2000 15:17:39 +0100


>That helps to skip the semicolon but I need the rest of the string.  How
>would I do this ?

>>You could use the input procedure to discard the leading null entry:
>>
>>procedure input studentid
>> begin
>> if (fieldtext="")
>>  then error "" ;Skipped semicolon
>>  else let fieldtext = ";" + fieldtext
>> end

If you're in entrymode, I think it would automatically reprompt that field, and
re-call your input procedure with the bit after the semicolon (hence the else
clause above). If you're not in entrymode, you probably need 'push id N' or
something. Powerhouse has two field inputs queued up: the (null) part before
the ';', and the part after the ';', you just have to construct logic so that
it prompts for them in the right field.

Chris
_______________________________________________________________________
Chris.Sharman@CCAgroup.co.uk		http://www.ccagroup.co.uk/
CCA Stationery Ltd, Eastway, Fulwood, Preston, Lancashire, PR2 9WS.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.