List Info

Thread: Mapping of the UNO type "hyper" in StarBasic




Mapping of the UNO type "hyper" in StarBasic
user name
2006-06-19 00:23:57
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-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )