Create new project with variables using DOM

Hello,

I try to create dynamicly a L&L 15 project.
I used the example Creating a text object within the Programmer’s Reference.
That example prints the text DOM.

Now i want to have it variable. In the first stage I create dynamicly the lst file.
After that the second part will collect the data and print it.

For this purpose i want to bind the context of the text object to a variabele…

Is it possible to add variables dynamicly in a new lst file using DOM?

Please sent an example if it is possible?

Regard Okion