jridings Posted April 7, 2010 Share Posted April 7, 2010 I need to trigger my parsing of text in 2 different line. Example STANDARDIZE REPORT FRAME 1 Basis Weight ALARM AIZ VOLTS AIS VOLTS SIGMAZ % SIGMAB % DIRT G/M2 TCLEAN DAYS AVG TEMP C SRC TEMP C DET TEMP C SRC PRG/DG V DET PRG/DG V 1.000 -0.000 2.597 0.000 0.050 -0.420 5.000 59.980 60.050 59.990 1.641 3.046 0.000 END of Report Here is my code. if (find(linein,"STANDARDIZE REPORT",0) != -1) && if (find(linein,"FRAME 1",0) != -1) This line of code does not see "FRAME 1". Can you help? Link to comment Share on other sites More sharing options...
AzeoTech Posted April 8, 2010 Share Posted April 8, 2010 that's because its in two different lines and you are only analyzing one line at a time. You'll have to use flags in the loop. Use a private variable to indicate that STANDARDIZE REPORT was found and another that FRAME 1 was found. Then if both variables become 1, then you know you found the right spot. Make sure and reset to 0 when done. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.