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.

numero = 51
interpreted = N
texte = 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]value=500[/text]
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]value=500[/text]
Scott Anderson

DOWNLOAD WEBDNA NOW!

Top Articles:

WebDNA Modules

A list of the currently available modules...

F.A.Q

A compilation of some user's questions...

Download WebDNA Applications

WebDNA applications...

WebDNA Libraries

A list of available libraries for WebDNA...

WebDNA reference

...

Technical Change History

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

Related Readings:

Redefining [date] & [time] to match your time zone

Your server is not always in the same time zone as your web site...

Export data to Excel

Here's a handy way to export your data to a text or Excel file...

File upload example

...

Spaghetti code

How to get rid of very long search strings...

Calculating Standard Deviation

...

Write Once Use Many

Reuse the same code over and over again on your site with the [include] context...