numero = 30068
interpreted = N
texte = Let me see if this is what you want :)On your form page:[search ......][founditems][/founditems][/search]this will create an array of text variables equal to the number ofrecords found by the search.On your form process page...[loop start=1&end=[arraysize][REPLACEdb=example.db&eqRECORDNUMdatarq=[interpret][RECORDNUM-[index]][/interpret]]FIELD==[interpret][FIELD-[index]][/interpret][/REPLACE][/loop]Hope this works for you.regardsanup----- Original Message -----From: Ralph Dratman To: WebCatalog Talk Sent: Wednesday, April 05, 2000 2:46 PMSubject: Loop code problem> Thanks to all who replied to my previous message. But I believe Imisstated the 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,as follows>> [__CNAME[LOOPNUM]]>> which I think should be equivalent to>> [__CNAME3]>> hoping thereby to retrieve the contents of the variable called>> __CNAME3>> This works sometimes but not always! My method assumes that the results ofa substitution 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:
Let me see if this is what you want :)On your form page:[search ......][founditems][/founditems][/search]this will create an array of text variables equal to the number ofrecords found by the search.On your form process page...[loop start=1&end=[arraysize][REPLACEdb=example.db&eqRECORDNUMdatarq=[interpret][RECORDNUM-[index]][/interpret]]FIELD==[interpret][FIELD-[index]][/interpret][/REPLACE][/loop]Hope this works for you.regardsanup----- Original Message -----From: Ralph Dratman To: WebCatalog Talk Sent: Wednesday, April 05, 2000 2:46 PMSubject: Loop code problem> Thanks to all who replied to my previous message. But I believe Imisstated the 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,as follows>> [__CNAME[LOOPNUM]]>> which I think should be equivalent to>> [__CNAME3]>> hoping thereby to retrieve the contents of the variable called>> __CNAME3>> This works sometimes but not always! My method assumes that the results ofa substitution 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 Anup setty
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...