Length function

Mike Palandri palandri@eug4ja.lane.edu
Wed, 27 Dec 2000 09:17:38 -0800


 A couple potential pitfalls of the SIZE function:

Without combining it with TRUNC, it returns the full size of the item.

When comparing the value returned from SIZE with a literal, the literal must be on the left of the "=", at least on the versions and platforms I've worked with:

This is OK:
if 0 < size(trunc(xxx))

this isn't: 

if size(trunc(xx)) > 0




At 10:31 AM 12/27/2000 -0600, jlkeepers@mmm.com wrote:
>
>
>Short and sweet, does PowerHouse have a length function?  I need to setup some
>logic that will do two different things depending on the length of data in the
>evaluated variable.  I did a search on my on-line manuals and couldn't find
>anything.  Any help would be appreicated.
>
>Thanks,
>Jeff
>
>
>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
>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.
>

Mike