Page 1 of 1

'into' - what is wrong?

Posted: Sat May 12, 2012 6:24 am
by ueliweb
Hei

since some hours I try to find out what's wrong with this code?

Code: Select all

function read_Data   pTableName   pLineID   pFieldName 
   if  pTableName is empty AND  pLineID is not an integer AND pFieldName is empty then
      ##  create Error message
      put "me" into theErrorMessage
            put "I stop reading Data from File because" & \
            return & tab & "Didn't got needed Parameters" & \
            return & tab & "pTableName is:" && pTableName & \
            return & tab & "pLineID is:"&& pLineID & \
            return & tab & "pFieldName is:"&& pFieldName & \
            return & tab & "exception of: 'read_Data' of" & \
            return & tab & the name long of me & \
            return & tab & "Target:" && the target into theErrorMessage
      answer theErrorMessage
      ## save error message
      put return & return & DateTimeInChronolocicalOrder() before theErrorMessage
      put FilePath_AnalyseAndStatistics() & "Error_Messages.tab.txt" into theFile
      put return & theErrorMessage after URL("file:" & theFile)
      return false
   end if 
   ## ... ...
end read_Data
all the time I got following message in the debugger:
card "SourceHandling_TabTxt_Files": compilation error at line 659 (Commands: missing ',') near "into", char 48
where "line 659" is the second line from the bottom

Code: Select all

           return & tab & "Target:" && the target into theErrorMessage
I tried to move the function to an other script, create new empty stack file, rewrite the line including the line before and behind, put the comma on different places at this line, wrote 'target()' on place of 'the target', ...
Restarted LiveCode and then also my iMac, but it is coming the same error at the same place.
Whats wrong? What I oversee? Why debugger want a comma?
similar code like following on other places works well:

Code: Select all

   put the milliseconds - tStart into tTimeUsed 
   put return & DateTimeInChronolocicalOrder() & comma & the environment & comma & the machine & comma & \
         "read_Data"& whatToRead  & comma & the name of me & comma & target & comma & tTimeUsed & comma & "ms" & comma & \
         the number of lines in theDataTxt & comma & the number of chars in theDataTxt & comma & \
         pTableName & comma & theSourceFile into theMessage
   put FilePath_AnalyseAndStatistics() & "Performance_ReadWrite.csv" into theFile
   put theMessage after URL("file:" & theFile)
Can someone help me?
I am coing crazy.

Re: 'into' - what is wrong?

Posted: Sat May 12, 2012 7:38 am
by shaosean
Unless you made an error posting to the forum, this line:

Code: Select all

return & tab & the name long of me & \
should read:

Code: Select all

return & tab & the long name of me & \

Re: 'into' - what is wrong?

Posted: Sat May 12, 2012 8:08 am
by ueliweb
hei shaosean

thanks
thats it, got stuck in a rut ...