Navigation:  Reference > Functions >

SizeOf()

Print this Topic Previous pageReturn to chapter overviewNext page

 

SIZE(1,2)

 

PURPOSE

This function will return the size of a specified field.

 

PARTS

1 f/c/eRequired - 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