Re: Loop code problem
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 30065
interpreted = N
texte = [interpret][__CNAME[LOOPNUM]][/interpret] will resolve to __CNAME3 when[LOOPNUM] is 3Technical Support **********************************Smith Micro, Internet Solutions Div | eCommerce (WebCatalog)16855 West Bernardo Drive, #380 | -------------------------San Diego, CA 92127 | Software & Site DevelopmentWebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 *********************************-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]OnBehalf Of Ralph DratmanSent: Wednesday, April 05, 2000 11:47 AMTo: WebCatalog TalkSubject: Loop code problemThanks to all who replied to my previous message. But I believe I misstatedthe problem. I should have said,The fields __CNAME1, __PCT1, __CNAME2, ___PCT2, ... up through __CNAME10and __PCT10, have been set up via a form on the same page.I am trying to implement an array of text variables. I have been able toconfirm that these variables are already created and initialized. Now I wantto access the contents of these array variables for use in a REPLACE.My idea was to construct, for example, the string __CNAME3 by writing __CNAME[LOOPNUM]where LOOPNUM happens to be, say, 3. This seems to work.Then I proceed to put the above into an enclosing set of square brackets, asfollows [__CNAME[LOOPNUM]]which I think should be equivalent to [__CNAME3]hoping thereby to retrieve the contents of the variable called __CNAME3This works sometimes but not always! My method assumes that the results of asubstitution are then rescanned for more possible substitutions. Is thistrue?Now that I've stated the problem better,1. What is the RIGHT way (if any) to construct and use an array of textvariables?2. If I've got the right general idea, what am I doing wrong?I apologize for not stating the problem more clearly in my first post.Thank you.Ralph Dratman-------------------------------------------------------------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-------------------------------------------------------------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
Associated Messages, from the most recent to the oldest:
[interpret][__CNAME[LOOPNUM]][/interpret] will resolve to __CNAME3 when[LOOPNUM] is 3Technical Support **********************************Smith Micro, Internet Solutions Div | eCommerce (WebCatalog)16855 West Bernardo Drive, #380 | -------------------------San Diego, CA 92127 | Software & Site DevelopmentWebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 *********************************-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]OnBehalf Of Ralph DratmanSent: Wednesday, April 05, 2000 11:47 AMTo: WebCatalog TalkSubject: Loop code problemThanks to all who replied to my previous message. But I believe I misstatedthe problem. I should have said,The fields __CNAME1, __PCT1, __CNAME2, ___PCT2, ... up through __CNAME10and __PCT10, have been set up via a form on the same page.I am trying to implement an array of text variables. I have been able toconfirm that these variables are already created and initialized. Now I wantto access the contents of these array variables for use in a REPLACE.My idea was to construct, for example, the string __CNAME3 by writing __CNAME[LOOPNUM]where LOOPNUM happens to be, say, 3. This seems to work.Then I proceed to put the above into an enclosing set of square brackets, asfollows [__CNAME[LOOPNUM]]which I think should be equivalent to [__CNAME3]hoping thereby to retrieve the contents of the variable called __CNAME3This works sometimes but not always! My method assumes that the results of asubstitution are then rescanned for more possible substitutions. Is thistrue?Now that I've stated the problem better,1. What is the RIGHT way (if any) to construct and use an array of textvariables?2. If I've got the right general idea, what am I doing wrong?I apologize for not stating the problem more clearly in my first post.Thank you.Ralph Dratman-------------------------------------------------------------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-------------------------------------------------------------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
WebDNA Support
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:
[replaceChars] would be nice ... (1997)
Creating 404 Not Found pages (1999)
Formulas.db (1997)
Limits (2000)
WebCat2 several catalogs? (1997)
[WebDNA] Crashing again (2008)
[WebDNA] WebDNA Popularity (2014)
Major Security Hole IIS NT (1998)
Opinion: [input] should be called [output] ... (1997)
Stumpted Again (1997)
best way to get 2 unique strings on the same page load? (2000)
off-topic: SMS interface? (2001)
Mime Headers for Mail (1998)
SSL and Webstar 3 with Webcatalog (1998)
re: sorting and summarizing (1998)
Listserver problem (1997)
Re2: Calculating multiple shipping... (1997)
WebCat2 beta 11 - new prefs ... (1997)
Webmerch Error (1998)
Code database (1998)