Highlighted
Absent Member.
Absent Member.
125 views

Iterating Transactions In VU Script

I am using Ajax protocol and want to iterate a certain transaction 3 times.

I tried following way
int i =3;
for(i=0;i<3;i++)
transaction

But this gives me an error. Any idea how I can iterate a transaction in my Ajax script.

Thanks.
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

The error is as follows :
Action.c (915): illegal statement termination
Action.c (915): skipping `int'
Action.c (915): undeclared identifier `i'
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

It is probably just a syntax error. If you paste your script, it might help.

This is the correct syntax:

int i;

for (i=0; i<3; i++) {

transaction

}
0 Likes
Highlighted
Absent Member.
Absent Member.

Where are you declaring your integer. It needs to be at the top of the action (script)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.