This is actually for a LoadRunner script:
So I have a function called
web_reg_save_param("AcctOf
So following what you wrote above I declared it as
char* AcctOffer; (at top of script)
then added your snippet below the function
web_reg_save_param("AcctOf
lr_eval_string({AcctOffer}
for (int i=0,j=0; AcctOffer[i]; i++)
{
if (Acctoffer[i] != '-')
{
Acctoffer[j] = Acctoffer[i];
j++;
}
}
Acctoffer[j] = 0;
Look right??
Main Topics
Browse All Topics





by: jaime_olivaresPosted on 2008-01-17 at 19:07:43ID: 20687614
there are many ways to do this, assuming "offer" is of type char*, you can do:
Select allOpen in new window