Hi Unifacers,
I've imported in Uniface definitions from a "type library". Everything went as expected: so far so good.
In one signature imported one of the parameters to be used is defined into documentation as an integer bidimensional vector (an xy matrix) and it should physically start from position 0, like in many other low level languages.
Question#1:
Uniface automatic import of type library has defined this parameter as string / VT_VARIANT...is this correct?
If NO: which data type and which physical type should be mapped to?
Question#2:
initially accepting string /VT_VARIANT data type as correct I have tried to use the signature passing to this parameter a Uniface list; supposing the matrix in my sample should be composed by 5 x 2 positions I've tried 6 different code solutions:
- passing a single list composed from 5 x 2 = 10 positions, using base position 1 for object referred to
- passing a list composed from 2 rows each with 5 positions, using base position 1 for object referred to
- passing a list composed from 5 rows each with 2 position, using base position 1 for object referred to
- passing a single list composed from 5 x 2 = 10 positions, using base position 0 for object referred to
- passing a list composed from 2 rows each with 5 positions, using base position 0 for object referred to
- passing a list composed from 5 rows each with 2 position, using base position 0 for object referred to
No one it is working!
I am getting everytime -150 with an exception thrown to ICC from the called software.
Continuing to go with a "trial and error" approach is frustrating.
Could anyone point me in the right direction on how to compose and pass this param?
Regards,
Gianni
------------------------------
Gianni Sandigliano
IT
------------------------------




