Re: functions...
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62644
interpreted = N
texte = By default, text variables created within a function are discarded after thefunction has finished. If you want to create a text variable within afunction that persists after the function completes, then you need toexplicitly set the variable scope to global. For example:[text scope=global]size_width=500[/text]-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Ofkalin mintchevSent: Wednesday, July 20, 2005 11:43 PMTo: WebDNA TalkSubject: functions...hi all... trying to use webdna functions....what's wrong with the code below?i get this:*** [size_width]****** [size_height]****** [size_kb]***thanks....
[function name=Sizes] [showif [the_name]^file1][text]size_width=500[/text][text]size_height=700[/text][text]size_kb=150000[/text] [/showif] [showif [the_name]^file2][text]size_width=300[/text][text]size_height=300[/text][text]size_kb=80000[/text] [/showif][/function][text]name=moo_f00++poo+file1_caca++[/text][Sizes the_name=[name]]
*** [size_width]***
*** [size_height]***
*** [size_kb]***
-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
By default, text variables created within a function are discarded after thefunction has finished. If you want to create a text variable within afunction that persists after the function completes, then you need toexplicitly set the variable scope to global. For example:[text scope=global]size_width=500[/text]-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Ofkalin mintchevSent: Wednesday, July 20, 2005 11:43 PMTo: WebDNA TalkSubject: functions...hi all... trying to use webdna functions....what's wrong with the code below?i get this:*** [size_width]****** [size_height]****** [size_kb]***thanks....[function name=Sizes] [showif [the_name]^file1][text]size_width=500[/text][text]size_height=700[/text][text]size_kb=150000[/text] [/showif] [showif [the_name]^file2][text]size_width=300[/text][text]size_height=300[/text][text]size_kb=80000[/text] [/showif][/function][text]name=moo_f00++poo+file1_caca++[/text][Sizes the_name=[name]]
*** [size_width]***
*** [size_height]***
*** [size_kb]***
-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"Scott Anderson"
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:
off topic
Search results templates (1996)
[WebDNA] Needing Open Source Support (2012)
http://www.teamorganizer.net/tour5.html (2000)
Explorer 3.0/ Access Denied! (1997)
Reversed words (1997)
Date format problems (1997)
WebCat2b12plugin - [search] is broken ... not! (1997)
WebCatalog can't find database (1997)
[convertchars] limits (1998)
[ConvertChars] problem (1997)
2.1b3 --> way slow (1997)
searchable list archive (1997)
webdna page not found redirect (2007)
how to get s repeatedly in and out of a form? (1999)
Bug Report, maybe (1997)
Using Plug-In while running 1.6.1 (1997)
Emailer (1997)
Separate SSL Server (1997)
form data submission gets truncated (1997)