Re: Assign Variable Value
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16003
interpreted = N
texte = >Isn't there a way to assign a value to a text variable without leaving >the web page. The [math show=F]total=2[/math] function allows for a >value to assigned to total for later use in the page. Is there a way >to do the same thing with a text variable. >>variable=sometextSorry, the closest you can get right now is by using [include] with parameters, as in [include file=subroutine.inc&variable=sometext]. Down inside the file subroutine.inc, you can access [variable].So if you rewrite your HTML so that the 'guts' of it are contained in an include file, then you can get the effect of named text variables.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Isn't there a way to assign a value to a text variable without leaving >the web page. The [math show=F]total=2[/math] function allows for a >value to assigned to total for later use in the page. Is there a way >to do the same thing with a text variable. >>variable=sometextSorry, the closest you can get right now is by using
[include] with parameters, as in [include file=subroutine.inc&variable=sometext]. Down inside the file subroutine.inc, you can access [variable].So if you rewrite your HTML so that the 'guts' of it are contained in an include file, then you can get the effect of named text variables.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Grant Hulbert
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
multi-paragraph fields (1997)
WebCat2 beta 11 - new prefs ... (1997)
Performance Settings (2000)
Webcat run amuk (2002)
Putting a page between checkout and invoice (1999)
Cleaning up all the shopping carts (2000)
Sorting LISTFILES (1997)
Code database (1998)
[defined]ish (1997)
ListFiles (1998)
[returnraw] and form variables (1998)
WC 2.0 frames feature (1997)
How Many SKU's is enough? (1997)
Location of Browser Info.txt file (1997)
Trouble with Showif and Search (1998)
Freeze (2003)
RE: SSL and WebCatalog (1997)
Bug Report, maybe (1997)
SMSI (Scott) clues?? (2005)
Assigning new CART number (1997)