• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

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,


0
ikhmer
Asked:
ikhmer
  • 2
  • 2
1 Solution
 
ikhmerAuthor Commented:
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,
0
 
objectsCommented:
s = s.replaceAll("%X%", x).replaceAll("%Y%", y).replaceAll("%Z%", z);
0
 
ikhmerAuthor Commented:
thank Q
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now