Line the "inc" created with "Dispatch Interfaces only":
My code:
No error is returned by this line and on examining vtemp the contents are described as "safe array".
How do I extract the contents - at some point I must use "UBOUND" as there is no count. As far as I know vtemp contains an array of strings.
Bob
---------------------------------------------
Added Later - Found the answer but don't know why it works - Thought that you had to use VARIANT$ to convert a Variant string to a "normal" string.
Code:
Property Get FontFamilyNames <35> () As Variant
Code:
GLOBAL vtemp AS VARIANT ... ... OBJECT GET mySession.FontFamilyNames TO vtemp
How do I extract the contents - at some point I must use "UBOUND" as there is no count. As far as I know vtemp contains an array of strings.
Bob
---------------------------------------------
Added Later - Found the answer but don't know why it works - Thought that you had to use VARIANT$ to convert a Variant string to a "normal" string.
Code:
LOCAL varray() AS STRING DIM varray(0 TO 20) AS STRING vtemp = EMPTY OBJECT GET mySession.FontFamilyNames TO vtemp varray() = vtemp MSGBOX STR$(UBOUND(varray)) MSGBOX varray(3)
Comment