Hi all,
as from subject:
how does it is mapped the "hyper" UNO type in
StarBasic?
The question is because I ever had problems in basic when
working with
css.io.XSeekable methods (that takes or gets hyper values)
Example:
REM ***** BASIC *****
Sub TestUCB
oUcb =
createUnoService("com.sun.star.ucb.SimpleFileAccess&q
uot;)
oFile =
oUcb.OpenFileReadWrite("file:///home/paolo/img.png&qu
ot;)
oInputStream =
createUnoService("com.sun.star.io.DataInputStream&quo
t;)
oInputStream.setInputStream(oFile.getInputStream())
' print oFile.getLenght 'error!!!
' oFile.seek(5) 'error!!!
oFile.seek(CreateUnoValue("hyper", 5)) 'No
problem......
oInputStream.closeInput
End Sub
thank you
Paolo M
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe api.openoffice.org
For additional commands, e-mail: dev-help api.openoffice.org
|