From: Dave Burt Date: 2006-03-29T21:08:41+09:00 Subject: Re: Win32OLE output parameter access?? Dennis Misener wrote: >> > expression.GetOffset(pxOffset, pyOffset) >> > subnode=node.addSubtopic 'label' >> > subnode.invoke('getOffset',0.0,0.0) >> > p [:offset,WIN32OLE::ARGV] > DM>I found that odd too! Running inside IRB give the same results. Since > the real parameters should be RETURNED... I'm not sure passing IN real > constants as inputs is the answer... but unless I supply two REAL > argments it reports missing required parameters etc. Where and how does IRB die on this? require 'win32ole' MM=WIN32OLE.new("Mindmanager.Application") MM.visible=true node = MM.activeDocument.centralTopic node.text='Main' subnode=node.addSubtopic 'label' subnode.getOffset(0.0, 0.0) p [:offset,WIN32OLE::ARGV] Cheers, Dave