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 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Assign Variable Value (Grant Hulbert 1998)
  2. Assign Variable Value (RH Prouty 1998)
>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 | Typhoon 619/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:

Uh...can someone help me out with the b10? (1997) Configuring E-mail (1997) New Plug-in and Type 11 errors (1997) comparison looking for unitialized var shows webcat bug? (2000) ODBC Help (2004) Mac Vs WindowsNT (1997) Trouble with formula.db (1997) Search in 2 or more catalogs (1997) still facing truncated [texta] problem (2000) Running 2 two WebCatalog.acgi's (1996) PIXO support (1997) Conveting Characters to Graphics (1997) WebCatalog can't find database (1997) Re2: frames & carts (1997) [ShowIf] and empty fields (1997) Bug Report, maybe (1997) Summing fields (1997) append=T problem (1998) Generate a SKU (1998) Template not found error messages (1997)