How to keep the text variable after a function has finished

By default, text variables created within a function are discarded after the function has finished.

If you want to create a text variable within a function that persists after the function completes, then you need to explicitly set the variable scope to global. ᅠFor example:
[text scope=global]valueP0[/text]
Scott Anderson

DOWNLOAD WEBDNA NOW!

Top Articles:

Download WebDNA Applications

WebDNA applications...

F.A.Q

A compilation of some user's questions...

WebDNA Libraries

A list of available libraries for WebDNA...

WebDNA Modules

A list of the currently available modules...

Tips and Tricks

A list of user-submitted tips ...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Related Readings:

Hideif on IP range

This will show or hide stuff according to the IP...

Annoying character on writefile

How do I get rid of or convert the line feed character during a writefile?...

File upload example

...

Setting a 30-minute Cookie

Configuring the expires time for a short-term cookie is tricky...

Cloning a Record

Often...

How to keep the text variable after a function has finished

By default...