Re: This does not jive

new topic     » goto parent     » topic index » view thread      » older message » newer message
DonCole said...

I'm using euphoria ver.3 for this.
My code,

sequence rect 
rect={325,350,366,365} 
 
?{WndMain,1}&rect&{5,5}  
junk={WndMain,1}&rect&{5,5} 
printf(1,"length(junk)=%d %s\n",{length(junk)})   
        drawRoundRect(junk) 
     

I get:
{30,1,325,350,366,365,5,5}
length(junk)=8

(error)
drawRoundRect takes 8 arguments
drawRoundRect(junk)

This simply doesn't make any sense.

If you want to combine arguments into a sequence and call the procedure, you'll need to use routine_id() and call_proc().

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu