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:

Tips and Tricks

A list of user-submitted tips ...

Technical Change History

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

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

F.A.Q

A compilation of some user's questions...

WebDNA Libraries

A list of available libraries for WebDNA...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

Related Readings:

Check the Federal Government's Social Security database

The script on the page will check the federal government's social security database...

Hideif on IP range

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

How to keep the text variable after a function has finished

By default...

Using a simple Array of Variables with [interpret]

The [interpret] context is very powerful command in the hands of a skilled WebDNA programmer...

Setting a 30-minute Cookie

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

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

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