[Migrated content. Thread originally posted on 09 April 2010]
I am trying to convert this VBScript code used in an ActiveX Control to Cobol and I keep getting a type mismatch error. I'm assuming this is because I'm not handling the hexadecimal field properly. Does anyone know what I'm doing wrong?VBScript Code:
PR-BODY = &H1000001E
ws-body = sItem.Fields(PR-BODY)
COBOL Code:
01 PR-BODY PIC X(04) VALUE H"1000001E".
...
INQUIRE OUTLOOK-CDO-ITEM @FIELDS(PR-BODY)
IN WS-BODY.I've attached the "def" file from AXDEFGEN as well.Thanks,
Rob



