Hi Paolo,
I have the same problems as you have here.
I guess there is no other way than using CreateUnoValue.
There are two things I want to comment on at this time:
1) numeric constants like 5 should raise *no* errors when being passed
to functions that expect arguments of UNO type 'hyper'. It could be
avoided by typecasting in the various implementations (I guess hyper
is nothing else than the C99 long long int), so that no error occurs.
Maybe the Basic runtime throws those errors before the implementation
function is even called. All that needs to be investigated.
2) using CreateUnoValue might be too difficult for some to see or use
at first sight, thus making hyper a real type as single, double etc.
would make things more comfortable for the programmer. Would be good
to hear what Andreas Bregas thinks about that.
2006/6/19, Paolo Mantovani <[EMAIL PROTECTED]>:
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")
oFile = oUcb.OpenFileReadWrite("file:///home/paolo/img.png")
oInputStream = createUnoService("com.sun.star.io.DataInputStream")
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Best Regards
Christian Junker
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]