|Title: What should I use for USAGE HANDLE items instead of NULL?|
My program uses a lot of USAGE HANDLE items that I set to NULL and check for NULL to mean that the handle has not been created yet.
The compiler gives errors such as the following when I compare a USAGE HANDLE item with NULL in a conditional expression. What should I use instead of NULL? Should I use LOW-VALUE?
Here is an example:
000000 IF CUST-FONT-HANDLE NOT = NULL 000000 MOVE CUST-FONT-HANDLE TO TEXT-FONT-HANDLE 000000 MOVE NULL TO CUST-FONT-HANDLE.I also get errors on MOVE NULL when the destination item is USAGE HANDLE.
The fastest solution is to compile with compiler option -ca.
|Authored by: Veryant Support on Wed, Sep 2nd, 2009 at 7:00 PM
This question has been viewed 8550 times so far.
|Online URL: http://support.veryant.com/support/phpkb/question.php?ID=84|
Powered by PHPKB Knowledge Base Software