Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread user
i am not the person that should answer but i will as i understood well as possible the concept of Gambas .. i think Gambas concept is to keep a Basic style language as possible can. So an % operator is a foreign word for a Basic language. >From the other hand it would be nice Gambas to be a bette

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread Fabien Bodard
in another hand i don't understand the existance of the DIV operator :/ ... if DIV exist why not ADD/MINUS/MULT ? so ... i'm agree with user ... why not add the % synonymous ? this is not consistent 2010/11/9 user : > This question was created to me when i saw the MOD function in > arithmet

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread user
This question was created to me when i saw the MOD function in arithmetic operators without a an operator as the DIV has one. http://gambasdoc.org/help/cat/arithop On Mon, 2010-11-08 at 20:02 +0100, Benoît Minisini wrote: > > I know that there is MOD > > > > but i ask this question cause i compa

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread user
Ok, Thank you for your answer! On Mon, 2010-11-08 at 20:02 +0100, Benoît Minisini wrote: > > I know that there is MOD > > > > but i ask this question cause i compare the C++ operators with Gambas. > > > > As there is DIV and \ operator > > i was questioned why MOD has not an operator as % for ex

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread Benoît Minisini
> I know that there is MOD > > but i ask this question cause i compare the C++ operators with Gambas. > > As there is DIV and \ operator > i was questioned why MOD has not an operator as % for example in C++ > Because Gambas is a Basic, and the Basic languages I know do not use "%" as operator

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread user
I know that there is MOD but i ask this question cause i compare the C++ operators with Gambas. As there is DIV and \ operator i was questioned why MOD has not an operator as % for example in C++ On Mon, 2010-11-08 at 18:50 +0200, Jussi Lahtinen wrote: > ?? There is Mod. > http://gambasdoc.org/

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread Mauricio Baeza
El lun, 08-11-2010 a las 18:30 +0200, user escribió: > Hi to all, > > i want to ask why there is not a modulus operator like % for example? > http://gambasdoc.org/help/lang/mod -- Mauricio Baeza 10 años usando OpenOffice.org, libre, gratuito y seguro ___ Todo l

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread Jussi Lahtinen
?? There is Mod. http://gambasdoc.org/help/lang/mod Jussi On Mon, Nov 8, 2010 at 18:30, user wrote: > Hi to all, > > i want to ask why there is not a modulus operator like % for example? > > > > -- > The Next 800 Comp

[Gambas-user] MOD arithetic operator

2010-11-08 Thread user
Hi to all, i want to ask why there is not a modulus operator like % for example? -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a

Re: [Gambas-user] Numeric operation between strings.

2010-11-08 Thread user
ok i see that it works like this. I just want to ensure how it works because i am writing a book about Gambas and i want to describe some things correctly. Thanks. On Mon, 2010-11-08 at 11:52 +0100, Doriano Blengino wrote: > user ha scritto: > > ok i see this but > > > > CStr(-19776) output is i

Re: [Gambas-user] Numeric operation between strings.

2010-11-08 Thread Doriano Blengino
user ha scritto: > ok i see this but > > CStr(-19776) output is it a string? > > for example i think there is difference between > > DIM sVar1="-19776" AS String > DIM iVar2=-19776 AS Integer > > why Gambas re-convert a string to integer again when see a + operator? > Because gambas has automat

Re: [Gambas-user] Numeric operation between strings.

2010-11-08 Thread user
ok i see this but CStr(-19776) output is it a string? for example i think there is difference between DIM sVar1="-19776" AS String DIM iVar2=-19776 AS Integer why Gambas re-convert a string to integer again when see a + operator? The statement PRINT CStr(-19776) + CStr(-19776) should be equal

Re: [Gambas-user] Requests for Gambas3

2010-11-08 Thread M. Cs.
"An intermediate solution is the ability of making self-contained package, like Google does with Google Earth for example." But that isn't viable, since if I wanted to package an application on a system I need to have to have everything already installed in order to have the required libraries to

Re: [Gambas-user] Numeric operation between strings.

2010-11-08 Thread Caveat
Well CStr(-19776) gives -19776 so if you use the arithmetic addition operator you're gonna get -19776 plus -19776 giving -39552. Using the arithmetic operator in this case only works if both your strings can be treated as floats, so this will raise an error: PRINT CStr(-19776) + CStr("W") If you

[Gambas-user] Numeric operation between strings.

2010-11-08 Thread user
Hi to all and good morning. I have this code PRINT CStr(-19776) + CStr(-19776) and i get -39552 How this is possible? Numeric operations between Strings? -- The Next 800 Companies to Lead America's Growth: New Video