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:

Monthly Reports (2000) [WebDNA] [WSC] WebDNA Development Summit (2014) PIXO support (1997) Encrypt question. (2000) More on the email templates (I like it) (1997) WC1.6 to WC2 date formatting (1997) Thanks ! (1997) Text data with spaces in them... (1997) blank page from template (1997) Help! WebCat2 bug (1997) [WebDNA] Poll: Discussion Forum (2009) about this server and links to who (1997) Closing Databases (1998) [ConvertChars] problem (1997) WebCat2 - [include] tags (1997) OT: Jobseekers beware... (2003) Multiple prices (1997) Problems with [Applescript] (1997) [WebDNA] Serial numbers and pricing for WebDNA 7.0 (2011) RE: textarea question (1998)