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:

select multiple (1997) WC2.0 Memory Requirements (1997) Re:No Data (1997) [ShowIf] a either fields are blank (1998) Problem using # in my field names ... (1998) Grant, please help me ... (1997) Stumped on ShowNext -using variables (1997) page redirect in webDNA (1997) WebCommerce: Folder organization ? (1997) WebCat2 beta 11 - new prefs ... (1997) WebCat2b15MacPlugin - [protect] (1997) WebSite and *NO* Authentication Dialog Box!!? (1998) PIXO support (1997) RePost: NAT and the CART (1999) Webcatalog error, Plug-in for Webstar (1996) Maybe minor bug report (1997) shipping calculations, lookup command (1997) How to find 100 most recent additions. (1997) (2000) So many lookers, hey smith micro (2003)