Oxygen Basic

Programming => Problems & Solutions => Topic started by: Peter on October 03, 2011, 03:01:45 PM

Title: SizeOf
Post by: Peter on October 03, 2011, 03:01:45 PM
Deleted....
Title: Re: SizeOf
Post by: Charles Pegge on October 03, 2011, 04:18:09 PM

To get the number of elements declared in a static array use spanof

To get the length of a static array: spanof x * sizeof x

Note: when passing whole arrays to a function the spanof info is not included so this has to be passed explicitly.

Charles