Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-28 Thread Bernard Marcelly
Bonjour Christian Junker Message du 2006-06-27 21:58: There is no possibility as I see it, because you cannot directly convert a decimal to hyper, at least I can't (again I would be happy if you prove me wrong with a code snippet). But if you do it with a conversion to an whole number before,

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-27 Thread Jürgen Schmidt
Hi all, it seems that we have to find a better solution for hyper in Basic because hyper is a valid type in our API and in fact of this we should extend the typeset of Basic at least to support all the simple base types of our API. Andreas, what do you think? What would be the best solution

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-27 Thread Andreas Bregas
Hi Jürgen, it seems that we have to find a better solution for hyper in Basic because hyper is a valid type in our API and in fact of this we should extend the typeset of Basic at least to support all the simple base types of our API. Andreas, what do you think? What would be the best

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-27 Thread Paolo Mantovani
Hi Andreas, Alle 10:32, martedì 27 giugno 2006, Andreas Bregas ha scritto: Hi Paolo, sorry, I did not discover this thread and after a colleague told me about it yesterday, we had severe mail problems. I think we have to split this problem. 1. hyper as return type: This is no problem.

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-27 Thread Andreas Bregas
Hi Paolo, getLength simply has a typo. That's why your next example posted later worked without problems. OOOPPZZZ.. Yes, this explains why I wasn't able to reproduce the problem This reveals also that sometimes I'd better go to bed earlier :-) Sorry for the waste of time. no problem, I did

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-27 Thread Christian Junker
Then how would you want to convert it to hyper from Decimal? I believe there is no working way to do this, but I would be happy if you prove me wrong. 2006/6/27, Bernard Marcelly [EMAIL PROTECTED]: Bonjour Andreas Bregas Message du 2006-06-27 12:51: You're right, but after my fix of i66765 the

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-27 Thread Christian Junker
There is no possibility as I see it, because you cannot directly convert a decimal to hyper, at least I can't (again I would be happy if you prove me wrong with a code snippet). But if you do it with a conversion to an whole number before, you cannot avoid a possible loss of data, which would

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-25 Thread Bernard Marcelly
Bonjour Paolo Mantovani Message du 2006-06-19 02:23: 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

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-23 Thread Paolo Mantovani
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

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-23 Thread Laurent Godard
Hi Meanwhile I encountered that you can't have/use a number that is outside int32 range but still inside the int64 range, for example Sub hyper x = CreateUnoValue(hyper, 9223372036854775806) End Sub will give an error, yet the numeric constant is still inside the range a variable of type hyper

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-23 Thread Paolo Mantovani
Hi Christian, Alle 14:27, venerdì 23 giugno 2006, Christian Junker ha scritto: Meanwhile I encountered that you can't have/use a number that is outside int32 range but still inside the int64 range, for example Sub hyper x = CreateUnoValue(hyper, 9223372036854775806) End Sub will give an

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-22 Thread Andrew Douglas Pitonyak
Paolo Mantovani wrote: Hi Christian, sorry for my previous message. Alle 09:20, martedì 20 giugno 2006, Christian Junker ha scritto: Hi Paolo, I have the same problems as you have here. I guess there is no other way than using CreateUnoValue. [...] 2) using CreateUnoValue might

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-20 Thread Christian Junker
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

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-20 Thread Paolo Mantovani
Alle 09:20, martedì 20 giugno 2006, Christian Junker ha scritto: 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

Re: [api-dev] Mapping of the UNO type hyper in StarBasic

2006-06-20 Thread Paolo Mantovani
Hi Christian, sorry for my previous message. Alle 09:20, martedì 20 giugno 2006, Christian Junker ha scritto: Hi Paolo, I have the same problems as you have here. I guess there is no other way than using CreateUnoValue. [...] 2) using CreateUnoValue might be too difficult for some to see or