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
where "line 659" is the second line from the bottomcard "SourceHandling_TabTxt_Files": compilation error at line 659 (Commands: missing ',') near "into", char 48
Code: Select all
return & tab & "Target:" && the target into theErrorMessage
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)
I am coing crazy.