DO CASE CASE EMPTY(Level1) * Error: Level1 cannot be empty CASE EMPTY(Level2) AND NOT EMPTY(Level3) * Error: Level3 cannot be empty if Level2 is empty ENDCASE>
>use mytable > >SCAN >* - "Level 3 integrity failed [class code]" when level 2 is EMPTY and level 3 is fill WITH 123 > > IF EMPTY(level2) and EMPTY(LEVEL3) > > ANS = MESSAGEBOX(''+CLASSCODE+''+LEVEL1+LEVEL2+LEVEL3, 0, 'LEVEL2 EMPTY BUT LEVEL3 FILL') > > ENDIF >*!* LOCAL lcAns > >*!* lcAns= IIF(EMPTY(level2),EMPTY(level3),.T.) >*!* >*!* ?lcAns > > >ENDSCAN > >>