VARKON Version 1.17 1999-01-20

> ## getdat_gm - Function

> Reads an array of data from GM

> Description

> Reads an array of data from GM previousely stored by putdat_gm().

> Syntax

> getdat_gm(key, array)

> STRING | key;
> Any_type | array();

> Principal parameters

> key | - The unique name of this data
> array | - A 1-dimensional array of INT, FLOAT, or STRING

> Optional parameters

> None.

> Return value

> 0 if no data with this name was found otherwise the number of elements read. -1 if array is wrong type or too small.

> Examples

> FLOAT k(100);
> INT count;

> count:=getdat_gm("My_data", k);

> Copies the data with key name = "My_data" into k.

> Comments

> Currently support is only implemented for arrays of INT, FLOAT or STRING.

> See also

> putdat_gm and deldat_gm

VARKON Homepage | Index