Hi all
I have #defines in .H file (attached to this form class from the menu option) but it would not work any which way so I went on to copy and paste the whole thing in the code which uses it and still it won't work, wow! and it is not Friday yet!!!
I don't know what I am doing wrong in this ultimate copy-paste of #defines
#DEFINE FILE_OK 0
#DEFINE FILE_BOF -1
#DEFINE FILE_EOF -2
#DEFINE FILE_CANCEL -3
#DEFINE FILE_NORECORDS -4
#DEFINE FILE_ONERECORD -5
#DEFINE FILE_ERRORHANDLED -6
LPARAMETERS tnRetVal
LOCAL lnRetVal
lnRetVal = DODEFAULT(tnRetVal)
IF lnRetVal = FILE_OK
and I still get the following error.
Error #: 107
Message: Operator/operand type mismatch.
Line #: 25
Code: IF lnRetVal = FILE_OK
Method: afterdelete
Object: afrmdetpurchasebill1
one thing to notice is that this form class (where the above code is) is subclassed (no codes at all here) before being used in the app, if it matters.
Please advise.