Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

string parameter of ids

Status
Not open for further replies.

mayathebee

Programmer
Jun 24, 2003
16
0
0
ZA
Hello,

I am passing in a string of ids from coldfusion.
My string looks like this (673,374,234,......) - can be any length. My code:

numbervar counter;
numbervar positioncount:=count({?campaignID});
stringvar Array NewArray;

while positionCount >= counter do

(
counter:=counter +1;
redim preserve NewArray[counter];
NewArray [counter] := trim({?campaignID}[counter])
);


totext({vw_KHCampaignReport.campaignID}) IN NewArray


I get this error: A subscript must be between 1 and the size of the array.

Please advise.
[bigglasses]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top