Assignments to uncast dummy fields (was Re: simple
Larry S. Weaver Jr.
lweaverjr at dellem.com
Fri Feb 15 11:29:53 PST 2008
Just playing around with Ken's little test routine, not only can you
force filepro to treat a text string ("000019foo") as a number by
performing a math function on it:
ie xx="000019foo"+"0" gives "19" with field edit (25,f)
You can also force it to treat a number as a text string by doing a text
function on it.
yy(2,.0)="15"
xx=yy{"" gives "15" with a field edit of (2,*)
I then tried to trip it up by doing both with unexpected results:
yy(2,.0)="15"
xx=yy{""+"3" gave "153" with a field edit of (3,*)
xx=yy{""-"3" gave "15-3" with a field edit of (4,*)
xx=yy{""*"3" gave "150" with a field edit of (3,*), as did xx=yy{""/"3"
(all with filepro 5.0.09)
Not that any of those have any real use, but it just goes to show there
are some mysterious things going on under the hood.
Larry, Jr.
Larry Weaver, Jr. - Dellem Associates, Inc.
Ph: 813-963-5353 Ext: 101; Fax: 813-962-3164
E-mail: lweaverjr at dellem.com
More information about the Filepro-list
mailing list