strange code problem

Nic Prioleau nickp at didata.bw
Wed Mar 14 09:02:20 EDT 2007


Can anyone tell me why the code in red will work if I "Step" through it but as soon as I let it run normally I will get blank results??
It seems to "skip" the second repeat but if I put an answer msg in it, it reaches the answer msg!????

put "truckRegNo,totalFuel,totalKM,month" into tHeadings
  split tHeadings with comma
  put "1,2,3,4" into tColumns
  split tColumns with comma
  put the number of lines in thisOne into sRecordCount -- "thisOne" is a variable which contains comma seperated values like:- B456ADF,1000,2500,2
  put 0 into x
  answer thisOne
  repeat for each line thisLine in thisOne
    split thisLine with comma
    --answer x
    add 1 to x
    repeat for each element thisE in tColumns
      put tHeadings[thisE] into tHeader
      put thisLine[thisE] into tDetail[x,tHeader]
      --answer sColumn[thisLine,tHeader]
    end repeat
 end repeat

Any help appreciated!!!
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#####################################################################################



More information about the use-livecode mailing list