ikhmer
asked on
what is the function to pass parameter?
Dear all,
Suppose i have variable which carried the value as below:
x="1234567";
y=100;
and below is what i read from database "record set":
rs(0) => ID-INFO X="%X%" ==> i need to replace\pass %X% by 1234567
rs(1) => INFO-NO Y="%Y%" ==> i need to replace %Y% with 100
thanks,
Suppose i have variable which carried the value as below:
x="1234567";
y=100;
and below is what i read from database "record set":
rs(0) => ID-INFO X="%X%" ==> i need to replace\pass %X% by 1234567
rs(1) => INFO-NO Y="%Y%" ==> i need to replace %Y% with 100
thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
s = s.replaceAll("%X%", x).replaceAll("%Y%", y).replaceAll("%Z%", z);
ASKER
thank Q
ASKER
x="1234567";
y=100;
z=200;
and from my record set i'd like to replace any match value with x,y,z because it is not always
rs(0) -> rs(0) => ID-INFO X="%X%" or rs(1) => INFO-NO Y="%Y%"
thanks,