Hi Andrew, Alle 07:06, mercoledì 21 giugno 2006, Andrew Douglas Pitonyak ha scritto: [....] > >I only want to add that using CreateUnoValue is a workaround if you have > > to pass an hyper to an API method, but does not helps when you must get > > an hyper. > > > >I've also tried with the css.script.Converter but without any result, so > > any suggestions are welcome > > Are you saying that you do not know how to convert the returned value to > something that is usable when it is returned?
Yes I've had problems with 2.0.2 but after reading your msg I repeated my tests and I've seen that the problem is not easily reproducible. Anyway This is the testing code: oUcb = createUnoService("com.sun.star.ucb.SimpleFileAccess") oFile = oUcb.OpenFileRead("file:///boot/vmlinuz") oFile.seek(createUnoValue("hyper", 5)) print TypeName(oFile.getLength) ' Int64 print oFile.Position Ayway is intersting to notice that UNO hyper is mapped to an "int64" in StarBasic. If the int64 would be "declarable" I think we coluld avoid the createUnoValue() function in order to pass hyper values to API methods. > > I noticed that some other types could not be created using any other > method... I think that Byte was one of them... yes, this should be already fixed http://www.openoffice.org/issues/show_bug.cgi?id=17825 Thank you Paolo Mantovani --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]