2022.2

Table Of Contents
Method Description File
type
"moveTo()"below Movesthepointerinthesourcedatafiletoanotherposition. All
"moveToNext()"on
page400
Movesthepositionofthepointerinthesourcedatafiletothenextline,rowornode.Thebehaviorandargu-
mentsaredifferentforeachemulationtype:text,PDF,tabular(CSV),orXML.
All
totalPages Anintegervaluerepresentingthetotalnumberofpagesinsidethecurrentrecord. Text,PDF
Example
if(steps.currentPage > curPage) {
steps.moveTo(0, steps.currentPosition+14);
/* Moves the current position to 14 lines below the current position of the pointer in the data */
curPage++;
} else if(curLine.startsWith("LOAD FACTOR")) {
/* Extracts data to the curLine variable until the string "LOAD FACTOR" is encountered */
break;
} else {
lineArray.push(curLine);
/* Adds the current line value (extraction) to the array */
}
currentPage
Propertyofthestepsobject(see"steps"onthepreviouspage)containinganintegervaluethatrep-
resentsthepagewherethepointerislocated,insidethecurrentrecord.
Inthisexample,anextractionareaisassignedtothevariablecurLineeachtimethecurrentpage
valuehaschanged.
curPage = steps.currentPage;
for(i=0;i<100;i++) {
if(steps.currentPage > curPage) {
let curLine = data.extract(51, 88, 0, 1, "").trim();
curPage++;
}
}
moveTo()
Movesthepositionofthepointerinthesourcedatafile.Thisisamethodofthestepsobject(see
"steps"onthepreviouspage).
moveTo(scope, verticalPosition)
Movesthecurrentpositioninatext filetoverticalPositionwherethemeaningofverticalPosition
changesaccordingtothevaluespecifiedforscope.
scope
Page 398