1. I am presently trying to teach myself CA-Clipper 5.3 from the documentation provided with the product however I run into trouble when I try to build the sample application. The code segment that appears 2b causing the problem is as follows (Page 4-55 of 'Getting Started'):
2. With this code the compiler produces the following error which 'points' to line 12 (MEMVAR->oInfo==DC_MENUCreate()) :
295K available
Compiling C:\CLIP53\CACI\DATA\DC_MENU.PRG
C:\CLIP53\CACI\DATA\DC_MENU.PRG(24) Error C2001 Syntax error: '=='
1 error
No code generated
3. I have re-typed this block many a times and still get the same compile error. Any ideas as to what I may be doing wrong? Is the error actually in this block? Any information would be greatly appreciated.
Cheers,
John
Code:
Function DC_MENUTest()
//Change oinfo to public so that the form can
// use it.
// LOCAL oinfo
PUBLIC oinfo
SET ( _SET_EVENTMASK, INKEY_ALL )
// Function added to use the database files.
IF DC_UseFIles()
MSETCURSOR(.T.)
CLS
MEMVAR->oInfo==DC_MENUCreate()
// Add DO WHILE loop to stay in Menu loop
// until menu ID 999 is chosen.
DO WHILE;
MENUMODAL (MEMVAR->oinfo,1,24,1,79,"R/W");
<>999
ENDDO
ENDIF
RETURN ( NIL )
2. With this code the compiler produces the following error which 'points' to line 12 (MEMVAR->oInfo==DC_MENUCreate()) :
295K available
Compiling C:\CLIP53\CACI\DATA\DC_MENU.PRG
C:\CLIP53\CACI\DATA\DC_MENU.PRG(24) Error C2001 Syntax error: '=='
1 error
No code generated
3. I have re-typed this block many a times and still get the same compile error. Any ideas as to what I may be doing wrong? Is the error actually in this block? Any information would be greatly appreciated.
Cheers,
John