Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PB 9 array passing to OLE component

14 views
Skip to first unread message

Ed_Van_Haren

unread,
Jul 10, 2003, 4:59:37 PM7/10/03
to
Found a way around the problem. If I declare my array as follows:

ls_msg_data[0 to 299, 0 TO 1]

everything seems to work. I didn't know we could do that and I've been
using PB for 10+ years. You learn something new every day.

In PB7 you don't need to do this but you can. In PB9, it seems like you
have to do this to make it work.

Ed_Van_Haren

unread,
Jul 10, 2003, 3:51:38 PM7/10/03
to
We have a COM component (VB) that accepts some parameters, one of which is
a 2 dimensional array (300,2). All that the test component does is read
through the array and print out the elements. The VB component starts at
element 0. In PB7, we call that COM component and everything is fine.

In PB9 the component crashes when it tries to read the first element. It
seems that when the COM component is called from PB9, the component starts
at element 0 (which it should), but there is no element 0.

The COM component does an upperbound and prints it out as well. From PB7,
it states 299 (0-299). In PB9, it states 300.

Has anyone else seen this. Is there a way around this without changing the
VB code (it's called from other applications as well, VB and PB).

I also entered a case to Sybase, but thought I would ask here as well to
see if anyone has any ideas.
Thanks,
Ed

0 new messages