This follows on from a different posting of mine (new thread as a new problem). 
I have a DataModule with a number of TTable components. Against them I make use of the 'Abort' call ('BeforeDelete'/'BeforeInsert' events) such that the user cannot add or delete rows from a displayed grid.
In addition I'm allowing addition / deletion of entries through code (making use of a variable to by-pass the 'BeforeDelete'/'BeforeInsert' events) - behind the 'AfterPost'/'AfterDelete' actions I've placed a "DbiSaveChanges()" call [this has meant adding 'BDE' to my units used].
Now when I compile the code I'm presented with the error "Statement expected, but expression of type 'Integer' found" and the error points to the 'Abort' call. This was previously OK prior to adding the 'BDE' usage and 'DbiSaveChanges' call - now I have hit this problem.
Can anyone tell me what I've done wrong and how to rectify this issue ?
Thanks in advance
Steve
I have a DataModule with a number of TTable components. Against them I make use of the 'Abort' call ('BeforeDelete'/'BeforeInsert' events) such that the user cannot add or delete rows from a displayed grid.
In addition I'm allowing addition / deletion of entries through code (making use of a variable to by-pass the 'BeforeDelete'/'BeforeInsert' events) - behind the 'AfterPost'/'AfterDelete' actions I've placed a "DbiSaveChanges()" call [this has meant adding 'BDE' to my units used].
Now when I compile the code I'm presented with the error "Statement expected, but expression of type 'Integer' found" and the error points to the 'Abort' call. This was previously OK prior to adding the 'BDE' usage and 'DbiSaveChanges' call - now I have hit this problem.
Can anyone tell me what I've done wrong and how to rectify this issue ?
Thanks in advance
Steve