Though if you want to have several text-objects you have to do it this way
#include <acknex.h>
#include <default.c>
TEXT** myTextArray;
function main()
{
int numberOfNeededTextObjects;
myTextArray = (TEXT**)malloc((int)sizeof(TEXT*)*numberOfNeededTextObjects);
//Now you can acces the text objects in following manner
(myTextArray.layer)[0] = 25;
(myTextArray.pos_x)[0] = 100;
and so on...
}
EDIT: Oh yeah I forgot to mention.
You should make an exit-function which frees the memory again if you use malloc. Like
#include <acknex.h>
#include <default.c>
on_esc = myExitFunction;
function myExitFunction()
{
free(myTextArray);
}
greetings
KDuke