Link to home
Start Free TrialLog in
Avatar of ikhmer
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,


ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ikhmer
ikhmer

ASKER

oh thanks, and let say i have

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,
s = s.replaceAll("%X%", x).replaceAll("%Y%", y).replaceAll("%Z%", z);
Avatar of ikhmer

ASKER

thank Q