Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems passing array to Polar Draw OCX
Message
From
26/09/2001 11:05:25
 
 
To
26/09/2001 10:36:11
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00560962
Message ID:
00560985
Views:
20
Hi!

What kind of array accepts that ActiveX control? It looks like no way to pass it because formats of arrays do nto match. VFP array is a variant array of variant values. In OCX (I assume) it is probably array of integer values.

Usually this problem could not be solved, however, if you're lucky, a string prepared as a binary data array which contain each byte is a byte of the array (like a passing structure/array to teh Windows API function). For example, a string with array of 2 integer values will look like:

strArr=ConvToChars(int1) + ConvToChars(int2)
where ConvToChars function converts integer value into the 4-character string that in fact is a binary representation of the integer value in the memory.

>Has anyone used Polar Draw v2.0 with FoxPro 6 and more specifically, the AddPolygon method ? I cannot get it to accept ARRAYs I pass. I've tried passing by reference and value. I believe there may be some issues passing arrays to activeX controls. Can anyone help?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform