Hi guyz!
What is the possible reason why this code is having an error in 1 FORM but perfectly working in another?
this code is the one which is working perfectly. (deleting entries)
this code below is exactly the same other the name of the form which is joborders
im having an eror "Function argument value, type or count is invalid"
i really cant understand why exactly the same code works fine in a form but does not on the other.
What is the possible reason why this code is having an error in 1 FORM but perfectly working in another?
this code is the one which is working perfectly. (deleting entries)
Code:
#define CMSG "Are you sure you want to delete customer ("+ALLTRIM(customers.company)+")?"
#define MB_YESNO 4
#define MB_QUESTION 32
#define IDYES 6
#define IDNO 7
IF MESSAGEBOX(CMSG, MB_YESNO+MB_QUESTION, "Delete Customer") = IDYES
DELETE
SKIP
IF EOF()
GO BOTTOM
ENDIF
this.Refresh()
ENDIF
this code below is exactly the same other the name of the form which is joborders
Code:
#define CMSG "Are you sure you want to delete job order ("+ALLTRIM(joborders.jobno)+")?"
#define MB_YESNO 4
#define MB_QUESTION 32
#define IDYES 6
#define IDNO 7
IF MESSAGEBOX(CMSG, MB_YESNO+MB_QUESTION, "Delete Job Order") = IDYES
DELETE
SKIP
IF EOF()
GO BOTTOM
ENDIF
this.Refresh()
ENDIF
im having an eror "Function argument value, type or count is invalid"
i really cant understand why exactly the same code works fine in a form but does not on the other.