@td gives /OV
Walter Vaughan Jr
wvaughan at steelerubber.com
Thu Apr 13 11:05:36 PDT 2017
Mid returns two characters. It could return two alphabetic characters. Don't you have to cast them (the result of the mid) as an integer before you can do a mathematical operation?
-----Original Message-----
From: Filepro-list [mailto:filepro-list-bounces+wvaughan=steelerubber.com at lists.celestial.com] On Behalf Of Robert Repko via Filepro-list
Sent: Thursday, April 13, 2017 12:13 PM
To: Filepro-list at lists.celestial.com
Subject: @td gives /OV
Sorry, I sent the message by accident
Running filePro 5.7.00.04R4 on SCO Unix 5.0.7 In a processing table I assign a numeric value to a variable based on the month of a date (@td). I'm getting /O in that variable When debugging the processing table I get /OV when I press 'f' for field and enter @td.
Processing lines:
pe(2,.0)=mid(@td,"1","2")-"6"
The Unix system date is correct.
@dt gives me the correct date.
Any ideas why I am getting the error on @td
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20170413/b908cab9/attachment.html>
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
Subscribe/Unsubscribe/Subscription Changes http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list