XBOT Posted May 27, 2008 Share Posted May 27, 2008 In A Script I Import Records To A New Table. Then For Purposes Of Preparing Duplicate Parts Labels, After Going To The First Record, I Start A Loop With Duplicate Record , Go To Next Record And Continue To End Of Table. It Keeps Repeating The First Record , Does Not Move To The Next Record. What Am I Missing? Link to comment Share on other sites More sharing options...
AHunter3 Posted May 27, 2008 Share Posted May 27, 2008 You have to omit the record you end up on becuase it IS the duplicate of the record you duplicated, not the original record you made that duplicate FROM. I usually do it like this: Set variable [$RecordNum, 1] Loop ..Go to Record [by calculation $RecordNum] ..Duplicate Record/Request ..Omit Record/Request .. Set Variable [$RecordNum, $RecordNum + 1] .. Exit Loop If [GetAsNumber ($RecordNum) > Get(FoundCount)] End Loop Link to comment Share on other sites More sharing options...
XBOT Posted May 27, 2008 Author Share Posted May 27, 2008 Thank You I Have Just Recently Started To Get Into Scripting. This Program Is Very Different Than Something I Used To Write In Years Ago Called Vp Info. Link to comment Share on other sites More sharing options...
AHunter3 Posted May 27, 2008 Share Posted May 27, 2008 You Will Probably Get More Useful Responses From More People If You Do Not Capitalize Each Word. It's Hard To Read. (better than ALL CAPS though) Link to comment Share on other sites More sharing options...
Recommended Posts