Frame variables:

Frame is another special variable which stores references to another variables and attributes of them. Is used also for xml manipulation.


Declaration

This variable also (like xml) need to be declared.

string title;
string author;
string description;

frame book {
    title,
    author,
    description
  };

string title;
string author;
string description;

frame book {
    title        %label="Book Title",
    author       %label="Book Author",
    description  %label="Book Description"
  };

string title;
string author;
string description;

frame book {
    title,
    author,
    description
  } %label="Book Information";

Frame properties:

int frame:fields() - Get number of fields in frame
string frame:field_name(int) - Get name of field in frame
int frame:field_type(int) - Get type of field in frame
string frame:getfield_string(int) - Get string value of field in frame
string frame:getfield_int(int) - Get int value of field in frame
int frame:params(int) - Get number of parameters of field
void frame:param_set(int,string,string) - ?
string frame:param_get(int,string) - ?
void frame:param_setname(int,int,string) - ?
string frame:param_getname(int,int) - Get name of parameter of field
void frame:param_setvalue(int,int,string) - ?
string frame:param_getvalue(int,int) - Get value of parameter of field