Can't do math in fieldlen()
Keith F Weatherhead
keithw at ddltd.com
Thu Apr 1 12:14:08 PST 2004
Greetings,
I just ran into a new problem today using fp 5.0.13 on SCO Unix,
whereby if you try to do the following it doesn't work...
::Declare Pntr1(8,.0), Value1(8,.0):
::Pntr1="90":
::Value1=fieldlen(lookup_name,Pntr1+"3"):
Value1 get assignned as zero, even when the field exists and is
defined, however...
Now, by adding...
::' to the above example where the declare is:
::declare Pntr2(8,.0):
::' after the Pntr1 assignment:
::Pntr2=Pntr1+"3":
::' replace the line with fieldlen() with...:
Value1=fieldlen(lookup_name,Pntr2):
Value1 now has the correct field length value in it.
Odd? There aren't too many places in the language where you cannot
do math in the position of where you want that value placed, but
fieldlen() appears to be one of those places...
Regards,
Keith
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Keith F. Weatherhead keithw at ddltd.com
Discus Data, LTD Voice: (815) 237-8467
3465 S Carbon Hill Rd Fax: (815) 237-8641
Braceville, IL 60407 Nat'l_Pager: (815) 768-8098
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
More information about the Filepro-list
mailing list