SIZE(1,2)
PURPOSE
This function will return the size of a specified field.
PARTS
1 f/c/e | Required - The field being checked. |
2 f/c/e | 'I' - Return the internal size. This is the default value. |
'D' - Return the display size.
'A' - Return the actual size only if the field being checked is type A.
RETURN TYPE - R
EXAMPLE
define x type n size 12 dec 2
define y type r
x = 100.10
r = size(x,'i')
// r = 8
r = size(x,'d')
// r = 12
r = size(x,'a')
// r = 0
define y type a size 20
y = 'ABCD'
r = size(y,'i')
// r = 20
r = size(y,'d')
// r = 20
r = size(y,'a')
// r = 4
Page url: http://www.cassoftware.com/tas/manual/sizeof().htm