Re: functions...
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62646
interpreted = N
texte = > Now why didn't I think of that ?> :) i did... it only makes sense. and there is an example with the 'global'date tag but i didn't find anything about 'global' variables in theexplanations of function or [text].after i got Scott's mail i found it under the [scope] explanation - allthe way down... and now i even know how to return a value from afunction...why scope isn't one of the [text] options?!thanks..>>> Stuart Tremain> idfk web developments, sydney, australia>> On 21 Jul 2005, at 5:07 PM, Scott Anderson wrote:>>> 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]size_width=500[/text]>>>>>>>> -----Original Message----->> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of>> kalin mintchev>> Sent: Wednesday, July 20, 2005 11:43 PM>> To: WebDNA Talk>> Subject: 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 to>> >> Web 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 > digest@talk.smithmicro.com>>> Web 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/>-- -------------------------------------------------------------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:
> Now why didn't I think of that ?> :) i did... it only makes sense. and there is an example with the 'global'date tag but i didn't find anything about 'global' variables in theexplanations of function or [text].after i got Scott's mail i found it under the [scope] explanation - allthe way down... and now i even know how to return a value from afunction...why scope isn't one of the [text] options?!thanks..>>> Stuart Tremain> idfk web developments, sydney, australia>> On 21 Jul 2005, at 5:07 PM, Scott Anderson wrote:>>> 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]size_width=500[/text]>>>>>>>> -----Original Message----->> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of>> kalin mintchev>> Sent: Wednesday, July 20, 2005 11:43 PM>> To: WebDNA Talk>> Subject: 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 to>> >> Web 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 > digest@talk.smithmicro.com>>> Web 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/>-- -------------------------------------------------------------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/
"kalin mintchev"
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:
Fun with dates (1997)
WCf2 and nested tags (1997)
Date Calulation (1997)
Stat analyzer (1997)
Bug - 4.5 (2002)
ANSWER to: CC Merchant suggestions?? (1997)
OT-listserver stuff -WAS-webcat method for waiting (2000)
IIS4/IIS3 and WebCatalog registry settings (1998)
Example Search Form (1997)
[WebDNA] Some JS help please (2010)
details (2003)
Here we go again... (2006)
Protect vs Authenicate (1997)
Security Issues and WebCommerce Solution (1997)
More on the email templates (1997)
NT Manual (1997)
Templates in Memory (2000)
Multiple Stores and WebCatalog Prefs (1997)
Append command (2000)
(1997)