Re: [WebDNA] Issue with variable inside a Function
This WebDNA talk-list message is from 2018
It keeps the original formatting.
numero = 114235
interpreted = N
texte = 1838In programming, respectfully, setting a global constant is a ridiculous=20thing to do in this situation.Constants, especially global constants, are for server-wide vars that=20don't change much. I would hate to see WSC recommending their usersset temporary, permanent, and server-wide variables on a regular basis.Though I think the idea of '[Store]' has some potential, why would an=20age-old idea of constants be implemented this way? Why not start with a=20standard... something like PHP's define.[define blah=3Dblah] or[define scope=3Dglobal blah=3Dblah]Then it's a variable that can't change..[blah][:named-global:blah]Constants are relatively easily set anyway and this entire "feature" is=20really easy to create without a [store] or [define].Anyway, back to the issue...Palle, I think you'd have to post some code.One of the best things about WebDNA is it's [function] and [scope]=20contexts... and one of the worst things about WebDNA is it's [function]=20and [scope] contexts. ;-).... because... unfortunately, WSC has never properly addressed the full=20documentation, nor the improvements to these contexts... but if you post=20your code, some of us may be able to help.Yours Truly,Debby DownerOn 2018-05-03 07:44, christophe.billiottet@webdna.us wrote:> Palle, you could use [store]>> - chris>>> On May 3, 2018, at 15:37, Palle Bo Nielsen=20>>
wrote:>>>> Thanks (it works), but how can I make the variable continue to work.=20>> In this case the Variable has been brought into the Function (which is==20>> Ajax JS) but then the variable seems to stop to exist afterwards. And=20>> in this particular case the next fase is to do some Append off the=20>> actual variable but also show up in the dynamical Ajax output.>>>> Just need to keep the variable alive :) af the Function/Ajax JS.>>>> /Palle>>>>>>>>>>>>> On 3 May 2018, at 13.50, Stuart Tremain =20>>> wrote:>>>>>> [ajaxDBentry test_variable=3D44]>>>>>> Regards>>> Stuart Tremain>>>>>> Pharoah Lane Software>>> 7/76 Reserve Road>>> Artarmon NSW 2064>>> AUSTRALIA>>> +612 8971 4431>>>>>>> On 3 May 2018, at 9:29 pm, Palle Bo Nielsen=20>>>> wrote:>>>>>>>> Need a nudge=E2=80=A6>>>>>>>> Why is the variable not parsed to the function? In other words; I=20>>>> can se the value of =E2=80=9Ctest_variable=E2=80=9D if I expose it b=efore I call the=20>>>> Function but not after the Function has been called.>>>>>>>> [text scope=3Dglobal]test_variable=3D44[/text][test_variable]>>>> [ajaxDBEntry]>>>>>>>> /Palle--------------------------------------------------------->>>> This message is sent to you because you are subscribed to>>>> the mailing list talk@webdna.us>>>> To unsubscribe, E-mail to: talk-leave@webdna.us>>>> archives: http://www.webdna.us/page.dna?numero=3D55>>>> Bug Reporting: support@webdna.us>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list talk@webdna.us>>> To unsubscribe, E-mail to: talk-leave@webdna.us>>> archives: http://www.webdna.us/page.dna?numero=3D55>>> Bug Reporting: support@webdna.us>>>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list talk@webdna.us>> To unsubscribe, E-mail to: talk-leave@webdna.us>> archives: http://www.webdna.us/page.dna?numero=3D55>> Bug Reporting: support@webdna.us>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us> archives: http://www.webdna.us/page.dna?numero=3D55> Bug Reporting: support@webdna.us---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us.
Associated Messages, from the most recent to the oldest:
1838In programming, respectfully, setting a global constant is a ridiculous=20thing to do in this situation.Constants, especially global constants, are for server-wide vars that=20don't change much. I would hate to see WSC recommending their usersset temporary, permanent, and server-wide variables on a regular basis.Though I think the idea of '[store]' has some potential, why would an=20age-old idea of constants be implemented this way? Why not start with a=20standard... something like PHP's define.[define blah=3Dblah] or[define scope=3Dglobal blah=3Dblah]Then it's a variable that can't change..[blah][:named-global:blah]Constants are relatively easily set anyway and this entire "feature" is=20really easy to create without a [store] or [define].Anyway, back to the issue...Palle, I think you'd have to post some code.One of the best things about WebDNA is it's [function] and [scope]=20contexts... and one of the worst things about WebDNA is it's [function]=20and [scope] contexts. ;-).... because... unfortunately, WSC has never properly addressed the full=20documentation, nor the improvements to these contexts... but if you post=20your code, some of us may be able to help.Yours Truly,Debby DownerOn 2018-05-03 07:44, christophe.billiottet@webdna.us wrote:> Palle, you could use [store]>> - chris>>> On May 3, 2018, at 15:37, Palle Bo Nielsen=20>> wrote:>>>> Thanks (it works), but how can I make the variable continue to work.=20>> In this case the Variable has been brought into the Function (which is==20>> Ajax JS) but then the variable seems to stop to exist afterwards. And=20>> in this particular case the next fase is to do some Append off the=20>> actual variable but also show up in the dynamical Ajax output.>>>> Just need to keep the variable alive :) af the Function/Ajax JS.>>>> /Palle>>>>>>>>>>>>> On 3 May 2018, at 13.50, Stuart Tremain =20>>> wrote:>>>>>> [ajaxDBentry test_variable=3D44]>>>>>> Regards>>> Stuart Tremain>>>>>> Pharoah Lane Software>>> 7/76 Reserve Road>>> Artarmon NSW 2064>>> AUSTRALIA>>> +612 8971 4431>>>>>>> On 3 May 2018, at 9:29 pm, Palle Bo Nielsen=20>>>> wrote:>>>>>>>> Need a nudge=E2=80=A6>>>>>>>> Why is the variable not parsed to the function? In other words; I=20>>>> can se the value of =E2=80=9Ctest_variable=E2=80=9D if I expose it b=efore I call the=20>>>> Function but not after the Function has been called.>>>>>>>> [text scope=3Dglobal]test_variable=3D44[/text][test_variable]>>>> [ajaxDBEntry]>>>>>>>> /Palle--------------------------------------------------------->>>> This message is sent to you because you are subscribed to>>>> the mailing list talk@webdna.us>>>> To unsubscribe, E-mail to: talk-leave@webdna.us>>>> archives: http://www.webdna.us/page.dna?numero=3D55>>>> Bug Reporting: support@webdna.us>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list talk@webdna.us>>> To unsubscribe, E-mail to: talk-leave@webdna.us>>> archives: http://www.webdna.us/page.dna?numero=3D55>>> Bug Reporting: support@webdna.us>>>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list talk@webdna.us>> To unsubscribe, E-mail to: talk-leave@webdna.us>> archives: http://www.webdna.us/page.dna?numero=3D55>> Bug Reporting: support@webdna.us>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us> archives: http://www.webdna.us/page.dna?numero=3D55> Bug Reporting: support@webdna.us---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us.
dbrooke@euca.us
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:
[HIDEIF] inside [FOUNDITEM] (1997)
File Upload (1997)
referrer (2000)
RE:DatabaseHelper (1997)
& in Lookups (1997)
WebCat b15 Mac plug-in (1997)
The & Problem (1998)
FORMS: Returning a specific page (1997)
WebMerchant & Online CC Auths (1999)
How can I record purchases to a database? (1998)
Re:HTTP header line is too long? (1997)
Unable to view next 101-200 (1997)
WC Database Format (1997)
Variable Math (1998)
Server crash (1997)
frustrated with search (2001)
Search and Change (2003)
default value from Lookup (was Grant, please help me) (1997)
Hello??? (1997)
Uploading out of FMP (2001)