Advertisement
storeporter

Product / Family loop in script

Oct 20th, 2015
1,346
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local   loProd as swwProductCursorAdapter of swwData.vcx,;
  2.     loFam as swwFamilyCursorAdapter of swwData.vcx,;
  3.     loTable as swwProductCursorAdapter of swwData.vcx,;
  4.     lnTable as integer
  5.  
  6. for lnTable = 1 to 2
  7.  
  8.     if lnTable = 1
  9.         loTable = loProd
  10.     else
  11.         loTable = loFam
  12.     endif
  13.  
  14.     loTable.gotop()
  15.     do while not loTable.eof()
  16.         * do stuff
  17.         loTable.skip()
  18.     enddo
  19.  
  20. next lnTable
Advertisement
RAW Paste Data Copied
Advertisement