Skip to main content

[Migrated content. Thread originally posted on 04 May 2005]

I get an error saying : 'Cobol datatype does not match object datatype'. I'm reading a file and updating a grid with usage handle of variant.

01 DATA-TABLE.
05 FILLER OCCURS 1000.
07 TABLE-ITEM USAGE HANDLE OF VARIANT OCCURS 5.

1. What does this error means ?
2. Does any cell in the variant grid has to be filled in with data ?
If yes, can we move spaces to a cell or what to do if that cell has to be left alone with no data filled in ?

[Migrated content. Thread originally posted on 04 May 2005]

I get an error saying : 'Cobol datatype does not match object datatype'. I'm reading a file and updating a grid with usage handle of variant.

01 DATA-TABLE.
05 FILLER OCCURS 1000.
07 TABLE-ITEM USAGE HANDLE OF VARIANT OCCURS 5.

1. What does this error means ?
2. Does any cell in the variant grid has to be filled in with data ?
If yes, can we move spaces to a cell or what to do if that cell has to be left alone with no data filled in ?
I presume what you want to pass is a SafeArray item. This is not quite what you have defined.

I have elsewhere in this forum posted an example of using SafeArray, see if you can find it. If not, post again and I will look up an example here.