Replacing a variable within a variable.

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17040
interpreted = N
texte = How can the variable, [index], be replaced first and then the variable that contains the [index] be replaced? Please take a look at the following code: First Page Posted To Second Page:[SEARCH db=../../../admin/db/productslist.db&eqCOMPANYIDPdatarq=[COMPANYID]&RECORDIDPsort=1][FOUNDITEMS] [/FOUNDITEMS][/SEARCH]Second Page:[loop start=1&end=20][REPLACE db=../../../admin/db/productslist.db&eqRECORDIDPdatarq=[PVRecordIDP-[index]]]&FIELD1=[url][INField1-[index]][/url]&FIELD2=[url][INField2-[index]][/url]&FIELD3=[url][INField3-[index]][/url]&FIELD4=[url][INField4-[index]][/url]&FIELD5=[url][INField5-[index]][/url][/REPLACE][/loop]------------------------------------------------------------------------------[PVRecordIDP-[index]]Will Return As:PVRecordIDP-1I Want It To Return As:abc123-1 Thanks,Bill Norman Associated Messages, from the most recent to the oldest:

    
  1. Re: Replacing a variable within a variable. (PCS Technical Support 1998)
  2. Replacing a variable within a variable. (webmaster@textileweb.net (Bill Norman) 1998)
How can the variable, [index], be replaced first and then the variable that contains the [index] be replaced? Please take a look at the following code: First Page Posted To Second Page:[SEARCH db=../../../admin/db/productslist.db&eqCOMPANYIDPdatarq=[COMPANYID]&RECORDIDPsort=1][founditems] [/FOUNDITEMS][/SEARCH]Second Page:[loop start=1&end=20][REPLACE db=../../../admin/db/productslist.db&eqRECORDIDPdatarq=[PVRecordIDP-[index]]]&FIELD1=[url][INField1-[index]][/url]&FIELD2=[url][INField2-[index]][/url]&FIELD3=[url][INField3-[index]][/url]&FIELD4=[url][INField4-[index]][/url]&FIELD5=[url][INField5-[index]][/url][/REPLACE][/loop]------------------------------------------------------------------------------[PVRecordIDP-[index]]Will Return As:PVRecordIDP-1I Want It To Return As:abc123-1 Thanks,Bill Norman webmaster@textileweb.net (Bill Norman)

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:

using showpage and showcart commands (1996) [WebDNA] Quick Grep question (2009) WebCat2.0 [format thousands .0f] no go (1997) Hiding URL ? (1998) Formating found categories (1997) A dynamic database. (1997) Multi-Row Tables from a search. (1997) [WebDNA] How can I uninstall WebDNA on OS X Sierra? (2017) Big Databases (1997) check out page (SSL) not loading on Netscape 4.0+ (1999) formvars available in formulas.db? (2000) Updating emailer (server) (2000) all records returned. (1997) hyperlinking unique input strings on the fly when displaying in HTML (2000) [WebDNA] two ideas for running a cluster of WebDNA servers (2019) [NT] ie 4.0 required (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Mozilla/4. and Browser Info.txt (1997) Still can't upgrade users.db to 2.1.1 (1998) [WebDNA] reverse rank=off (2008)