Hi Alan,

While I was writing a script, I encountered a situation to have to set
a 'literal' string as an element of struct:
tLogFont=dll.create_struct("i i i i i uc uc uc uc uc uc uc uc s",;;+
nHeight,0,0,0,400,0,0,0,1,0,0,0,0,sFaceName)

However, tLogFont.get_size always returned 32 regardless of whatever
name is setted to sFaceName like "Tahoma" or "Courier New". So, it
seems to be treated always as a pointer. Is this a intended behavior?
(:I tested also  s- instead of mere s, but the same result)

And, strangely, tLogFont[n] reported expected values until 5, but
suddenly  gave some large numbers (seeming address) after. Notice the
type cahnges after 5.

OTOH, with array,
a=dll.create_array("s","This ","is an array")
a[1], a[2] gave expected results, however, a.get_size gave 8. (This
one could be a correct behaviour, but I'm not sure)

Sean





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to