Anders Ohrt
10-Nov-2009, 05:53 AM
I tried the conditional breakpoints, and they are a real help, big thanks for that one! That are a bit hard to enter though. It would really help if the dialog that pops up had code sense, and fixed up the case like the editor.
I did run into an error, in that when the breakpoint triggered I got an error message:
An error occured evaluating this breakpoint:
Invalid symbol in expression SSUbJECT
My breakpoint looked like this:
(Uppercase(sSubject) = "VOLVO")
Procedure FindOrCreateRecordBySubject_Thread Global String sSubject Date dReceivedDate
Integer iThreadNo
Move (CleanupSubjectString_Thread(sSubject)) to sSubject
If (FindRecordBySubject_Thread(sSubject, dReceivedDate)) Begin // Breakpoint on this line
Procedure_Return
End
Move (NextFreeThreadNo_Thread()) to iThreadNo
Send FindOrCreateRecord_Country C_COUNTRY_ID_UNKNOWN C_COUNTRY_NAME_UNKNOWN
Send CreateRecord_Thread iThreadNo sSubject dReceivedDate dReceivedDate ;
Country.CountryId
End_Procedure // FindOrCreateRecordBySubject_Thread
I tried another breakpoint which worked, maybe it was because it's a parameter to the procedure, and not a local variable.
I did run into an error, in that when the breakpoint triggered I got an error message:
An error occured evaluating this breakpoint:
Invalid symbol in expression SSUbJECT
My breakpoint looked like this:
(Uppercase(sSubject) = "VOLVO")
Procedure FindOrCreateRecordBySubject_Thread Global String sSubject Date dReceivedDate
Integer iThreadNo
Move (CleanupSubjectString_Thread(sSubject)) to sSubject
If (FindRecordBySubject_Thread(sSubject, dReceivedDate)) Begin // Breakpoint on this line
Procedure_Return
End
Move (NextFreeThreadNo_Thread()) to iThreadNo
Send FindOrCreateRecord_Country C_COUNTRY_ID_UNKNOWN C_COUNTRY_NAME_UNKNOWN
Send CreateRecord_Thread iThreadNo sSubject dReceivedDate dReceivedDate ;
Country.CountryId
End_Procedure // FindOrCreateRecordBySubject_Thread
I tried another breakpoint which worked, maybe it was because it's a parameter to the procedure, and not a local variable.