[Gambas-user] Twitter oauth client?

2010-09-20 Thread Ron
Hi,

did anyone happen to code a twitter client (cli or gui) in gambas using
oauth?

Regards,
Ron.
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Set Active Tabstrib Panel from Button Click

2010-10-06 Thread Ron
  tabMytabs.Index = 0 is what you use to select first tab, .Index = 1 
second etc...
tabMyTabs.Setfocus

Regards,
Ron_2nd.
> Hello all,
>
> 1) I search in docs a property of tabistrib that make active a tabistrib
> tab.
>
> All that i want to do is to Click a button btnOk and set the first tab
> of tabstrib active.
>
> like this
>
> tabMyTabs[0].active=true or tabMyTabs[0].setfocus
>
> did you understand what i want?
>
> 2) A note The docs could be better.
> For example well known issues like this could be written as example in
> TabStrip.Current with the thought that "ok, TabStrip.Current gives the
> current tab, how to make another tab current"
>
> These mini examples would be grateful for someone.
>
> Thanks!
>
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2&  L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Barcode reader

2010-10-16 Thread Ron
There are also scanners which are just USB HID devices, so they function as
extra input device, just do setfocus on an textlabel input field and scan.

See here for the barcode scan code I once made (for fun)...
http://www.domotiga.nl/browser/trunk/DomotiGa/FBarcodes.class#L1
http://www.domotiga.nl/attachment/wiki/Images/domotiga-barcode.png
http://www.domotiga.nl/wiki/Domotiga/Barcode

It even works with a camera (with autofocus) and zbarcam exec.

Regards,
Ron_2nd.

On Sat, Oct 16, 2010 at 10:11 AM, EA7DFH  wrote:

> El 16/10/10 09:55, M. Cs. escribió:
> > Is it possible to use Gambas2 (or 3) together with a barcode scanner
> under
> > Linux. Is there any module available for that ?
> >
> > Thanks!
> >
> > Csaba
> >
> --
> > Download new Adobe(R) Flash(R) Builder(TM) 4
> > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
> > Flex(R) Builder(TM)) enable the development of rich applications that run
> > across multiple browsers and platforms. Download your free trials today!
> > http://p.sf.net/sfu/adobe-dev2dev
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
> Hi
>
> AFAIK, the scanner itself translates the barcodes to numbers (and/or
> characters) and the only thing you have to do is reading the stream that
> comes from it (ttySx or ttyUSBx). No additional module is needed, you
> can setup a socket for that.
>
> Regards
>
> --
> Jesus, EA7DFH
>
>
> --
> Download new Adobe(R) Flash(R) Builder(TM) 4
> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
> Flex(R) Builder(TM)) enable the development of rich applications that run
> across multiple browsers and platforms. Download your free trials today!
> http://p.sf.net/sfu/adobe-dev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Search window behavior in Gambas3

2010-10-16 Thread Ron
I find the behavior of the new search/replace window in Gambas3 a bit
annoying sorry.

Either it's to small and not easy to enlarge by just clicking a button, or
it's to big and covers the code you where searching for.

I suggest to add a behavior, that if you double click a line in the search
result, it will jump to that line in the code and hide/minimalise the search
window..

Regards,
Ron_2nd.
--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Display & character on Message box

2010-11-14 Thread Ron
You have the same issue with title propery of forms.
On Nov 14, 2010 2:19 PM, "Demosthenes Koptsis" 
wrote:
> Nope, none of them works.
>
> On Sun, 2010-11-14 at 12:06 +0100, Benoît Minisini wrote:
>> > On gambas2-2.21-svn3289
>> >
>> > Message.Info("&")
>> >
>> > is not working!
>> >
>> > Message is empty.
>> >
>>
>> Mmm. Maybe now Qt interprets it as pure HTML, or a text mnenomic...
>>
>> Try:
>>
>> Message.Info("&&")
>>
>> And:
>>
>> Message.Info("&")
>>
>> Regards,
>>
>
>
>
>
--
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Display & character on Message box

2010-11-14 Thread Ron
You are right, it never worked, so I assumed it still didn't, but now
it does work in titles...hmmm
Sorry for the noise...

On Sun, Nov 14, 2010 at 4:48 PM, Matti  wrote:
> Strange. Here I have 2-2.21.0 (from 24-07-2010) without any svn updates, and 
> all
> of the following works perfectly:
>
>  ME.Title = "Loading " & Chr(38) & " starting"
>  Message.Info("Loading " & Chr(38) & " starting")
>
>  ME.Title = "Loading " & "&" & " starting"
>  Message.Info("Loading " & "&" & " starting")
>
>  Message.Info("&")
>
> Maybe there was something changed in the following svn updates?
>
>
>
> Am 14.11.2010 14:26, schrieb Ron:
>> You have the same issue with title propery of forms.
>> On Nov 14, 2010 2:19 PM, "Demosthenes Koptsis" 
>> wrote:
>>> Nope, none of them works.
>>>
>>> On Sun, 2010-11-14 at 12:06 +0100, Benoît Minisini wrote:
>>>>> On gambas2-2.21-svn3289
>>>>>
>>>>> Message.Info("&")
>>>>>
>>>>> is not working!
>>>>>
>>>>> Message is empty.
>>>>>
>>>>
>>>> Mmm. Maybe now Qt interprets it as pure HTML, or a text mnenomic...
>>>>
>>>> Try:
>>>>
>>>> Message.Info("&&")
>>>>
>>>> And:
>>>>
>>>> Message.Info("&")
>>>>
>>>> Regards,
>>>>
>>>
>>>
>>>
>>>
>> --
>>> Centralized Desktop Delivery: Dell and VMware Reference Architecture
>>> Simplifying enterprise desktop deployment and management using
>>> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
>>> client virtualization framework. Read more!
>>> http://p.sf.net/sfu/dell-eql-dev2dev
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>> --
>> Centralized Desktop Delivery: Dell and VMware Reference Architecture
>> Simplifying enterprise desktop deployment and management using
>> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
>> client virtualization framework. Read more!
>> http://p.sf.net/sfu/dell-eql-dev2dev
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
> --
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-23 Thread Ron
Strange, this simply works here:

' Gambas class file

PUBLIC SUB Form_Open()

END

PUBLIC SUB Form_Activate()

   DIM Checksum AS String

   ME.Mouse = Mouse.Wait
   Application.Busy = TRUE

   SHELL "ls -lR" TO checksum

   Application.Busy = FALSE
   ME.Mouse = Mouse.DEFAULT

   'PRINT checksum

END

Gambas 2.21.x, ubuntu 10.4, gb.qt

Regards,
Ron_2nd.

>> You can use the Wait keyword, see http://gambasdoc.org/help/lang/shell
>> Something like:
>> SHELL command Wait TO checksum
> Thanks for the quick reply. Adding WAIT to the SHELL command is not causing 
> the mouse cursor to change to Mouse.Wait :(
>
> Regards,
> Vikram
>
>
>
>
> --
> Increase Visibility of Your 3D Game App&  Earn a Chance To Win $500!
> Tap into the largest installed PC base&  get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas 3

2010-11-24 Thread Ron
On 24-11-2010 12:08, Benoît Minisini wrote:
> Hi,
>
> I'm currently thinking about modifying/removing all Is() functions in
> Gambas 3.
>
> They mainly test the datatype of their expression. So, either the datatype is
> known at compile time, and there should be no need of testing it ; either you
> are using a Variant, and you can use TypeOf() to get the datatype of the
> value.
>
> I will replace them by some functions that will test if a value can be
> converted safely from a string by using localization. This is what most users
> expected from these functions.
>
> For exemple, in french localization:
>
>   IsDate("13/2/20") ->  True
>   IsNumber("3,34") ->  True
>   IsInteger("3,34") ->  False
>   IsNumber("3.34") ->  False
>   
> Internally, they will use Val() and see if the conversion works.
>
> I will kept most of the name, so there will be a big incompatibility between
> Gambas 2, current Gambas 3, and final Gambas 3.
>
> What do you think about that?
>
> Who is using the Is() functions, and in which context?
>

I use these in my project, a lot less than expected at first:

Bluetooth.module:IF IsInteger(Val(sRSSI)) THEN
Bluetooth.module:  iRSSI = IsInteger(Val(sRSSI))
Events.module:  IF rResult!rerunenabled = TRUE AND IF 
IsDate(rResult!lastrun) THEN
Events.module:  IF IsBoolean(sValue) THEN sValue = Main.DisplayBool(sValue)
Events.module:  IF IsBoolean(sCond) THEN sCond = Main.DisplayBool(sCond)
Events.module:  ELSE IF IsBoolean(vResult) THEN
JSON.module:  IF NOT IsLetter(sCar) THEN RETURN sCar
JSON.module:IF NOT IsLetter(sCar) THEN
JSON.module:  IF IsNull(vNumber) THEN Error.Raise("Incorrect number")
JSON.module:  ELSE IF sCar = "-" OR IF IsDigit(sCar) THEN
Mail.module:IF IsString(Main.GlobalVar["Minute"]) THEN 
Main.GlobalVar["Minute"] = Val(Main.GlobalVar["Minute"])
Main.module:  IF NOT IsNull(vValue) THEN
Main.module:IF IsNumber(Val(tv[k, col].Text)) THEN
Main.module:IF IsNumber(Val(gv[k, col].Text)) THEN
Main.module:PUBLIC FUNCTION IsTime(sString AS String) AS Boolean
Main.module:PUBLIC FUNCTION IsBool(sStr AS String) AS Boolean
CDenon.class:  IF IsInteger(sValue) THEN
CDenon.class:  IF IsInteger(sValue) THEN
CDenon.class:  IF IsNull(Val(sZonecat)) THEN
CRFXComRX.class:IF IsDigit(Hex(RecBuf[4])) AND IF 
IsDigit(Hex(Lsr(RecBuf[3], 4))) THEN
CSqueezeServer.class:ELSE IF IsLetter(sCar) OR IF IsDigit(sCar) OR 
IF InStr("*-._", sCar) THEN
FConditionEditor.class:  IF NOT 
(Main.IsBool(Events.EvalFormula(taFormula.Text))) THEN
FConditionEditor.class:  IF IsBoolean(vVal) THEN
FDebug.class:IF IsBoolean(vValue) THEN
FTriggerEditor.class:IF IsBoolean(Main.GlobalVar[cmbVariables.Text]) 
THEN
FTriggerEditor.class:ELSE IF NOT 
IsNumber(Main.GlobalVar[cmbVariables.Text]) THEN
FTriggerEditor.class:IF IsNumber(Val(txtDeviceValue.Text)) THEN

Regards,
Ron_2nd.

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-24 Thread Ron
On 24-11-2010 12:09, Benoît Minisini wrote:
>> Hi,
>>
>> Heres how i "fixed" it, hope it is the right way to display a "wait" cursor
>> while a process executes.
>>
>> -
>> FMain.Mouse = Mouse.Wait
>> WAIT
>> Application.Busy = 1
>>
>> SHELL "sha512sum lenny.iso" TO actualSUM
>>
>> Application.Busy = 0
>> FMain.Mouse = Mouse.Default
>> -
>>
>> I read "If you call WAIT from an event handler, you may create infinite
>> recursions, and then stack overflows" from the Docs, i hope it wouldn't be
>> an issue in this case (i.e., if i were to use WAIT for the click event of
>> a Button).
>>
>> Regards,
>> Vikram
>>
> Setting FMain.Mouse and calling WAIT is useless. Application.Busy should
> already set the busy cursor for every widget in the application. Otherwise
> this is a bug.
>
> Regards,
>

That was what I thought too, but Application.Busy alone is not showing a 
busy pointer (anymore?) on latest gambas 2 and Ubuntu 10.04 with gb.qt

Regards,
Ron_2nd.

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-24 Thread Ron
On 24-11-2010 12:28, Benoît Minisini wrote:
>> On 24-11-2010 12:08, Benoît Minisini wrote:
>>> Hi,
>>>
>>> I'm currently thinking about modifying/removing all Is() functions in
>>> Gambas 3.
>>>
>>> They mainly test the datatype of their expression. So, either the
>>> datatype is known at compile time, and there should be no need of
>>> testing it ; either you are using a Variant, and you can use TypeOf() to
>>> get the datatype of the value.
>>>
>>> I will replace them by some functions that will test if a value can be
>>> converted safely from a string by using localization. This is what most
>>> users expected from these functions.
>>>
>>> For exemple, in french localization:
>>> IsDate("13/2/20") ->   True
>>> IsNumber("3,34") ->   True
>>> IsInteger("3,34") ->   False
>>> IsNumber("3.34") ->   False
>>>
>>> Internally, they will use Val() and see if the conversion works.
>>>
>>> I will kept most of the name, so there will be a big incompatibility
>>> between Gambas 2, current Gambas 3, and final Gambas 3.
>>>
>>> What do you think about that?
>>>
>>> Who is using the Is() functions, and in which context?
>> I use these in my project, a lot less than expected at first:
>>
>> Bluetooth.module:IF IsInteger(Val(sRSSI)) THEN
>> Bluetooth.module:  iRSSI = IsInteger(Val(sRSSI))
>> Events.module:  IF rResult!rerunenabled = TRUE AND IF
>> IsDate(rResult!lastrun) THEN
>> Events.module:  IF IsBoolean(sValue) THEN sValue = Main.DisplayBool(sValue)
>> Events.module:  IF IsBoolean(sCond) THEN sCond = Main.DisplayBool(sCond)
>> Events.module:  ELSE IF IsBoolean(vResult) THEN
>> JSON.module:  IF NOT IsLetter(sCar) THEN RETURN sCar
>> JSON.module:IF NOT IsLetter(sCar) THEN
>> JSON.module:  IF IsNull(vNumber) THEN Error.Raise("Incorrect number")
>> JSON.module:  ELSE IF sCar = "-" OR IF IsDigit(sCar) THEN
>> Mail.module:IF IsString(Main.GlobalVar["Minute"]) THEN
>> Main.GlobalVar["Minute"] = Val(Main.GlobalVar["Minute"])
>> Main.module:  IF NOT IsNull(vValue) THEN
>> Main.module:IF IsNumber(Val(tv[k, col].Text)) THEN
>> Main.module:IF IsNumber(Val(gv[k, col].Text)) THEN
>> Main.module:PUBLIC FUNCTION IsTime(sString AS String) AS Boolean
>> Main.module:PUBLIC FUNCTION IsBool(sStr AS String) AS Boolean
>> CDenon.class:  IF IsInteger(sValue) THEN
>> CDenon.class:  IF IsInteger(sValue) THEN
>> CDenon.class:  IF IsNull(Val(sZonecat)) THEN
>> CRFXComRX.class:IF IsDigit(Hex(RecBuf[4])) AND IF
>> IsDigit(Hex(Lsr(RecBuf[3], 4))) THEN
>> CSqueezeServer.class:ELSE IF IsLetter(sCar) OR IF IsDigit(sCar) OR
>> IF InStr("*-._", sCar) THEN
>> FConditionEditor.class:  IF NOT
>> (Main.IsBool(Events.EvalFormula(taFormula.Text))) THEN
>> FConditionEditor.class:  IF IsBoolean(vVal) THEN
>> FDebug.class:IF IsBoolean(vValue) THEN
>> FTriggerEditor.class:IF IsBoolean(Main.GlobalVar[cmbVariables.Text])
>> THEN
>> FTriggerEditor.class:ELSE IF NOT
>> IsNumber(Main.GlobalVar[cmbVariables.Text]) THEN
>> FTriggerEditor.class:IF IsNumber(Val(txtDeviceValue.Text)) THEN
>>
>> Regards,
>> Ron_2nd.
>>
> When you do IsNumber(Val(...)), you actually want the new behaviour I want to
> implement: checking if a string can be safely converted to what you want. In
> the new syntax, you will directly do IsNumber(...).
>
> The IsDigit(), IsLetter()... functions are not concerned by the change.
>
> IsNull() will be kept unchanged.
>
> Then, please tell me what you are testing exactly with these lines:
>
> Events.module:  IF rResult!rerunenabled = TRUE AND IF
> IsDate(rResult!lastrun) THEN

It appears to be just a test if the db record field has a date value in 
it, instead of an empty value.

> Events.module:  IF IsBoolean(sValue) THEN sValue = Main.DisplayBool(sValue)
> Events.module:  IF IsBoolean(sCond) THEN sCond = Main.DisplayBool(sCond)
> Events.module:  ELSE IF IsBoolean(vResult) THEN
---
PUBLIC SUB CheckCondition(sValue AS Variant, sOperand AS String, sCond 
AS Variant, OPTIONAL bMute AS Boolean) AS Boolean

   DIM bReturn AS Boolean

   IF IsBoolean(sValue) THEN sValue = Main.DisplayBool(sValue)
   IF IsBoolean(sCond) THEN sCond = Main.DisplayBool(sCond)
---

CheckConditions(), has variants as arguments.
If the variant sValue is a Boolean, then change it to a string value 
with "True" "False" as content, so that conversion and compare tests 
(below)  after that can be more generic.

---
   SELECT sOperand
 CASE "="
   IF Comp(sValue, sCond) = 0 THEN bReturn = TRUE
 CASE "<>"
   IF sValue <> sCond THEN bReturn = TRUE
 CASE ">"
   IF CFloat(Replace(sValue, ",", ".", gb.String)) > 
CFloat(Replace(sCond, ",", ".", gb.String)) THEN bReturn = TRUE
 CASE "<"
   IF CFloat(Replace(sValue, ",", ".", gb.String)) < 
CFloat(Replace(sCond, ",", ".", gb.String)) THEN bReturn = TRUE
 CASE ELSE
   IF Main.bEventsDebug THEN Main.WriteDebugLog(("[Events] 2c. 
Unsupported operand '" & sOperand & "' found!"))
   END SELECT
   IF Main

Re: [Gambas-user] Some new features in Gambas 3

2010-11-28 Thread Ron
Benoit,

all those changes are great!

There is one big problem porting my big gambas2 project to gambas3 and
keep it uptodate. (I have to maintain them next to eachother for a
while)

I cannot use diff or my favorite tool Meld diff viewer, to keep up
with the changes to my project, simply because of the fact that
Gambas2 uses all capital commands IF THEN ELSE and gambas3 If Then
Else, all lines are different.

Something can be done, can a project setting be added for this behavior?
Or is this a big change/lot of work?
Sure it looks nice(r), but I cannot see the changes between my gambas2
and 3 source code...

Regards,
Ron_2nd.

On Sat, Nov 27, 2010 at 7:49 PM, Mauricio Baeza
 wrote:
> El sáb, 27-11-2010 a las 18:37 +0100, Benoît Minisini escribió:
>
>> > El sáb, 27-11-2010 a las 08:56 -0600, Mauricio Baeza escribió:
>> > > Gambas3 looks nice. Integrated support our wiki in my language is
>> > > wonderful.
>> > >
>> > > Do you have a date for the final version?, I need the day and time,
>> > > but
>> > > something close would help me.
>> > >
>> > > Thank you very much for this great work.
>> > >
>> > > Best regards
>> >
>> > Sorry I meant:
>> >
>> > I not needed the day and time, But Something close Would help me.
>> >
>> >
>> > Best regards
>>
>> I understood. I wanted to release before the end of the year, but I have yet
>> some things to finish.
>>
>> As I want to make next releases (> 3.0) more often, I have to implement some
>> sort of preprocessor in the compiler, so that we can compile some part of the
>> code according to the version. I will try to keep backward compatibility, but
>> as I will add new features at each release, it may not be possible. So the
>> user needs a way to make his program compatible between 3.0, 3.1...
>>
>> So I think I will implement that. Then I will check that there is no little
>> things to do yet in the language (like I did with Mk$() and @()
>> functions) so that at least the core is stable between future versions. Then 
>> I
>> will make a bug tracking system. The simpler is using the Google one. The
>> funnier is making one in Gambas. And then I will release the first release
>> candidate.
>>
>> Regards,
>>
>
>
> Wonderful ...
>
> Then it will be sooner than I thought. As the help is based on the wiki,
> I get to work to translate into my language (Spanish) as much as
> possible of the documentation.
>
> Best regards
>
>
> P.D. Sorry my bad English
>
>
> --
> Mauricio Baeza
>
> 10 años usando OpenOffice.org, libre, gratuito y seguro
> ___
> Todo lo que no es dado es perdido
> --
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-30 Thread Ron

>>> Mail.module:IF IsString(Main.GlobalVar["Minute"]) THEN
>>> Main.GlobalVar["Minute"] = Val(Main.GlobalVar["Minute"])
>> Just seems to be checks to see if the variant value from that collection
>> isn't empty, to prevent errors.
> So use 'Not IsNull()' instead.
>

I get when I do  If Not IsNull(Main.GlobalVar["Minute"]) Then 

Error: Type Mismatch wanted string, got integer.

Main.GlobalVar["Minute"] 's  value is 34

Main.GlobalVar[] is a Collection with Variants , so contains all types 
of values.

Sometimes, (don't know why) Main.GlobalVar["Minute"] contained a string 
so "34" instead of an integer, then further down my program things went 
wrong, so therefor this stupid check and correction posted above was used..

Regards,
Ron_2nd.

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-30 Thread Ron
Don't want to bash, but why are CLng and CSng removed/replaced by
CLong and CSingle and CStr is still there / not replaced by CString?

I see some "vb logics" creeping in... same as marking text in insert
and normal mode in IDE i wrote about...

Back in the Gambas2 version it was so logical and cool, but I get more
restless everytime the revision number goes up ;-)

Regards,
Ron_2nd.

2010/11/30 Benoît Minisini :
>> Perhaps GAMBAS needs something like Python's  y=repr( x) to
>> guarantee y is a string representation of x
>>
>
> The name of the function is CStr() - or Str$() if you need localization.
>
> Regards,
>
> --
> Benoît Minisini
>
> --
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-30 Thread Ron
2010/11/30 Benoît Minisini :
>> Don't want to bash, but why are CLng and CSng removed/replaced by
>> CLong and CSingle and CStr is still there / not replaced by CString?
>>
>
> They were not replaced, I just removed some abbreviations. But I admit it maye
> be stupid, as it just takes memory in the compiler. The interpreter does not
> care.
>

Ok, I understand now I think CLng and CSng where 'aliases' of main
functions CLong and CSingle.

But CString is an 'alias' of CStr, not the main function, so the other
way around, therefor you didn't remove Cstr, is that what you are
saying?


>> I see some "vb logics" creeping in... same as marking text in insert
>> and normal mode in IDE i wrote about...
>
> As for that, maybe we misunderstood each other.
>

Yes we did apparently...

Look at the attached screenshot..
I marked -with my mouse- all the full lines of text you see in there
except the last one "Main.ControlLed("EIB", "On")

The last letters of "byte" are not back colored purple, even though I
have selected them.
It does this with all lines having comments in them

It's due to the fact that the font of the comments are different
size/type as the rest I guess, this is the default Ubuntu type theme.


> By pressing the INSERT key, you toggle the editor between normal mode and
> block/overwrite mode, like in Kate or KWrite. In block mode, insertion
> replaces the character under the cursor, and the selection is rectangular (a
> block).
>
> But maybe the problem you have is not that. I don't know, you was not very
> clear.
>
>>
>> Back in the Gambas2 version it was so logical and cool, but I get more
>> restless everytime the revision number goes up ;-)
>
> Gambas 3 is more logical than Gambas 2 is many places!
>

You are right, getting better...

Regards,
Ron_2nd.

> Regards,
>
> --
> Benoît Minisini
>
>
<>--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-11-30 Thread Ron
On 30-11-2010 15:07, Benoît Minisini wrote:
>> 2010/11/30 Benoît Minisini:
>>>> Don't want to bash, but why are CLng and CSng removed/replaced by
>>>> CLong and CSingle and CStr is still there / not replaced by CString?
>>> They were not replaced, I just removed some abbreviations. But I admit it
>>> maye be stupid, as it just takes memory in the compiler. The interpreter
>>> does not care.
>> Ok, I understand now I think CLng and CSng where 'aliases' of main
>> functions CLong and CSingle.
> They were aliases.
>
>> But CString is an 'alias' of CStr, not the main function, so the other
>> way around, therefor you didn't remove Cstr, is that what you are
>> saying?
> CString and CStr are the same thing too.
>

But they are threated differently, thats what I  meant by vb logic... 
not consistent.

>> Yes we did apparently...
>>
>> Look at the attached screenshot..
>> I marked -with my mouse- all the full lines of text you see in there
>> except the last one "Main.ControlLed("EIB", "On")
>>
>> The last letters of "byte" are not back colored purple, even though I
>> have selected them.
>> It does this with all lines having comments in them
>>
>> It's due to the fact that the font of the comments are different
>> size/type as the rest I guess, this is the default Ubuntu type theme.
>>
> No, it's a bug in Qt or in the font you use. It happens sometimes. You should
> use another font!
>
> Regards,

But it's the default font/theme for Ubuntu 10.4... I didn't change a 
think about the theme.
It looks horrible too, can't you choose another one for comments in your 
gambas ide project?
So it works ok always...

Regards,
Ron.

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Removing / Modifying IsXXXX() functions in Gambas3

2010-12-01 Thread Ron
Yes we did apparently...
>>>
>>> Look at the attached screenshot..
>>> I marked -with my mouse- all the full lines of text you see in there
>>> except the last one "Main.ControlLed("EIB", "On")
>>>
>>> The last letters of "byte" are not back colored purple, even though I
>>> have selected them.
>>> It does this with all lines having comments in them
>>>
>>> It's due to the fact that the font of the comments are different
>>> size/type as the rest I guess, this is the default Ubuntu type theme.
>>>
>> No, it's a bug in Qt or in the font you use. It happens sometimes. 
>> You should
>> use another font!
>>
>> Regards,
>
> But it's the default font/theme for Ubuntu 10.4... I didn't change a 
> think about the theme.
> It looks horrible too, can't you choose another one for comments in 
> your gambas ide project?
> So it works ok always...

It looks better and works ok on Ubuntu Maverick I have just seen.
So I guess I'll upgrade my development machine too.

Ron_2nd.

--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb3 - "Too many arguments" when binding UDP socket to port

2010-12-12 Thread Ron
Syntax has changed in Gb3. See here for my Gambas2-Gambas3 scrapbook notes..

http://www.domotiga.nl/wiki/Gambas/Gambas3#UdpSocketSyntaxChange

Happy porting!...

Regards,
Ron_2nd.

On Sun, Dec 12, 2010 at 12:42 AM, Kevin Fishburne
 wrote:
>
>   Code looks like this:
>   ' General declarations.
>   Public server_port As Integer ' UDP port server listens on and client sends
>   data to.
>   Public server_ip As String    ' IP address of the server that client sends
>   data to.
>   Public mode As String         ' Mode to run game in ("client", "server").
>   Public  udp  As UdpSocket       ' UDP socket for client/server network
>   communication.
>   Public data As String         ' Stores incoming UDP data.
>   Public Sub Initialize()
>     ' Network initialization.
>     ' Create the UDP socket.
>     udp = New UdpSocket As "UDP"
>     ' Bind the socket to the appropriate port.
>     If udp.Status <= Net.Inactive Then
>       If mode = "server" Then
>         udp.Bind(server_port)
>          Console.Say(Time  &  "  -  Mode: " & mode & ", Server Port: " &
>   server_port)
>       Endif
>       If mode = "client" Then
>         udp.Bind(0)
>         Console.Say(Time & " - Mode: " & mode & ", Server IP Address: " &
>   server_ip & ", Server Port: " & server_port)
>       Endif
>     Endif
>   End
>   I'm currently trying to convert my app from gb2 to gb3, so this is working
>   in gb2. "udp.Bind(0)" returns the error, and though I haven't tested it yet
>   I'm thinking that "udp.Bind(server_port)" will also return the same error.
>   Any ideas what I'm doing wrong?
> --
> Kevin Fishburne
> Eight Virtues
> www: [1]http://sales.eightvirtues.com
> e-mail: [2]sa...@eightvirtues.com
> phone: (770) 853-6271
>
> References
>
>   1. http://sales.eightvirtues.com/
>   2. mailto:sa...@eightvirtues.com
> --
> Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
> new data types, scalar functions, improved concurrency, built-in packages,
> OCI, SQL*Plus, data movement tools, best practices and more.
> http://p.sf.net/sfu/oracle-sfdev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] What is the use of Tag property

2010-12-12 Thread Ron
I use the Tag properties in async network code.
So I know when a call ends to which event it belongs.

See here for an example:
http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module#L67
http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module#L98

Not all objects have a Tag property, for example Timers don't have it.

Regards,
Ron_2nd.
On Sun, Dec 12, 2010 at 9:32 AM, Demosthenes Koptsis
 wrote:
> Ok i see.
>
> i used to use buttons event click for each one button and it is a bit
> strange to understand it.
>
> So if i understand right instead of click event you use a SELECT CASE
> for tag property?
>
>
>
> On Sun, 2010-12-12 at 10:22 +1100, Michael wrote:
>> If you want a practical example. I have a data form with Edit, Add and
>> Save buttons. When I click Edit or Add I set the tag property of the
>> form; it can be anything "add" "edit or "1" and "2". When the Save
>> button is clicked I then know which action to take. It's use is purely
>> at the developer's discretion. In a sense it works as a global variable
>> but is better because nobody likes globals.
>>
>> Regards
>> Michael
>>
>>
>> On 12/12/10 01:35, Demosthenes Koptsis wrote:
>> > PROPERTY Tag AS Variant
>> >
>> > Returns or sets the control tag.
>> >
>> > This property is intended for the programmer and is never used by the
>> > component. It can contain any Variant value.
>> > 
>> >
>> > ok but what is the use of this property?
>> >
>> >
>>
>> --
>> Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
>> new data types, scalar functions, improved concurrency, built-in packages,
>> OCI, SQL*Plus, data movement tools, best practices and more.
>> http://p.sf.net/sfu/oracle-sfdev2dev
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> --
> Regards,
> Demosthenes
>
>
> --
> Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
> new data types, scalar functions, improved concurrency, built-in packages,
> OCI, SQL*Plus, data movement tools, best practices and more.
> http://p.sf.net/sfu/oracle-sfdev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas2 to 3 port error "Form.Delete is badly overridden in class"

2010-12-14 Thread Ron
This seem to be a common error.

Since the Gambas3 IDE knows that your forms are still version 2 (because 
it says so on the first line of the form file) why not check for this 
after project load and ask the user to convert them?

Regards,
Ron_2nd.
> have you converted your forms ?   menu>tools>
>
> 2010/12/14 Nicolas Koch:
>> I just finished compiling Gambas3 and verified I can play with some code and
>> test ok, however, when i port my project  gambas2 to gambas3 I get error
>> : "Form.Delete is badly overridden in class"
>>
>> What do I need to look or change to fix that?  I have verified that form
>> files say Gambas Form file 3.0.
>>
>>
>> Nick
>> --
>> Lotusphere 2011
>> Register now for Lotusphere 2011 and learn how
>> to connect the dots, take your collaborative environment
>> to the next level, and enter the era of Social Business.
>> http://p.sf.net/sfu/lotusphere-d2d
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>


--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] hProcess is NULL

2010-12-27 Thread Ron
Not clear why you want to wait exactly, but another way is not to wait
but to continue when process is finished.

AntiVirRun_Kill() is called when process is finished.
So you can do other things in meantime (like parsing _Read) and call
the code to run from _Kill to continue.

See here for some code:
http://www.domotiga.nl/browser/trunk/DomotiGa/Ping.module

Regards,
Ron_2nd.
On Mon, Dec 27, 2010 at 10:21 AM, Ian Haywood  wrote:
> On Mon, Dec 27, 2010 at 8:11 PM, Demosthenes Koptsis
>  wrote:
>> On Mon, 2010-12-27 at 10:20 +1100, Ian Haywood wrote:
>>> On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis
>>>  wrote:
>>> > Hello and merry Christmas,
>>> >
>>> > i have these lines of code
>>> >
>>> > ---
>>> >  sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " &
>>> > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " &
>>> > txtVirusTempFolder.Text
>>> >
>>> >  PRINT sCommand
>>> >
>>> >  hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun"
>>> > ---
>>> >
>>> > After that line the hProcess1 is NULL and i get NULL object in
>>> >
>>> > PUBLIC SUB AntiVirRun_Read()
>>> Drop the "WAIT" keyword.
>>
>> Actually i want the WAIT word.
>>
>> I want to WAIT until the command is finished but in meanwhile i want to
>> be capable to read the stdout.
> Use Shell...To as I described.
> Or read output and then when you are finished reading use hProcess.Wait()
>
> But you can't wait and read at the same time.
>
> Ian
>
> --
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Multiple TCP server sockets

2010-12-28 Thread Ron
Do I miss something here?
I have several server sockets on several ports for years in Gambas2...

Regards,
Ron_2nd.
2010/12/28 Benoît Minisini :
>> >  >
>> >  > That is not the issue, you can do that, but they all use the same
>> >  > socket_read sub. Or I my missing something here?
>> >
>> > Hem, you are right, I didn't notice.
>> >
>> >  Internallly the Socket object knows which ServerSocket created it, but
>> >  you don't have any access to it!
>> >
>> >  As a workaround, I think you can use the port number to make the
>> >  difference.
>>
>> I will look into that in the meantime.
>>
>> >  Maybe I will make a "Server" property in the Socket class to get the
>> >  ServerSocket object creator.
>> >
>> >  And I can add an optional argument to the Accep() method to define the
>> >  event name of the created socket.
>>
>> That would be great! Thanks.
>>
>> Regards,
>> Joe1962
>>
>
> The Socket.Server property has been implemented in revision #3403.
>
> Regards,
>
> --
> Benoît Minisini
>
> --
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Eval Gambas2

2011-01-05 Thread Ron
Hi,

I'm trying to implement some sort of basic scripting with the use of 
Eval() inside my project.

It works for a lot of math, formatting and comparison commands and works 
quite nicely.

But I need the IF THEN to work too.

IIf ( Test AS Boolean , TrueExpression , FalseExpression , 
FalseExpression ) or
If ( Test AS Boolean , TrueExpression , FalseExpression )

Works,  but evaluates both TrueExpression and FalseExpression regardless 
of test (as explained in docs)

Is there a way to get
IF Test THEN TrueExpression
to work inside Eval() ?

Regards,
Ron_2nd.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Eval Gambas2

2011-01-05 Thread Ron
On 5-1-2011 10:23, Benoît Minisini wrote:
>> Hi,
>>
>> I'm trying to implement some sort of basic scripting with the use of
>> Eval() inside my project.
>>
>> It works for a lot of math, formatting and comparison commands and works
>> quite nicely.
>>
>> But I need the IF THEN to work too.
>>
>> IIf ( Test AS Boolean , TrueExpression , FalseExpression ,
>> FalseExpression ) or
>> If ( Test AS Boolean , TrueExpression , FalseExpression )
>>
>> Works,  but evaluates both TrueExpression and FalseExpression regardless
>> of test (as explained in docs)
>>
>> Is there a way to get
>> IF Test THEN TrueExpression
>> to work inside Eval() ?
>>
>> Regards,
>> Ron_2nd.
>>
> No way. Eval() only evaluates expressions.
>

Ok clear ;-)

Got some sort of work around so I can use IIf the way I want, instead of

If(Dev_26_Value = "On", Twitter.PostTweet("TV is On!"), 
Twitter.PostTweet("TV is Off!"))

do:

Twitter.PostTweet(If(Dev_26_Value = "On","TV is On!", "TV is Off!"))

Shorter anyway...

Regards,
Ron_2nd.

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Incorrect name at the top of the lang web page V2 instead of V3

2011-01-13 Thread Ron
Yes,

would be more clear if you always had both version links displayed, one 
selected (the displayed one) and one clickable, the other.

> i had the same question some time ago.
>
> But actually later in an email i read that this is for change to other
> version of documents.
>
> so when you are in wiki Gambas3 you see [2.0], this means if you click
> on the link you go to Gambas2 docs.
>
> The oposite when you are in version 2.0 you click [3.0] to see 3.0 docs.
>
> Am i right list?
>
> On Thu, 2011-01-13 at 18:37 +0800, Ian Roper wrote:
>> I noticed that at the top of the web page on the Gambas documentation
>> site
>> that the version 2.n link is identified as   '>  [3.0]'
>> and the version 3.n link is identified as '>  lang [2.0]
>>
>> minor thing I know, but confusing for new users.
>>
>> regards,
>> Ian Roper
>> Perth - Western Australia.
>> Gambas 2.22 on Ubuntu 10.10
>>
>> --
>> Protect Your Site and Customers from Malware Attacks
>> Learn about various malware tactics and how to avoid them. Understand
>> malware threats, the impact they can have on your business, and how you
>> can protect your company and customers by using code signing.
>> http://p.sf.net/sfu/oracle-sfdevnl
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Building 3.0

2011-01-20 Thread Ron
On Jan 20, 2011 8:59 PM, "John Spikowski"  wrote:
>
> Gambas Developer Team,
>
> I used svn and downloaded the trunk and ran ./reconf-all. I have
> installed 3.0 Gambas as a sub-directory in my /home/jrs/gambas-dev/trunk
> and ready to build Gambas 3.0. Before I get started I have a few
> questions and maybe the answers will help other newbies like me to
> Gambas help test the 3.0 release.
>
> 1. Do I still need to run ./configure after running ./reconf-all ?

Yes

> 2. I would like to continue to keep the 2.22 release I built as the
> default and run 3.0 out of my home directory for testing. Should I use
> the prefix option with configure to have the install create the binaries
> in /home/jrs/???

You can install and run gb2 and gb3 in same dir without problems.

> 3. If I want to refresh the truck and test recent fixes, is there a svn
> command to only download the files that have changed since my last truck
> request?

svn up

> 4. Is there a way to only recompile a component and install it rather
> than doing a complete build from scratch?

Run make install in its dir or one just above it.

> 5. Is there a better way to report suspected bugs other than the list?

Google code bug tracker if it is propably a bug.

> 6. What area(s) of Gambas development are most important at this time to
> get the 3.0 release out?

Get it in a usable state.

>
> Thanks for your help to bring a Gambas newbie developer up to speed.
>
> John
>

Ron_2nd.

>
>
--
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas 3 rev 3489 error message windows in ide gone?

2011-01-23 Thread Ron
When compiling a project which has syntax errors I don't get a pop msg
anymore telling what is wrong, it just jump to line with the error and
displays the error in the status bar of main project.
If you blink you eyes you miss them, because it's only displayed 2 seconds.

Is this a bug, or changed behaviour?


[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.32-26-generic
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 10.04.1 LTS"

[System]
CPUArchitecture=i686
TotalRam=1017108 kB
Desktop=Gnome

[Gambas]
Gambas1=Not Installed
Gambas2=2.21.0
Gambas2Path=/usr/local/bin/gbx2
Gambas3=2.99.0
Gambas3Path=/usr/local/bin/gbx3


Regards,
Ron_2nd.

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas 3 rev 3489 bad form file version

2011-01-23 Thread Ron
When you have a project where not all form are converted from 2.0 yet,
there is no way to get it going anymore, since the menu option to
convert forms isn't there anymore.
And i cannot find any substitute to do that.

So i'm stuck again porting my project...

Any solution?



Regards,
Ron_2nd.

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3 rev 3489 bad form file version

2011-01-23 Thread Ron
Yes i have, but i copy parts of my project, im keeping a 2 and gambas 3
version.
Now i cant copy updated forms anymore and choose update.

Can we just keep that menu optio too?
---
Regards,
Ron.
On Jan 23, 2011 5:36 PM, "Benoît Minisini" 
wrote:
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3 rev 3489 bad form file version

2011-01-23 Thread Ron
Ok will do and let you know, if it works ok i dont have do merge updates
myself, so it's better in the end!

---
Regards,
Ron.
On Jan 23, 2011 6:35 PM, "Benoît Minisini" 
wrote:
>> Yes i have, but i copy parts of my project, im keeping a 2 and gambas 3
>> version.
>> Now i cant copy updated forms anymore and choose update.
>>
>> Can we just keep that menu optio too?
>> ---
>> Regards,
>> Ron.
>
> Now the conversion of forms is automatic as soon as you open a Gambas 2
> project in the Gambas 3 IDE. So, if you open your old Gambas 2 project,
all
> your forms will be automatically converted.
>
> It's an interesting test for me, as you will be able to tell me how useful
is
> the automatic converter (it converts both forms and source code).
>
> As the source code converter is based on the remarks you published on your
web
> site, it *should* convert your entire project correctly.
>
> All the modifications introduced by the converter are annotated with a
comment
> in the source code, with the old line before the conversion, so that you
can
> check exactly what was done.
>
> Please do the test and tell me the result.
>
> Moreover, by doing that, you will be able to take the converted forms you
need
> to put them in your already partially converted Gambas 3 project!
>
> --
> Benoît Minisini
>
>
--
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Converting a project to Gambas3 (was: Re:Gambas 3 rev 3489 bad form file version)

2011-01-27 Thread Ron
On 23-1-2011 18:39, Benoît Minisini wrote:
>>> Yes i have, but i copy parts of my project, im keeping a 2 and gambas 3
>>> version.
>>> Now i cant copy updated forms anymore and choose update.
>>>
>>> Can we just keep that menu optio too?
>>> ---
>>> Regards,
>>> Ron.
>> Now the conversion of forms is automatic as soon as you open a Gambas 2
>> project in the Gambas 3 IDE. So, if you open your old Gambas 2 project, all
>> your forms will be automatically converted.
>>
>> It's an interesting test for me, as you will be able to tell me how useful
>> is the automatic converter (it converts both forms and source code).
>>
>> As the source code converter is based on the remarks you published on your
>> web site, it *should* convert your entire project correctly.
>>
>> All the modifications introduced by the converter are annotated with a
>> comment in the source code, with the old line before the conversion, so
>> that you can check exactly what was done.
>>
>> Please do the test and tell me the result.
>>
>> Moreover, by doing that, you will be able to take the converted forms you
>> need to put them in your already partially converted Gambas 3 project!
> Note that not all incompatibilities are handled by the converter. See the
> "Porting from Gambas 2 to Gambas 3" page in the wiki for more information.
>
> Regards,
>
Benoit,

I opened a copy of my Gambas2 project with revision 3498, it converted 
it automagically upon open.

Some first notes:

Displaying ide compile error messages in balloons works again!
But not for runtime errors, if you programs runs, and it stops with 
runtime error on the line with error I cannot see which error occurred 
on that line.

While converting, the shell output reported a missing icon I guess:
warning: unable to load 16/view-hidden

CSng isn't converted to CSingle (seems easy to do automatically)
A manual 'replace all' converted all 106 of them.

Same for CLng to CLong, a manual 'replace all' converted 6 of them.

BCOL: Didn't find/converted this line:
If Row Mod 2 Then gvPhoneCalls.Data.BackColor = Color.Background

Will try/run my program some more and let you know.

Regards,
Ron_2nd.

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Weird error Gambas2

2011-03-05 Thread Ron
Just about to release a new version of my project, and I get weird
error messages again...
It's always like this ;-)

When I run my command line project I get this error a lot of times:

THROW system error from CRFXComTX.WriteMessage.377
THROW system error from CRFXComTX.WriteMessage.377
...
...

Line 377 contains:
TRY READ #hRFXComTX, bTemp

?? I don't get it..

gambas2, build yesterday, gb.qt, maveric,k 32 bits.

Regards,
Ron.

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Weird error Gambas2

2011-03-06 Thread Ron
Its in the stable repos code then.
Because i compiled gambas from scratch.
Had to reinstall my machine.
I dont get the error in gui project.
Which uses same code in that spot.
Will restore your account too.

---
Regards,
Ron.
On Mar 5, 2011 10:56 PM, "Benoît Minisini" 
wrote:
>> Just about to release a new version of my project, and I get weird
>> error messages again...
>> It's always like this ;-)
>>
>> When I run my command line project I get this error a lot of times:
>>
>> THROW system error from CRFXComTX.WriteMessage.377
>> THROW system error from CRFXComTX.WriteMessage.377
>> ...
>> ...
>>
>> Line 377 contains:
>> TRY READ #hRFXComTX, bTemp
>>
>> ?? I don't get it..
>>
>> gambas2, build yesterday, gb.qt, maveric,k 32 bits.
>>
>> Regards,
>> Ron.
>
> I think it's the message I added to catch the error in Domotiga, don't you

> remember?
>
> I can't check, because I can't connect to your machine anymore.
>
> Regards,
>
> --
> Benoît Minisini
>
>
--
> What You Don't Know About Data Connectivity CAN Hurt You
> This paper provides an overview of data connectivity, details
> its effect on application quality, and explores various alternative
> solutions. http://p.sf.net/sfu/progress-d2d
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Weird error Gambas2

2011-03-12 Thread Ron
Benoit,

http://gambas.svn.sourceforge.net/viewvc/gambas/gambas/branches/2.0/main/gbx/gb_error.c?r1=3470&r2=3469&pathrev=3470

If I get that output does it mean anything, if not can you delete it
from the repos please?

I get it when I try to read sockets with try, very annoing.

I haven't been able to get the System Error(42) anymore.
I have no clue.

But reading for a socket while there is nothing to read triggers this
THROW Error debug msgs.
If you need to debug it, please let me know, I restore your ssh login.

Regards,
Ron.


On Sun, Mar 6, 2011 at 9:43 AM, Ron  wrote:
> Its in the stable repos code then.
> Because i compiled gambas from scratch.
> Had to reinstall my machine.
> I dont get the error in gui project.
> Which uses same code in that spot.
> Will restore your account too.
>
> ---
> Regards,
> Ron.
>
> On Mar 5, 2011 10:56 PM, "Benoît Minisini" 
> wrote:
>>> Just about to release a new version of my project, and I get weird
>>> error messages again...
>>> It's always like this ;-)
>>>
>>> When I run my command line project I get this error a lot of times:
>>>
>>> THROW system error from CRFXComTX.WriteMessage.377
>>> THROW system error from CRFXComTX.WriteMessage.377
>>> ...
>>> ...
>>>
>>> Line 377 contains:
>>> TRY READ #hRFXComTX, bTemp
>>>
>>> ?? I don't get it..
>>>
>>> gambas2, build yesterday, gb.qt, maveric,k 32 bits.
>>>
>>> Regards,
>>> Ron.
>>
>> I think it's the message I added to catch the error in Domotiga, don't you
>> remember?
>>
>> I can't check, because I can't connect to your machine anymore.
>>
>> Regards,
>>
>> --
>> Benoît Minisini
>>
>>
>> --
>> What You Don't Know About Data Connectivity CAN Hurt You
>> This paper provides an overview of data connectivity, details
>> its effect on application quality, and explores various alternative
>> solutions. http://p.sf.net/sfu/progress-d2d
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Signal 11 with callback functions

2011-03-13 Thread Ron
Can someone explain what extern callbacks are/do?

Thanks!

2011/3/13 Benoît Minisini :
>> It's better, but there are other problems too... Something to do with
>> "select case" and callback functions.
>> I managed to isolate the problem. See attachment.
>>
>> Click coupleo of times that button, and you will see cumulative performance
>> problem leading practically to freeze.
>>
>> Gambas 3 rev 3644 @ Ubuntu 10.10 64bit
>>
>> Jussi
>>
>
> It should be better in revision #3646.
>
> Regards,
>
> --
> Benoît Minisini
>
> --
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas stable bugs in BSet and BChg?

2011-03-16 Thread Ron
When you run this:

PUBLIC SUB Main()

   DIM bByte AS Byte

   PRINT Bin(bByte, 8)

   BSet(bByte, 0)
   PRINT Bin(bByte, 8)

   BChg(bByte, 0)
   PRINT Bin(bByte, 8)

   bByte = bByte OR &H1
   PRINT Bin(bByte, 8)

   PRINT BTst(bByte, 0)

END

You get this:




0001
True

BSet and BChg seem to do nothing...
BTst works

Gambas 2.22

Regards,
Ron_2nd.


--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas stable bugs in BSet and BChg?

2011-03-16 Thread Ron
AHA!

Forget my e-mail ;-)

Regards,
Ron_2nd.
2011/3/16 Benoît Minisini :
>> When you run this:
>>
>> PUBLIC SUB Main()
>>
>>    DIM bByte AS Byte
>>
>>    PRINT Bin(bByte, 8)
>>
>>    BSet(bByte, 0)
>>    PRINT Bin(bByte, 8)
>>
>>    BChg(bByte, 0)
>>    PRINT Bin(bByte, 8)
>>
>>    bByte = bByte OR &H1
>>    PRINT Bin(bByte, 8)
>>
>>    PRINT BTst(bByte, 0)
>>
>> END
>>
>> You get this:
>>
>> 
>> 
>> 
>> 0001
>> True
>>
>> BSet and BChg seem to do nothing...
>> BTst works
>>
>> Gambas 2.22
>>
>> Regards,
>> Ron_2nd.
>>
>
> These are functions, not instructions !
>
> --
> Benoît Minisini
>
> --
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas 3 RC1 CSng project conversion bug

2011-03-28 Thread Ron
Testing RC1 with code revision 3693

Converting a project to Gambas3 doesn't work 100% correct.

It seems '+ CSingle' becomes 'CSingleSng'

   If (RecBuf[6] And &H8) = 0 Then
 ' [GB2:CSNG] sCelsius = CSng(Hex(RecBuf[5])) + 
CSng(Hex(Lsr(RecBuf[4], 4))) / 10
 sCelsius = CSingle(Hex(RecBuf[5]))CSingleSng(Hex(Lsr(RecBuf[4], 
4))) / 10
   Else
 ' [GB2:CSNG] sCelsius = 0 - (CSng(Hex(RecBuf[5])) + 
CSng(Hex(Lsr(RecBuf[4], 4))) / 10)
 sCelsius = 0 - 
(CSingle(Hex(RecBuf[5]))CSingleSng(Hex(Lsr(RecBuf[4], 4))) / 10)
   End If

Here it seems a 2 step process where the Hex ()is lost:

 ' [GB2:CSNG] sTrain = (CSng(Hex(RecBuf[8] And &HF)) * 1000 + 
CSng(Hex(RecBuf[7])) * 10 + CSng(Hex(Lsr(RecBuf[6], 4
 ' [GB2:CSNG] sTrain = (CSingle(Hex(RecBuf[8] And &HF)) * 
1000CSingleSng(Hex(RecBuf[7])) *CSingle+ CSng(Hex(Lsr(RecBuf[6], 4
 sTrain = (CSingle(Hex(RecBuf[8] And &HF)) * 1000 
CSingleSng(Hex(RecBuf[7])) * CSingle + CSnCSinglex(Lsr(RecBuf[6], 4

Regards,
Ron_2nd.

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas 3 RC1 CLng not converted

2011-03-28 Thread Ron

CLng's are not converted to CLong.

 lCt4 = Lsl(CLng(RecBuf[10]), 36)

I remember I reported this earlier, and was fixed?

Regards,
Ron_2nd.

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas3 RC1 Internal error all of a sudden

2011-03-28 Thread Ron
Project runs ok, but every now and then I get this:

** INTERNAL ERROR **
** Cannot read from SIGCHLD pipe
Main.BroadcastEvent.4731: #5: Too many arguments
0: Main.BroadcastEvent.4731
1: Main.RefreshDeviceList.4848
2: Devices.ValueUpdate.823
3: Main.SetGlobalVar.4447
4: RRDTool.GetRRDPath.60
5: RRDTool.UpdateRRDs.269
6: ServerStats.tServerStats_Timer.40
** Program aborting. Sorry! :-(

Ok the program/author said Sorry ;-)
But it doesn't look right...

A few minutes later...

Ok, it was due to a catch without content that the wrong syntax wasn't 
reported.

   ' sent it to all computers on this network
   hBroadcastEvent = New UdpSocket As "BroadcastUDP"
   hBroadcastEvent.Broadcast = True
   hBroadcastEvent.Bind(0)
   hBroadcastEvent.TargetPort = iXMLRPCHTTPPort + 1

   For Each sIp In aBroadcastAddrs
 hBroadcastEvent.TargetHost = sIp
 Write #hBroadcastEvent, sMessage, Len(sMessage)
   Next

Catch
   ' Main.WriteLog(("ERROR: Cannot broadcast UDP message! ") & 
ERROR.Text & (" at ") & ERROR.Where)

But why didn't the Gambas converter convert this: ?

   hBroadcastEvent.Bind(0) <-

I get the idea that the project converter code  is much older or has 
bugs which weren't there when I first tested it.

Revision 3693 on Ubuntu Maverick 64 Bits.

Regards.
Ron_2nd.

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 RC1 Internal error all of a sudden

2011-03-28 Thread Ron
Hmmm, another one in a different part of my project:

** INTERNAL ERROR **
** Cannot read from SIGCHLD pipe
CSqueezeServer.ReceiveData.204: #39: End of file
0: CSqueezeServer.ReceiveData.204
1: RRDTool.GetRRDPath.60
2: RRDTool.UpdateRRDs.269
3: ServerStats.tServerStats_Timer.40
** Program aborting. Sorry! :-(

This is the routine:
m iTries As Integer = 30
   Dim sData As String

   ' see if we got some data
   While iTries > 0
 Try Line Input #hSqueezeServer, sData <-- Line 
# 204
 If Error Then
   ' not yet
   Sleep 0.01
 Else
   ' got it
   Break
 End If
 Dec iTries
   Wend
   If bSqueezeServerDebug Then Main.WriteDebugLog("[SqueezeServer] < " & 
URLDecode(sData))

   Return URLDecode(sData)

End

Have to change that ugly code, and syntax.
But still Internal Errors shouldn't be there...


Regards,
Ron.

> Project runs ok, but every now and then I get this:
>
> ** INTERNAL ERROR **
> ** Cannot read from SIGCHLD pipe
> Main.BroadcastEvent.4731: #5: Too many arguments
> 0: Main.BroadcastEvent.4731
> 1: Main.RefreshDeviceList.4848
> 2: Devices.ValueUpdate.823
> 3: Main.SetGlobalVar.4447
> 4: RRDTool.GetRRDPath.60
> 5: RRDTool.UpdateRRDs.269
> 6: ServerStats.tServerStats_Timer.40
> ** Program aborting. Sorry! :-(
>
> Ok the program/author said Sorry ;-)
> But it doesn't look right...
>
> A few minutes later...
>
> Ok, it was due to a catch without content that the wrong syntax wasn't 
> reported.
>
>   ' sent it to all computers on this network
>   hBroadcastEvent = New UdpSocket As "BroadcastUDP"
>   hBroadcastEvent.Broadcast = True
>   hBroadcastEvent.Bind(0)
>   hBroadcastEvent.TargetPort = iXMLRPCHTTPPort + 1
>
>   For Each sIp In aBroadcastAddrs
> hBroadcastEvent.TargetHost = sIp
> Write #hBroadcastEvent, sMessage, Len(sMessage)
>   Next
>
> Catch
>   ' Main.WriteLog(("ERROR: Cannot broadcast UDP message! ") & 
> ERROR.Text & (" at ") & ERROR.Where)
>
> But why didn't the Gambas converter convert this: ?
>
>   hBroadcastEvent.Bind(0) <-
>
> I get the idea that the project converter code  is much older or has 
> bugs which weren't there when I first tested it.
>
> Revision 3693 on Ubuntu Maverick 64 Bits.
>
> Regards.
> Ron_2nd.


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 RC1 Internal error all of a sudden

2011-03-28 Thread Ron
On 28-3-2011 14:24, Benoît Minisini wrote:
>> Hmmm, another one in a different part of my project:
>>
>> ** INTERNAL ERROR **
>> ** Cannot read from SIGCHLD pipe
>> CSqueezeServer.ReceiveData.204: #39: End of file
>> 0: CSqueezeServer.ReceiveData.204
>> 1: RRDTool.GetRRDPath.60
>> 2: RRDTool.UpdateRRDs.269
>> 3: ServerStats.tServerStats_Timer.40
>> ** Program aborting. Sorry! :-(
>>
> Can you try the latest revision? The interpreter will print more information
> on the internal error.
>
> Regards,
>

It prints nothing more...

** INTERNAL ERROR **
** Cannot read from SIGCHLD pipe ->
CSqueezeServer.ReceiveData.204: #39: End of file
0: CSqueezeServer.ReceiveData.204
1: RRDTool.GetRRDPath.60
2: RRDTool.UpdateRRDs.269
3: ServerStats.tServerStats_Timer.40
** Program aborting. Sorry! :-(

I have added the -> at the end of the line 'Cannot read from SIGCHLD 
pipe' in my source code to make sure I was using the modified code.


Regards,
Ron_2nd.

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 RC1 Internal error all of a sudden

2011-03-28 Thread Ron
On 28-3-2011 15:14, Benoît Minisini wrote:
>> On 28-3-2011 14:24, Benoît Minisini wrote:
 Hmmm, another one in a different part of my project:

 ** INTERNAL ERROR **
 ** Cannot read from SIGCHLD pipe
 CSqueezeServer.ReceiveData.204: #39: End of file
 0: CSqueezeServer.ReceiveData.204
 1: RRDTool.GetRRDPath.60
 2: RRDTool.UpdateRRDs.269
 3: ServerStats.tServerStats_Timer.40
 ** Program aborting. Sorry! :-(
>>> Can you try the latest revision? The interpreter will print more
>>> information on the internal error.
>>>
>>> Regards,
>> It prints nothing more...
>>
> I forgot a "%s". Try again with the revision #3696!
>

Silly, I didn't notice the missing %s either...

We have an error msg:

** INTERNAL ERROR **
** Cannot read from SIGCHLD pipe: Interrupted system call
CSqueezeServer.ReceiveData.204: #39: End of file
0: CSqueezeServer.ReceiveData.204
1: RRDTool.GetRRDPath.60
2: RRDTool.UpdateRRDs.269
3: ServerStats.tServerStats_Timer.40
** Program aborting. Sorry! :-(

Regards,
Ron_2nd.

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] HttpClient question

2011-03-28 Thread Ron

It seems that if you call HttpClient twice after each other with 
different urls in async mode, like in example below the _finished event
is only called once (with the last call/url)

So they are not really async/background, or is this a bug?
Or are they overwritten, due to false usage/code?

This happens in Gambas2 and 3...

' Gambas module

Public hPachubeFetch As HttpClient

Public Sub Main()

   Dim rFeeds As String[] = ["21017", "3711"]
   Dim sUrl, sFeed As String

   For Each sFeed In rFeeds
 Debug sfeed
 hPachubeFetch = New HttpClient As "hPachubeFetch"
 hPachubeFetch.URL = sUrl
 hPachubeFetch.TimeOut = 8
 hPachubeFetch.Tag = sFeed & "|0|12" ' feed | datastream | device id
 hPachubeFetch.Auth = 1
 hPachubeFetch.User = "user"
 hPachubeFetch.Password = "password"
 hPachubeFetch.Async = True
 hPachubeFetch.Get()
  Next

End

Public Sub hPachubeFetch_Finished()

'do stuff

End

Regards,
Ron_2nd.

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 RC1 Internal error all of a sudden

2011-03-28 Thread Ron
On 28-3-2011 15:32, Ron wrote:
> On 28-3-2011 15:14, Benoît Minisini wrote:
>>> On 28-3-2011 14:24, Benoît Minisini wrote:
>>>>> Hmmm, another one in a different part of my project:
>>>>>
>>>>> ** INTERNAL ERROR **
>>>>> ** Cannot read from SIGCHLD pipe
>>>>> CSqueezeServer.ReceiveData.204: #39: End of file
>>>>> 0: CSqueezeServer.ReceiveData.204
>>>>> 1: RRDTool.GetRRDPath.60
>>>>> 2: RRDTool.UpdateRRDs.269
>>>>> 3: ServerStats.tServerStats_Timer.40
>>>>> ** Program aborting. Sorry! :-(
>>>> Can you try the latest revision? The interpreter will print more
>>>> information on the internal error.
>>>>
>>>> Regards,
>>> It prints nothing more...
>>>
>> I forgot a "%s". Try again with the revision #3696!
>>
>
> Silly, I didn't notice the missing %s either...
>
> We have an error msg:
>
> ** INTERNAL ERROR **
> ** Cannot read from SIGCHLD pipe: Interrupted system call
> CSqueezeServer.ReceiveData.204: #39: End of file
> 0: CSqueezeServer.ReceiveData.204
> 1: RRDTool.GetRRDPath.60
> 2: RRDTool.UpdateRRDs.269
> 3: ServerStats.tServerStats_Timer.40
> ** Program aborting. Sorry! :-(
>
> Regards,
> Ron_2nd.

Disabled the SqueezeServer module above, and let it run, got this one:

** INTERNAL ERROR **
** Cannot read from SIGCHLD pipe: Interrupted system call
Main.Setup_TemperaturNu.3277: #13: Null object
0: Main.Setup_TemperaturNu.3277
1: RRDTool.UpdateRRDs.269
2: ServerStats.tServerStats_Timer.40
** Program aborting. Sorry! :-(

Main.Setup_TemperaturNu.3277: #13: Null object
Contains:

 Try TemperaturNu.tTemperaturNu.Stop

It looks like these calls and line numbers have nothing to do with the 
internal error above it, and/or are bogus.
It just seem to display the last error covered by a TRY statement, correct?

Because the line above is run long before the Internal error comes up 
(like 5 minutes in between)

Regards,
Ron_2nd.

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3 RC1 CLng not converted

2011-03-28 Thread Ron
On 28-3-2011 16:55, Benoît Minisini wrote:
>> CLng's are not converted to CLong.
>>
>>   lCt4 = Lsl(CLng(RecBuf[10]), 36)
>>
>> I remember I reported this earlier, and was fixed?
>>
>> Regards,
>> Ron_2nd.
>>
> Can you try the latest revision?
>
Yes this is fixed.
Thanks.

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3 RC1 CSng project conversion bug

2011-03-28 Thread Ron
On 28-3-2011 16:55, Benoît Minisini wrote:
>> Testing RC1 with code revision 3693
>>
>> Converting a project to Gambas3 doesn't work 100% correct.
>>
>> It seems '+ CSingle' becomes 'CSingleSng'
>>
>> If (RecBuf[6] And&H8) = 0 Then
>>   ' [GB2:CSNG] sCelsius = CSng(Hex(RecBuf[5])) +
>> CSng(Hex(Lsr(RecBuf[4], 4))) / 10
>>   sCelsius = CSingle(Hex(RecBuf[5]))CSingleSng(Hex(Lsr(RecBuf[4],
>> 4))) / 10
>> Else
>>   ' [GB2:CSNG] sCelsius = 0 - (CSng(Hex(RecBuf[5])) +
>> CSng(Hex(Lsr(RecBuf[4], 4))) / 10)
>>   sCelsius = 0 -
>> (CSingle(Hex(RecBuf[5]))CSingleSng(Hex(Lsr(RecBuf[4], 4))) / 10)
>> End If
>>
>> Here it seems a 2 step process where the Hex ()is lost:
>>
>>   ' [GB2:CSNG] sTrain = (CSng(Hex(RecBuf[8] And&HF)) * 1000 +
>> CSng(Hex(RecBuf[7])) * 10 + CSng(Hex(Lsr(RecBuf[6], 4
>>   ' [GB2:CSNG] sTrain = (CSingle(Hex(RecBuf[8] And&HF)) *
>> 1000CSingleSng(Hex(RecBuf[7])) *CSingle+ CSng(Hex(Lsr(RecBuf[6], 4
>>   sTrain = (CSingle(Hex(RecBuf[8] And&HF)) * 1000
>> CSingleSng(Hex(RecBuf[7])) * CSingle + CSnCSinglex(Lsr(RecBuf[6], 4
>>
>> Regards,
>> Ron_2nd.
>>
> It should be fixed in the last revision. Can you try?
>
Yes, this is fixed too.
Thanks.


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas3 RC1 Bind conversion

2011-03-28 Thread Ron
Referring to this page http://www.gambasdoc.org/help/doc/gb2togb3?v3
It looks like Bind(0) calls should be converted by the IDE, but it
doesn't seem to be implemented.

No Bind related code in  app/src/gambas3/.src/Project/MConvert.module

Regards,
Ron_2nd.

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 RC1 Internal error all of a sudden

2011-03-28 Thread Ron
It still runs without errors, so seems fixed to, otherwise it stopped
after a few minutes.

I wonder where those interrupted systems calls referred too btw.
Are those processes stopped or pipes closed, are they normal?

Thanks!


2011/3/28 Benoît Minisini :
>>
>> Disabled the SqueezeServer module above, and let it run, got this one:
>>
>> ** INTERNAL ERROR **
>> ** Cannot read from SIGCHLD pipe: Interrupted system call
>> Main.Setup_TemperaturNu.3277: #13: Null object
>> 0: Main.Setup_TemperaturNu.3277
>> 1: RRDTool.UpdateRRDs.269
>> 2: ServerStats.tServerStats_Timer.40
>> ** Program aborting. Sorry! :-(
>>
>> Main.Setup_TemperaturNu.3277: #13: Null object
>> Contains:
>>
>>      Try TemperaturNu.tTemperaturNu.Stop
>>
>> It looks like these calls and line numbers have nothing to do with the
>> internal error above it, and/or are bogus.
>> It just seem to display the last error covered by a TRY statement, correct?
>>
>> Because the line above is run long before the Internal error comes up
>> (like 5 minutes in between)
>>
>> Regards,
>> Ron_2nd.
>>
>
> Yes, it displays the last error (it may be useful).
>
> Can you try the latest revision? Interrupted system calls should be handled
> correctly when reading from the SIGCHLD pipe now.
>
> Regards,
>
> --
> Benoît Minisini
>
> --
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 RC1 Bind conversion

2011-03-29 Thread Ron
Yes, converting .Bind() works ok now too!
Thanks.

2011/3/29 Benoît Minisini :
>> Referring to this page http://www.gambasdoc.org/help/doc/gb2togb3?v3
>> It looks like Bind(0) calls should be converted by the IDE, but it
>> doesn't seem to be implemented.
>>
>> No Bind related code in  app/src/gambas3/.src/Project/MConvert.module
>>
>> Regards,
>> Ron_2nd.
>>
>
> Implemented in revision #3699.
>
> Regards,
>
> --
> Benoît Minisini
>
> --
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and publish
> your website. http://p.sf.net/sfu/ms-webmatrix-sf
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] HttpClient question, now massively parallel!

2011-03-30 Thread Ron
Hi Caveat,

I wanted to create a module for my software so I can fetches sensor data 
from public pachubes sensors in japen, to get nuclear radiation values.

I will adapt your code, thanks!

Regards,
Ron_2nd.
> Hi Ron_2nd,
>
> Benoit is (need I say it!) 100% correct.
>
> But I figured out a kind of simplistic way to allow you to do your gets
> in a MASSIVELY PARALLEL fashion...  :-D
>
> http://pastebin.com/LiY3g4Lt
>
>
> Oh and Rolf, I notice PasteBin has a specific Gambas syntax highlighter
> already :-D
>
> Regards,
> Caveat
>
>
> On Wed, 2011-03-30 at 01:54 +0200, Benoît Minisini wrote:
>>> It seems that if you call HttpClient twice after each other with
>>> different urls in async mode, like in example below the _finished event
>>> is only called once (with the last call/url)
>>>
>>> So they are not really async/background, or is this a bug?
>>> Or are they overwritten, due to false usage/code?
>>>
>>> This happens in Gambas2 and 3...
>>>
>>> ' Gambas module
>>>
>>> Public hPachubeFetch As HttpClient
>>>
>>> Public Sub Main()
>>>
>>> Dim rFeeds As String[] = ["21017", "3711"]
>>> Dim sUrl, sFeed As String
>>>
>>> For Each sFeed In rFeeds
>>>   Debug sfeed
>>>   hPachubeFetch = New HttpClient As "hPachubeFetch"
>>>   hPachubeFetch.URL = sUrl
>>>   hPachubeFetch.TimeOut = 8
>>>   hPachubeFetch.Tag = sFeed&  "|0|12" ' feed | datastream | device id
>>>   hPachubeFetch.Auth = 1
>>>   hPachubeFetch.User = "user"
>>>   hPachubeFetch.Password = "password"
>>>   hPachubeFetch.Async = True
>>>   hPachubeFetch.Get()
>>>Next
>>>
>>> End
>>>
>>> Public Sub hPachubeFetch_Finished()
>>>
>>>  'do stuff
>>>
>>> End
>>>
>>> Regards,
>>> Ron_2nd.
>>>
>> I think you have to keep reference on the HttpClient object until the Get() 
>> is
>> finished. Otherwise the Finished event will be lost.
>>
>> Regards,
>>
>>
>
>
> --
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] HttpClient question

2011-03-30 Thread Ron
I got a curl pipe error, and sent you my test project privately in a sec.
So you can test with my user account.

Regards,
Ron.

2011/3/30 Benoît Minisini :
>> It seems that if you call HttpClient twice after each other with
>> different urls in async mode, like in example below the _finished event
>> is only called once (with the last call/url)
>>
>> So they are not really async/background, or is this a bug?
>> Or are they overwritten, due to false usage/code?
>>
>> This happens in Gambas2 and 3...
>>
>> ' Gambas module
>>
>> Public hPachubeFetch As HttpClient
>>
>> Public Sub Main()
>>
>>    Dim rFeeds As String[] = ["21017", "3711"]
>>    Dim sUrl, sFeed As String
>>
>>    For Each sFeed In rFeeds
>>      Debug sfeed
>>      hPachubeFetch = New HttpClient As "hPachubeFetch"
>>      hPachubeFetch.URL = sUrl
>>      hPachubeFetch.TimeOut = 8
>>      hPachubeFetch.Tag = sFeed & "|0|12" ' feed | datastream | device id
>>      hPachubeFetch.Auth = 1
>>      hPachubeFetch.User = "user"
>>      hPachubeFetch.Password = "password"
>>      hPachubeFetch.Async = True
>>      hPachubeFetch.Get()
>>   Next
>>
>> End
>>
>> Public Sub hPachubeFetch_Finished()
>>
>>     'do stuff
>>
>> End
>>
>> Regards,
>> Ron_2nd.
>>
>
> Hi,
>
> In revision #3708, I have committed a change so that asynchronous HttpClient
> object are automatically kept alive until they are finished.
>
> So that previous code should work as expected now. Can you test that for me
> please?
>
> Thanks in advance.
>
> Regards,
>
> --
> Benoît Minisini
>
> --
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] how to flush a process stream

2011-03-31 Thread Ron
Pls report experiences with the use of the structures.
I want to use them in parts of my project too.

Regards,
Ron.
 Op 1 apr. 2011 00:51 schreef "Kevin Fishburne" <
kevinfishbu...@eightvirtues.com> het volgende:
--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] shell script output controls gambas

2011-04-05 Thread Ron
On 5-4-2011 12:12, Ganesh Kumar wrote:
> Hi Gurus,
>
> I am new to Gambas. I have executed shell script,, the shell script
> output control the decision.
>
> My script
> /
> #! /biin/bash
> host google.com>/dev/null
> if [  $? -eq 0 ];
> then
>echo "Internet connection is UP"
> else
>echo "Internet connection is DOWN"
> fi
> //
>
> When script output controls the decision controls the gambas form.
>
> How to write gambas code.
>
>
> Connection Up meas  ->  Execute another script
>
> Connection Down means ->  skip the current form
>
> Any one help me..
>
> Advance thanks..
> ---
>
> -Ganesh.
>
>

Maybe this helps you, it uses the ping command.
http://domotiga.nl/browser/trunk/DomotiGa/Ping.module

Regards,
Ron_2nd.

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] another extern math problem

2011-05-28 Thread Ron
If you really need to talk to an C++ library you can try to create a
wrapper lib.
Someone made one for my project to be able to use the openzwave
library (C++) from my project Gambas2.

Look here for the code:
http://domotiga.nl/browser/trunk/wrappers/domozwave

You have to make sure that the calls you need to call from Gambas2 are
defined within:

// C style bindings are required since we call these functions from gambas.
extern "C" {

}

But of cource this approach can be way over the top for your case...

Regards,
Ron_2nd.

2011/5/28 Benoît Minisini :
>> Hi,
>> i have another extern math library problem and need your help.
>> i want to use the peakfind from fityk lib.
>> The working C example code looks pretty easy and the c-code and the
>> header file is included in project. Please have a look on the gambas3
>> project and explain what i need to do to get it work.
>> Thank you  wally
>
> Fityk is a C++ library, not a C library. You can only access library written
> in C. There is almost no way to use a C++ library outside of C++.
>
> Regards,
>
> --
> Benoît Minisini
>
> --
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas3 and database connection

2011-05-29 Thread Ron
Running my project with Gambas3 RC1 now.

Always used the database manager from gambas2, I noticed that now you
have a connections folder in the project tree.

How can you manage the database in Gambas3, can find it...

I have a connection defines in my project itself like so


'
' connect to the mysql database
'
Public Function ConnectDatabase() As Boolean

  With hDB
.Type = "mysql"
.Host = sSQLHost
.Login = sSQLUser
.Password = sSQLPass
.Name = sSQLDatabase
.Open
  End With

End


Regards,
Ron_2nd.

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails

2011-05-31 Thread Ron
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
--
make  install-data-hook
make[4]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus/src'

Compiling the gb.dbus project...
gb.dbus
OK
Installing the gb.dbus control icons if needed...
Creating the information files for gb.dbus component...
gb.dbus

make[4]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src'
make[3]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src'
make[2]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src'
make[2]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus'
make[3]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus'
make[2]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus'
make[1]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus'
Making install in comp
make[1]: Entering directory `/home/ron/install/gambas/trunk/comp'
make[2]: Entering directory `/home/ron/install/gambas/trunk/comp'

Running the informer again twice because of dependencies between
information files
gb
gb.cairo
gb.compress
gb.crypt
gb.db
gb.db.mysql
gb.db.odbc
gb.db.postgresql
gb.db.sqlite2
gb.db.sqlite3
gb.dbus
gb.debug
gb.desktop
gb.eval
gb.gtk
gb.gui
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.net
gb.net.curl
gb.net.smtp
gb.opengl
gb.opengl.glsl
gb.opengl.glu
gb.option
gb.pcre
gb.pdf
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.sdl
gb.sdl.sound
gb.signal
gb.v4l
gb.vb
gb.xml
gb.xml.rpc
gb.xml.xslt
gb
gb.cairo
gb.compress
gb.crypt
gb.db
gb.db.mysql
gb.db.odbc
gb.db.postgresql
gb.db.sqlite2
gb.db.sqlite3
gb.dbus
gb.debug
gb.desktop
gb.eval
gb.gtk
gb.gui
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.net
gb.net.curl
gb.net.smtp
gb.opengl
gb.opengl.glsl
gb.opengl.glu
gb.option
gb.pcre
gb.pdf
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.sdl
gb.sdl.sound
gb.signal
gb.v4l
gb.vb
gb.xml
gb.xml.rpc
gb.xml.xslt
Installing the components...
Compiling gb.eval.highlight...
OK
Installing gb.eval.highlight...
Compiling gb.settings...
OK
Installing gb.settings...
Compiling gb.form...
OK
Installing gb.form...
Compiling gb.form.stock...
OK
Installing gb.form.stock...
Compiling gb.form.dialog...
OK
Installing gb.form.dialog...
Compiling gb.form.mdi...
OK
Installing gb.form.mdi...
Compiling gb.db.form...
OK
Installing gb.db.form...
Compiling gb.web...
OK
Installing gb.web...
Compiling gb.report...
OK
Installing gb.report...
Compiling gb.chart...
OK
Installing gb.chart...
Compiling gb.mysql...
OK
Installing gb.mysql...
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/ron/install/gambas/trunk/comp'
make[1]: Leaving directory `/home/ron/install/gambas/trunk/comp'
Making install in app
make[1]: Entering directory `/home/ron/install/gambas/trunk/app'
make[2]: Entering directory `/home/ron/install/gambas/trunk/app'
Installing the development environment...
Compiling gambas3...
OK
Installing gambas3...
Compiling gbs3...
OK
Installing gbs3...
Installing the scripter...
Registering Gambas script mimetype
Registering Gambas server page mimetype
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/ron/install/gambas/trunk/app'
make[1]: Leaving directory `/home/ron/install/gambas/trunk/app'
Making install in examples
make[1]: Entering directory `/home/ron/install/gambas/trunk/examples'
make[2]: Entering directory `/home/ron/install/gambas/trunk/examples'

Installing the gambas examples...
Compiling Automation/DBusExplorer/...
OK
Compiling Basic/Blights/...
OK
Compiling Basic/Collection/...
OK
Compiling Basic/DragNDrop/...
OK
Compiling Basic/Object/...
OK
Compiling Basic/Timer/...
OK
Compiling Control/ArrayOfControls/...
OK
Compiling Control/Embedder/...
OK
Compiling Control/HighlightEditor/...
OK
Compiling Control/TextEdit/...
OK
Compiling Control/TreeView/...
OK
Compiling Control/Wizard/...
OK
Compiling Database/Database/...
OK
Compiling Database/MySQLExample/...
OK
Compiling Database/PictureDatabase/...
OK
Compiling Drawing/AnalogWatch/...
OK
Compiling Drawing/Barcode/...
OK
Compiling Drawing/Chart/...
OK
Compiling Drawing/Clock/...
OK
Compiling Drawing/Gravity/...
OK
Compiling Drawing/GSLSpline/...
OK
Compiling Drawing/OnScreenDisplay/...
OK
Compiling Drawing/Painting/...
OK
Compiling Games/BeastScroll/...
OK
Compiling Games/Concent/...
OK
Compiling Games/DeepSpace/...
OK
Compiling Games/GameOfLife/...
OK
Compiling Games/GNUBoxWorld/...
OK
Compiling Games/Puzzle1To8/...
OK
Compiling Games/RobotFindsKitten/...
OK
Compiling Games/Snake/...
OK
Compiling Games/Solitaire/...
OK
Compiling Image

Re: [Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails

2011-05-31 Thread Ron
Nevermind the screenshot, it was another problem which is already fixed. ;-)

On Tue, May 31, 2011 at 11:55 AM, Ron  wrote:
> Yes that fixed it, thanks.
>
> Regards,
> Ron_2nd.
> 2011/5/31 Benoît Minisini :
>>> ...
>>> ron@laptop-ron ~/install/gambas/trunk $ gambas3
>>> warning: unable to load Qt translation: en_US.UTF-8
>>> CRecentFile.Load.118: #45: File or directory does not exist
>>> 0: CRecentFile.Load.118
>>> 1: Project.Main.266
>>>
>>>
>>> 64bit Mint 11, latest rev trunk
>>> Configure and compile without errors...
>>>
>>> Regards,
>>> Ron_2nd.
>>>
>>
>> It should be fixed in revision #3867.
>>
>> Regards,
>>
>> --
>> Benoît Minisini
>>
>> --
>> Simplify data backup and recovery for your virtual environment with vRanger.
>> Installation's a snap, and flexible recovery options mean your data is safe,
>> secure and there when you need it. Data protection magic?
>> Nope - It's vRanger. Get your free trial download today.
>> http://p.sf.net/sfu/quest-sfdev2dev
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails

2011-05-31 Thread Ron
Some small issues:

This BackColor isn't converted to Gambas3:

If Row Mod 2 Then gvPhoneCalls.Data.BackColor = Color.Background


Maybe these are missing icons: ?

warning: unable to load 16/cancel
warning: unable to load 16/view-hidden

Or it this an Mint thing?

Regards,
Ron_2nd.

On Tue, May 31, 2011 at 11:57 AM, Ron  wrote:
> Nevermind the screenshot, it was another problem which is already fixed. ;-)
>
> On Tue, May 31, 2011 at 11:55 AM, Ron  wrote:
>> Yes that fixed it, thanks.
>>
>> Regards,
>> Ron_2nd.
>> 2011/5/31 Benoît Minisini :
>>>> ...
>>>> ron@laptop-ron ~/install/gambas/trunk $ gambas3
>>>> warning: unable to load Qt translation: en_US.UTF-8
>>>> CRecentFile.Load.118: #45: File or directory does not exist
>>>> 0: CRecentFile.Load.118
>>>> 1: Project.Main.266
>>>>
>>>>
>>>> 64bit Mint 11, latest rev trunk
>>>> Configure and compile without errors...
>>>>
>>>> Regards,
>>>> Ron_2nd.
>>>>
>>>
>>> It should be fixed in revision #3867.
>>>
>>> Regards,
>>>
>>> --
>>> Benoît Minisini
>>>
>>> --
>>> Simplify data backup and recovery for your virtual environment with vRanger.
>>> Installation's a snap, and flexible recovery options mean your data is safe,
>>> secure and there when you need it. Data protection magic?
>>> Nope - It's vRanger. Get your free trial download today.
>>> http://p.sf.net/sfu/quest-sfdev2dev
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails

2011-05-31 Thread Ron
Running a compiled cli project in Gambas3 also seem to behave
differently that running it from IDE.

Sending e-mail seem to fail reguarly, while when run from IDE I didn't
had that yet.

2011/05/31 13:22:55 The error was 'Connection to mailserver failed
while connecting to SMTP server (SMTP error code #0)' [-1] at
SmtpClient.Send.66'.

Maybe same cause as what Kevin (i believe) was reporting about udp problems...


Regards,
Ron_2nd.

On Tue, May 31, 2011 at 11:27 AM, Ron  wrote:
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> --
> make  install-data-hook
> make[4]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus/src'
>
> Compiling the gb.dbus project...
> gb.dbus
> OK
> Installing the gb.dbus control icons if needed...
> Creating the information files for gb.dbus component...
> gb.dbus
>
> make[4]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src'
> make[3]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src'
> make[2]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src'
> make[2]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus'
> make[3]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus'
> make[3]: Nothing to be done for `install-exec-am'.
> make[3]: Nothing to be done for `install-data-am'.
> make[3]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus'
> make[2]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus'
> make[1]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus'
> Making install in comp
> make[1]: Entering directory `/home/ron/install/gambas/trunk/comp'
> make[2]: Entering directory `/home/ron/install/gambas/trunk/comp'
>
> Running the informer again twice because of dependencies between
> information files
> gb
> gb.cairo
> gb.compress
> gb.crypt
> gb.db
> gb.db.mysql
> gb.db.odbc
> gb.db.postgresql
> gb.db.sqlite2
> gb.db.sqlite3
> gb.dbus
> gb.debug
> gb.desktop
> gb.eval
> gb.gtk
> gb.gui
> gb.image
> gb.image.effect
> gb.image.imlib
> gb.image.io
> gb.net
> gb.net.curl
> gb.net.smtp
> gb.opengl
> gb.opengl.glsl
> gb.opengl.glu
> gb.option
> gb.pcre
> gb.pdf
> gb.qt4
> gb.qt4.ext
> gb.qt4.opengl
> gb.qt4.webkit
> gb.sdl
> gb.sdl.sound
> gb.signal
> gb.v4l
> gb.vb
> gb.xml
> gb.xml.rpc
> gb.xml.xslt
> gb
> gb.cairo
> gb.compress
> gb.crypt
> gb.db
> gb.db.mysql
> gb.db.odbc
> gb.db.postgresql
> gb.db.sqlite2
> gb.db.sqlite3
> gb.dbus
> gb.debug
> gb.desktop
> gb.eval
> gb.gtk
> gb.gui
> gb.image
> gb.image.effect
> gb.image.imlib
> gb.image.io
> gb.net
> gb.net.curl
> gb.net.smtp
> gb.opengl
> gb.opengl.glsl
> gb.opengl.glu
> gb.option
> gb.pcre
> gb.pdf
> gb.qt4
> gb.qt4.ext
> gb.qt4.opengl
> gb.qt4.webkit
> gb.sdl
> gb.sdl.sound
> gb.signal
> gb.v4l
> gb.vb
> gb.xml
> gb.xml.rpc
> gb.xml.xslt
> Installing the components...
> Compiling gb.eval.highlight...
> OK
> Installing gb.eval.highlight...
> Compiling gb.settings...
> OK
> Installing gb.settings...
> Compiling gb.form...
> OK
> Installing gb.form...
> Compiling gb.form.stock...
> OK
> Installing gb.form.stock...
> Compiling gb.form.dialog...
> OK
> Installing gb.form.dialog...
> Compiling gb.form.mdi...
> OK
> Installing gb.form.mdi...
> Compiling gb.db.form...
> OK
> Installing gb.db.form...
> Compiling gb.web...
> OK
> Installing gb.web...
> Compiling gb.report...
> OK
> Installing gb.report...
> Compiling gb.chart...
> OK
> Installing gb.chart...
> Compiling gb.mysql...
> OK
> Installing gb.mysql...
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory `/home/ron/install/gambas/trunk/comp'
> make[1]: Leaving directory `/home/ron/install/gambas/trunk/comp'
> Making install in app
> make[1]: Entering directory `/home/ron/install/gambas/trunk/app'
> make[2]: Entering directory `/home/ron/install/gambas/trunk/app'
> Installing the development environment...
> Compiling gambas3...
> OK
> Installing gambas3...
> Compiling gbs3...
> OK
> Installing gbs3...
> Installing the scripter...
> Registering Gambas script mimetype
> Registering Gambas server page mimetype
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory `/home/ron/install/gambas/trunk/app'
> make[1]: Leaving directory `/home/ron/install/gambas/trunk/app'
> Making install

Re: [Gambas-user] Google Chart Api

2011-07-31 Thread Ron
Yes
Op 1 aug. 2011 06:21 schreef "Andrea Bertini"  het
volgende:
> Is anyone interested how to use Google Api to show java chart in Gambas?
>
> Andrea BERTINI
> Rome-Italy
>
--
> Got Input? Slashdot Needs You.
> Take our quick survey online. Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Making code pretty

2011-08-04 Thread Ron
Empty lines yes, keep them!

But Kevin and I mean remove spaces on empty lines.

Looks like this:

  Dim sTest as string
... <- remove these
  sTest = "this is a test"

  ' here above normal empty line, without spaces on it.

Regards,
Ron_2nd.

2011/8/4 Fabien Bodard :
> 2011/8/4 Kevin Fishburne :
>> On 08/04/2011 11:43 AM, zachsmith...@gmail.com wrote:
>>> On 8/4/2011 8:22 AM, Benoît Minisini wrote:
 Hi there,

 I'd like to add some options to the "making code pretty" feature in the 
 IDE.
>>> I think that an option to sort procedures by name would be helpful.
>>
>> That would be awesome. Also removing spaces on otherwise empty lines and
>> removing spaces at the end of lines.
> empty lines can be usefull to keep a readable code
>>
>> --
>> Kevin Fishburne
>> Eight Virtues
>> www: http://sales.eightvirtues.com
>> e-mail: sa...@eightvirtues.com
>> phone: (770) 853-6271
>>
>>
>> --
>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>> The must-attend event for mobile developers. Connect with experts.
>> Get tools for creating Super Apps. See the latest technologies.
>> Sessions, hands-on labs, demos & much more. Register early & save!
>> http://p.sf.net/sfu/rim-blackberry-1
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
>
> --
> Fabien Bodard
>
> --
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Making code pretty

2011-08-04 Thread Ron
> That would be awesome. Also removing spaces on otherwise empty lines and
> removing spaces at the end of lines.

Yes a +1 from me on this one too, I hate floating spaces, and always
have the urge to remove them.

Regards,
Ron_2nd.

2011/8/4 Kevin Fishburne :
> On 08/04/2011 11:43 AM, zachsmith...@gmail.com wrote:
>> On 8/4/2011 8:22 AM, Benoît Minisini wrote:
>>> Hi there,
>>>
>>> I'd like to add some options to the "making code pretty" feature in the IDE.
>> I think that an option to sort procedures by name would be helpful.
>
> That would be awesome. Also removing spaces on otherwise empty lines and
> removing spaces at the end of lines.
>
> --
> Kevin Fishburne
> Eight Virtues
> www: http://sales.eightvirtues.com
> e-mail: sa...@eightvirtues.com
> phone: (770) 853-6271
>
>
> --
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Making code pretty

2011-08-04 Thread Ron
Yes the lines must stay, but not the spaces, see the dots in the attachment...

Regards,
Ron_2nd.
2011/8/4 Fabien Bodard :
> i alway keep a blank line after var declaration
>
> 2011/8/4 Ron :
>>> That would be awesome. Also removing spaces on otherwise empty lines and
>>> removing spaces at the end of lines.
>>
>> Yes a +1 from me on this one too, I hate floating spaces, and always
>> have the urge to remove them.
>>
>> Regards,
>> Ron_2nd.
>>
>> 2011/8/4 Kevin Fishburne :
>>> On 08/04/2011 11:43 AM, zachsmith...@gmail.com wrote:
>>>> On 8/4/2011 8:22 AM, Benoît Minisini wrote:
>>>>> Hi there,
>>>>>
>>>>> I'd like to add some options to the "making code pretty" feature in the 
>>>>> IDE.
>>>> I think that an option to sort procedures by name would be helpful.
>>>
>>> That would be awesome. Also removing spaces on otherwise empty lines and
>>> removing spaces at the end of lines.
>>>
>>> --
>>> Kevin Fishburne
>>> Eight Virtues
>>> www: http://sales.eightvirtues.com
>>> e-mail: sa...@eightvirtues.com
>>> phone: (770) 853-6271
>>>
>>>
>>> --
>>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>>> The must-attend event for mobile developers. Connect with experts.
>>> Get tools for creating Super Apps. See the latest technologies.
>>> Sessions, hands-on labs, demos & much more. Register early & save!
>>> http://p.sf.net/sfu/rim-blackberry-1
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>> --
>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>> The must-attend event for mobile developers. Connect with experts.
>> Get tools for creating Super Apps. See the latest technologies.
>> Sessions, hands-on labs, demos & much more. Register early & save!
>> http://p.sf.net/sfu/rim-blackberry-1
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
>
> --
> Fabien Bodard
>
> --
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
<>--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Making code pretty

2011-08-05 Thread Ron
It's not only eye candy, it's also a practical thing.
If you have a bigger public project under svn, you don't want that the
removal of one isolated space character on a empty line somewhere generates
a commit change.

So I  remove them all in my projects while writing code.

Regards,
Ron_2nd.

'Pretty' is in the eye of the beholder. I write my code so it is easy to
read and easy see the structure of the code, spaces and empty lines are
therefore used extensively. Since the compiled code is not affected by them
what's the problem? Ron   wrote:

Empty lines yes, keep them! But Kevin and I mean remove spaces on empty
lines. Looks like this: Dim sTest as string ... <- remove these sTest =
"this is a test" ' here above normal empty line, without spaces on it.
Regards, Ron_2nd. 2011/8/4 Fabien Bodard
:


 2011/8/4 Kevin Fishburne
:


 On 08/04/2011 11:43 AM, zachsmith...@gmail.com wrote:

  On 8/4/2011 8:22 AM, Benoît Minisini wrote:

  Hi there, I'd like to add some options to the "making code pretty" feature
in the IDE.


I think that an option to sort procedures by name would be helpful.


That would be awesome. Also removing spaces on otherwise empty lines and
removing spaces at the end of lines.


empty lines can be usefull to keep a readable code

 -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail:
sa...@eightvirtues.com phone: (770) 853-6271
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The
must-attend event for mobile developers. Connect with experts. Get tools for
creating Super Apps. See the latest technologies. Sessions, hands-on labs,
demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


-- Fabien Bodard
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The
must-attend event for mobile developers. Connect with experts. Get tools for
creating Super Apps. See the latest technologies. Sessions, hands-on labs,
demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The
must-attend event for mobile developers. Connect with experts. Get tools for
creating Super Apps. See the latest technologies. Sessions, hands-on labs,
demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The
must-attend event for mobile developers. Connect with experts. Get tools for
creating Super Apps. See the latest technologies. Sessions, hands-on labs,
demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 2 and mysql bin-log

2011-08-31 Thread Ron
On 30-8-2011 21:18, Benoît Minisini wrote:
>> I need that the "insert" statement to be logged in the binary log.
>>
> I have no idea why it is not logged. I didn't know there was a "mysql binary
> log", and I don't know how it works.
>
> Try to set 'DB.Debug = True' to see what SQL queries are sent to the SQL
> client library.
>
> Regards,
>

The advantage for having your mysql server run in binary log mode, is 
that you can make live incremental backups.

After enabling, you can simply do:
rsync -a /var/lib/mysql/-bin* /backup/location

Regards,
Ron_2nd.

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas2 to gambas3 conversion - some problems

2011-09-04 Thread Ron
Yep, here too,conversion from gambas2 to 3 is broken.

Running r4082

It starts converting the project and then halts with this error:

Cannot open project file:
/home/ron/domotiga/convert/DomotiGaServer

File or directory does not exist
Project.Open.511

No wonder, because if you look at the last directory name it's renamed to
DomotiGaServer~

Regards,
Ron_2nd.

2011/9/4 Bruce Bruen 

> Hi Benoît and everyone,
>
> I have some misgivings about how gambas3 is converting or "porting"
> gambas2 projects.  I'm talking about the way it is renaming the old
> project and creating a new project with the same name. This can have a
> result of breaking stable "production" gambas2 applications at worst and
> annoying one or more developers at least.
>
> From least to worst, the following scenarios arise:
>
> 1) the converter leaves the backup project ("MyProject~") in a locked
> state.  When the developer goes to open the backup project in gambas2
> they receive the "This project seems to be already opened" message.
> Colin Confused, the developer, who has multiple instances of gambas2
> running is annoyed because he has to make a decision as to whether it
> really is open somewhere (maybe even by another developer on another
> machine) or whether they should take the risk and open it anyway.  I was
> going to raise a bug about this one, but some more thinking and testing
> led to the following.  Analysis - "annoying".
>
> 2) the converter ignores the existence of the .lock file in the gambas2
> project and converts it anyway, thus if the project is open in gambas2
> somewhere the following could occur.  Steve Stable, the support
> programmer for gambas2 has MyProject open in gambas2 and has spent
> several hours finding and fixing an obscure issue and is just about to
> compile and test.  Fanny Frantic, the new junior programmer, opens
> MyProject in gambas3 and says yes to the convert question.  Gambas3 then
> renames (I presume) MyProject to MyProject~ and copies and converts the
> code.  Steve Stable then presses F5 whereupon gambas2 crashes and all
> his work is lost (because the file system has been altered and his
> project now points to the wrong place). Analysis - could result in Steve
> causing serious physical harm to Fanny, therefore "dangerous".
>
> 3) converting existing gambas2 components will break the gambas2 user
> projects that use them. Bruce Ballistic (senior programmer, head chef
> and dog washer) who is normally very careful to copy his gambas2
> projects to a new gambas3 directory structure, accidentally opens the
> wrong project. He then makes major changes to the component and
> recompiles it.  The existing ("production") gambas2 applications will
> now fail as the symbolic links in .local/lib and .local/share point to
> the gambas3 component.  Analysis - could result in Bruce muttering "If I
> ever get my hands on that Minisini character, ...", therefore "extremely
> dangerous".
>
> 4) I think (I haven't tested this) that there could be issues
> with .config/gambas as well???
>
> In my opinion the converter should insist on the user entering a new
> name for the gambas3 project and leave the gambas2 structures alone, but
> at the very least it should be alerting the user in the strongest
> possible way as to which project it is going to convert and observe any
> existing .lock files.
>
> Please consider.
>
> regards
> Bruce "where's my shotgun" Ballistic
> Steve "don't call me" Stable,
> Fanny "why are you hitting me Steve" Frantic, and
> Colin "??" Confused
>
>
>
> --
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Cannot open gambas3 project with r4082

2011-09-04 Thread Ron
If I want to open the gambas3 project with r4082 (to correct bug with
converting project) I cannot open it.
So I have a chicken and egg problem here.
I have this with every default project.

Cannot open project file :
/home/ron/install/gambas/trunk/app/src/gambas3

File or directory does not exist
VersionControl.CheckPaths.215

I also see this:

RC3 is certainly not release ready, at least not in my environment:

[System]
OperatingSystem=Linux
KernelRelease=2.6.38-11-generic
Architecture=x86_64
Memory=3787836 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 11.04"
Desktop=Gnome

[Gambas 2]
Version=2.23.1
Path=/usr/local/bin/gbx2

[Gambas 3]
Version=2.99.3
Path=/usr/local/bin/gbx3

[Libraries]
Qt4=libQtCore.so.4.7.2
GTK+=libgtk-x11-2.0.so.0.2400.4

Regards,
Ron_2nd
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Cannot open gambas3 project with r4082

2011-09-04 Thread Ron
I also see this:
FileView.RefreshView.267: FileView.RefreshView.229: File or directory does
not exist


2011/9/4 Ron 

> If I want to open the gambas3 project with r4082 (to correct bug with
> converting project) I cannot open it.
> So I have a chicken and egg problem here.
> I have this with every default project.
>
> Cannot open project file :
> /home/ron/install/gambas/trunk/app/src/gambas3
>
> File or directory does not exist
> VersionControl.CheckPaths.215
>
> I also see this:
>
> RC3 is certainly not release ready, at least not in my environment:
>
> [System]
> OperatingSystem=Linux
> KernelRelease=2.6.38-11-generic
> Architecture=x86_64
> Memory=3787836 kB
> DistributionVendor=Ubuntu
> DistributionRelease="Ubuntu 11.04"
> Desktop=Gnome
>
> [Gambas 2]
> Version=2.23.1
> Path=/usr/local/bin/gbx2
>
> [Gambas 3]
> Version=2.99.3
> Path=/usr/local/bin/gbx3
>
> [Libraries]
> Qt4=libQtCore.so.4.7.2
> GTK+=libgtk-x11-2.0.so.0.2400.4
>
> Regards,
> Ron_2nd
>
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Cannot open gambas3 project with r4082

2011-09-04 Thread Ron
I'm running gambas2 on it for some time without any problems.
I'm using it via NX but that never caused any problems.

ron@ron-desktop:~$ which sh
/bin/sh

Dunno...

2011/9/4 Benoît Minisini 

> > If I want to open the gambas3 project with r4082 (to correct bug with
> > converting project) I cannot open it.
> > So I have a chicken and egg problem here.
> > I have this with every default project.
> >
> > Cannot open project file :
> > /home/ron/install/gambas/trunk/app/src/gambas3
> >
> > File or directory does not exist
> > VersionControl.CheckPaths.215
> >
> > I also see this:
> >
> > RC3 is certainly not release ready, at least not in my environment:
> >
> > [System]
> > OperatingSystem=Linux
> > KernelRelease=2.6.38-11-generic
> > Architecture=x86_64
> > Memory=3787836 kB
> > DistributionVendor=Ubuntu
> > DistributionRelease="Ubuntu 11.04"
> > Desktop=Gnome
> >
> > [Gambas 2]
> > Version=2.23.1
> > Path=/usr/local/bin/gbx2
> >
> > [Gambas 3]
> > Version=2.99.3
> > Path=/usr/local/bin/gbx3
> >
> > [Libraries]
> > Qt4=libQtCore.so.4.7.2
> > GTK+=libgtk-x11-2.0.so.0.2400.4
> >
> > Regards,
> > Ron_2nd
>
> There is something strange on your system, because that error on
> 'VersionControl.CheckPaths.215' and 'Project.OpenFile.511' are when running
> the Shell command, as if the interpreter couldn't find the "sh" shell.
> Which
> should be theoritically impossible...
>
> --
> Benoît Minisini
>
>
> --
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] MySQL socket path

2011-09-16 Thread Ron
I cannot seem to find a way to set the mysql socket path.
Nor in gambas3 gb.mysql nor in gambas2 gb.db component.

How can I do that?

See here for more related info when using localhost as host.
http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html
As far as i can see this should be a client option.

Regards,
Ron_2nd.

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Eval error

2011-09-16 Thread Ron
+1

I'm using Eval() in my gambas2 project too, to check event conditions
(domotica lamp on events that is)

Like this for example:
Eval(Var_Sunset = Format(hour(Now()),"0#") & ":" &
Format(minute(DateAdd(now(), gb.Minute, 30)),"0#"))

Some people report weird behavior with other code...

I'm sure this is due to the same bug..

Regards,
Ron_2nd.

2011/9/16 JUHASZ Robert :
> ;-(
>
> It would be great to fix it in gambas2, too if possible. At the moment I
> don't want to move to gambas3 my production softwares because it is
> still RC (and I suppose that I should learn and work a little to get my
> programs working again).
>
> Robi
>
> -Original Message-
> From: Benoît Minisini 
> Reply-to: mailing list for gambas users
> 
> To: mailing list for gambas users 
> Subject: Re: [Gambas-user] Eval error
> Date: Fri, 16 Sep 2011 19:03:06 +0200
>
>
>> Hello Benoit,
>>
>> Finally I succeeded to install the latest version of gambas2 but I
>> haven't succeeded with the Eval function.
>>
>> 1. I installed a brand new ubuntu 10.04 in virtualbox, performed the
>> updates and installed gambas2 from source.
>> Eval works fine under 10.04 but the .deb package created and installed
>> on an 11.04 machine failed when using Eval.
>>
>> 2. Today I reinstalled my ubuntu 11.04 (no virtualbox, this is the main
>> system on my computer), performed the updates and installed gambas2 from
>> source.
>> The Eval function works for integers but not for floats: Eval(3*2)=6,
>> Eval(3/2)=1.5, Eval(3*2.1) fails, Eval(3/2.1) fails.
>>
>> I don't know how to check the revision but it supposed to be the latest
>> one:
>> downloaded from here: http://gambas.sourceforge.net/en/main.html
>> instructions followed as written in the Compilation & Installation /
>> Ubuntu section (note that the ./reconf-all command is missing in the
>> ubuntu instructions but written in the general instructions and seems to
>> be needed).
>> I also saw links to .deb installation packages of Gambas here bot both
>> links are dead.
>>
>>
>> Can you please tell me how to continue?
>>
>> Thanks,
>> Robi
>>
>
> It actually has been fixed in Gambas 3, not in Gambas 2. :-/
>
> --
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> http://p.sf.net/sfu/rim-devcon-copy2
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Eval error

2011-09-17 Thread Ron
Robi, you need to use the version from svn, not the tarball.
You can check your svn revision with svn info.

These are my results (I didn't have the bugs you have, but I know some
of my users are)

Ubuntu Natty 64Bits with rev 4129

PUBLIC SUB Main()

PRINT Eval("3 * 2")
PRINT Eval("3 - 2")
PRINT Eval("3 / 2")
PRINT Eval("3*2.1")
PRINT Eval("3/2.1")

END
6
1
1.5
6.3
1.428571428571

Ubuntu Natty 64Bits with rev 4131:
6
1
1.5
6.3
1.428571428571

These are also still working ok
PRINT Eval("Var_Sunset = Format(hour(Now()),"0#") & ":" &
Format(minute(DateAdd(now(), gb.Minute, 30)),"0#")")
=FALSE
Print Eval("Format(hour(Now()),"0#")")
=12

Regards,
Ron.
2011/9/17 JUHASZ Robert :
> Hello,
>
> I don't know how to check the revision but I downloaded the source
> yesterday afternoon (4PM CET) so it should be the latest one.
>
> Robi
>
> -Original Message-
> From: Benoît Minisini 
> Reply-to: mailing list for gambas users
> 
> To: mailing list for gambas users 
> Subject: Re: [Gambas-user] Eval error
> Date: Sat, 17 Sep 2011 10:47:58 +0200
>
>
>> Merci Benoit!
>> FYI: my system is 32 bit version (ignore if not relevant).
>>
>> Robi
>>
>
> The bug should have been fixed in revision #4131.
>
> Please confirm, as I thought only 64 bits systems were affected.
>
> Regards,
>
> --
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> http://p.sf.net/sfu/rim-devcon-copy2
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas2 error

2011-09-18 Thread Ron
FWIW,

I just deleted a gridview from a tabstrip in the ide and got this:
Gambas2 latest rev. Ubuntu Natty 64 bit, QT

SetProperty: TabStrip.Count: CControl.SetProperty.475: Tab is not empty
FForm.GetChildren.490: #29: Invalid object
0: FForm.GetChildren.490
1: CControl.Delete.684
2: FForm.DeleteSelection.1307
3: FForm.Action_Activate.2491
4: Action.Raise.191
Mutex destroy failure: Device or resource busy

Regards,
Ron_2nd.

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream....

2011-09-18 Thread Ron
Dont you have some c code to look at from a similar alsa using prog? Or one
of its utils?
Op 18 sep. 2011 13:25 schreef "Ian Haywood"  het
volgende:
> On Sun, Sep 18, 2011 at 8:56 PM, Ru Vuott  wrote:
>> Hello,
>>
>> thank you for your statement.
>
>>   hfile = OPEN "/proc/self/fd/num" for Read Watch
>>
>> Where " num " is a number. Well, I tried the little program changing the
number "num":
>> first with zero, then with 1, then with 2, and so on... until
approximately 60.
> why wouldn't you use the fd number returned from the ALSA library:
> isn't that the whole point?
>
> Ian
>
>
--
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> http://p.sf.net/sfu/rim-devcon-copy2
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] perl unpack

2011-09-19 Thread Ron
I'm trying to decode this with gambas, no luck, anyone has an idea?

#!/usr/bin/perl
print pack('u', "send:");

%http://p.sf.net/sfu/rim-devcon-copy1 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] perl unpack

2011-09-19 Thread Ron
quot;, "H", "I", "J", "K", "L",
> "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
> ==
>
> Oh and just for fun, here's an encode function too... you will notice
> that I encode "send:" CORRECTLY... LOL!
>
> ==
> Private Function encodeUU(source As Byte[]) As String
>
>  Dim idx, idy, idxThree As Integer
>  Dim result As String
>  Dim aByte As Byte
>  Dim aBinChar, binCharGroup As String
>  Dim threeChars As Byte[]
>  binCharGroup = ""
>  result = result & Chr$(source.Count + 32)
>  For idx = 0 To source.Max
>    aByte = source[idx]
>    ' Convert the byte to exactly 8 digits of binary
>    ' so for e.g. pad 1 to become 0001
>    aBinChar = Right$("" & intToBase(aByte, BASE_BINARY), 8)
>    Print "aByte: " & aByte & " abinChar: " & aBinChar
>    ' Add bytes together to make blocks of 3 8-bit characters
>    binCharGroup = binCharGroup & aBinChar
>    ' Pad if we're at the end of the string and don't have a full 3-char
> block
>    If idx = source.Max Then
>      binCharGroup = Left$(binCharGroup & "",
> 24)
>    Endif
>    If Len(binCharGroup) = 24 Then
>      Print binCharGroup
>      ' Now treat the 3 blocks of 8 bits like 4 blocks of 6 bits
>      For idy = 1 To 4
>        Print "char: " & idy & " has value: " & (toInt(Mid
> $(binCharGroup, 1 + ((idy - 1) * 6), 6), BASE_BINARY) + 32)
>        ' Append the Chr$ of the value of the 6-bit byte + 32 to our
> result
>        result = result & Chr$(toInt(Mid$(binCharGroup, 1 + ((idy - 1) *
> 6), 6), BASE_BINARY) + 32)
>      Next
>      binCharGroup = ""
>    Endif
>  Next
>  Return result
>
> End
> ==
>
> Kind regards,
> Caveat
>
> On Mon, 2011-09-19 at 13:24 +0200, Ron wrote:
>> I'm trying to decode this with gambas, no luck, anyone has an idea?
>>
>> #!/usr/bin/perl
>> print pack('u', "send:");
>>
>> %>
>> So decoding %>
>> The pack 'u' function does uuencoding  but all vb alike code doesn't
>> reproduce the correct result, or struggles with the `...
>>
>>
>> Thanks in advance!!
>>
>> Regards,
>> Ron_2nd.
>>
>> --
>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>> Learn about the latest advances in developing for the
>> BlackBerry® mobile platform with sessions, labs & more.
>> See new tools and technologies. Register for BlackBerry® DevCon today!
>> http://p.sf.net/sfu/rim-devcon-copy1
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> --
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] perl unpack

2011-09-20 Thread Ron
Hi Caveat,

I'm using the routine only to decode a small string sent in a telnet socket app.

I have changed it a bit so it doesn't return byte[] but a string instead.

FOR iIdy = 1 TO 3
  IF iPtr < iLengthUU
' converts each block of 8 bits to its decimal value and
assigns to the output byte array
sResult &= Chr(ToInt(Mid$(sBinFour, 1 + ((iIdy - 1) * 8), 8), 2))
INC iPtr
  ENDIF
NEXT

And seems to work ok for my purpose!
Some info: I use a perl script to report web visits (it parses apache
logs) it sends results over a telnet socket to my main project, this
script comes from the misterhouse project, so I wanted to create a
telnet socket interface for it, so other script can be used later.

I will see if I can build in some more checks you suggested.

Regards,
Ron.

2011/9/20 Caveat :
> Hi Ron_2nd
>
> Thanks for the compliment but I'm not sure it's project ready... the
> idea was just to show the principles.
>
> I doubt this is either fast, efficient, or bug free!
>
> I've assumed that everybody is perfect and that I'll never get any
> invalid uuencoded data (bytes out of range, wrong size information,
> missing padding).  You may want to add some kind of error checking here
> and there.
>
> Encoding will need a check on the size of the byte[] you're trying to
> encode and will need to break the data up into smaller chunks for
> serious amounts of data.  Conventionally, uuencoded data lines are 'M'
> long (32+45 = ascii 77 or 'M'), until the last line which may of course
> be shorter.  If you don't need to encode anything, then you're fine
> here.
>
> You can remove the declarations of the Integer threeIdx and the Byte[]
> threeChars from encodeUU (they're hangovers from when the routine did
> base64 encoding).  Do you need base64 routines too? :-)
>
> The decoding could well be incorporated into a framework that works on a
> line by line basis, so you can decode a whole file if needed.  Then you
> can receive binary files over an ascii connection.  You might need some
> extra code to deal with the file header information (and something
> similar for encoding but then writing the header, if you're going to do
> whole files).
>
> The approach of turning everything into strings of binary digits (that's
> the intToBase(number, BASE_BINARY) call) and bolting it all together as
> strings is fine from the perspective of seeing how it all works but for
> speed you might want to switch to a more mathematical approach using
> multiplication or bitwise operators.
>
> The basic principle would be something like (for decoding)...
>
> %
> You have 60 (<), 86 (V), 53 (5), 78 (N) in the first 4 bytes of encoded
> data (after the length byte, here it's % = Chr$(37) --> 37 -32 = 5)
>
> Take (60-32)x64x64x64 = 7340032
> Take (86-32)x64x64    =  221184
> Take (53-32)x64       =    1344
> Take (78-32)x1        =      46
>
> Total                 = 7562606
>
> This is the number that sequence of four six bit 'bytes' represents.
> (Note: Use 64 as your multiplier/divider for a 6-bit byte, 128 for a
> 7-bit byte and the familiar(?) 256 for an 8-bit byte).
>
> Now we need to break the 4 6-bit bytes into 3 8-bit bytes... so we kind
> of do the reverse, dividing first by 65536 (256x256), then 256, then
> 1...
>
> 7562606 / 65536   = 115 rem 25966   (s)
> 25966 / 256       = 101 rem 110     (e)
> 110 / 1           = 110             (n)
>
> So reading downwards, you see 115, 101, 110... which is, of course, s...
> e... n...
>
> You'll have another 4 bytes (9#H`) of 6-bit to decode, but you only need
> to get 2 8-bit bytes out of it...(you know that from the length byte,
> it's 5 and you already decoded 3 characters).
>
> 25x64x64x64 = 6553600
> 3x64x64     =   12288
> 40x64       =    2560
> 64x1        =      64
>
> So 6568512 / 65536 = 100 rem 14912    (d)
> 14912 / 256        = 58 rem 64        (:)
>
> But then we stop after "d:" as we have all 5 characters... so the last
> 6-bit byte has no impact on the final decoded string (we do nothing with
> the last rem 64, so it could be rem 56 or rem 35 or rem anything), it's
> just padding and can be ` like perl uses or space (most people use
> space)... but it can be any character.  Try it with the decode % == %
> As mentioned above, you could even do some clever bit manipulations with
> AND, OR, XOR etc. but it's too early in the morning for me to work that
> one out, perhaps I can leave that as an exercise for the reader...;-)
>
> Kind regards,
> Caveat
>
> On Tue, 2011-09-20 at 07:42 +0200, Ron wrote:
>> Great

Re: [Gambas-user] Ubuntu 11.10 64 - Build 4200

2011-10-16 Thread Ron
NX isn't working anymore with 11.10's new GUI, even in gnome fallback it
doesn't work.
Either you don't get a menu, or the complete screens are grabled

Also it becomes slower each new version too.

Time to look for a new distro... was a Ubuntu user for years, but it seems
it has come to an end.

Regards,
Ron_2nd.

2011/10/16 John Spikowski 

> On Sun, 2011-10-16 at 00:15 +0200, Benoît Minisini wrote:
> > Le 14/10/2011 22:55, John Spikowski a écrit :
> > > I upgraded to Ubuntu 11.10 64 bit and just compiled build 4200 without
> > > issue. (limited testing - no compile errors)
> > >
> > > This release updated the Linux kernel to 3.0.0-12 and Gtk to 3. I not
> > > using the Unity shell and reverted back to classic as much as possible.
> > >
> > > Make sure you reserve about 5 hours to update a 11.04 system. :-(
> > >
> > >
> >
> > I have finally finished my upgrade to Ubuntu 11.10 too.
>
> > So, now,the main philosophical question about all main Linux desktops is:
> >
> > W...
> >
> > T..
> >
> > F...
> >
> > !!
> >
> > Should we invent some conspiration theory?
> >
> > Did Microsoft paid some KDE and Gnome developers to create such a
> > bloated useless piece of garbage?
>
> I feel your pain. Why they didn't create a mobile version of Ubuntu is
> beyond me. Why force silly interfaces on people that have been happy for
> years with the stability and flow that makes Linux what it is and why I
> switched from Windows.
>
>
>
> --
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] TextEdit and linefeeds

2011-11-06 Thread Ron
Hi all,

In my project I replaced the txtArea for readlonly TextEdit objects so I
can color the text I want to emphasize, this works good.

But how can I just do a single line wrap, until now I only got a blank line
in between lines, or all lines concatenated together ;-(

It must be something simple, see attached Gambas2 object to see what I mean.

Thanks for any pointers in the right direction...

Regards,
Ron_2nd,


TextEditTest-0.0.1.tar.gz
Description: GNU Zip compressed data
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] TextEdit and linefeeds

2011-11-06 Thread Ron
I just want it to display the lines without blank the lines in between, see
screenshot.
Your code doesn't do it either... why??
A TextArea does it flawless with the same code.

If I leave out the \n in my code, it prints all lines together, if I only
add a \r same,  again...

Regards,
Ron_2nd.

2011/11/6 Fabien Bodard 

> I not really understand what you want ... :/
> ' display text in mainlog textarea
> '
> PUBLIC SUB WriteLog(sText AS String, OPTIONAL bStrip AS Boolean)
>
>  IF NOT bStrip THEN sText &= ""
>
>  sText = Format$(Now, "/mm/dd hh:nn:ss") & " " & sText
>  FMain.txtMainLog.EnsureVisible
>  FMain.txtMainLog.Text &= sText
>  PRINT sText;
>
> END
>
> 2011/11/6 Ron :
> > Hi all,
> >
> > In my project I replaced the txtArea for readlonly TextEdit objects so I
> > can color the text I want to emphasize, this works good.
> >
> > But how can I just do a single line wrap, until now I only got a blank
> line
> > in between lines, or all lines concatenated together ;-(
> >
> > It must be something simple, see attached Gambas2 object to see what I
> mean.
> >
> > Thanks for any pointers in the right direction...
> >
> > Regards,
> > Ron_2nd,
> >
> >
> --
> > RSA(R) Conference 2012
> > Save $700 by Nov 18
> > Register now
> > http://p.sf.net/sfu/rsa-sfdev2dev1
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
>
>
>
> --
> Fabien Bodard
>
>
> --
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
<>--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] TextEdit and linefeeds

2011-11-06 Thread Ron
I want to use it as a logview window. I did that with textareas until now
but i want to be able to color lines based on error level.
So im not reading in a file to display, i want to add lines or parts of
text to it while my program runs.
Regards,
Ron_2nd
Op 6 nov. 2011 22:18 schreef "richard terry"  het
volgende:

> On Sunday 06 November 2011 21:22:54 Ron wrote:
> > Hi all,
> >
> > In my project I replaced the txtArea for readlonly TextEdit objects so I
> > can color the text I want to emphasize, this works good.
> >
> > But how can I just do a single line wrap, until now I only got a blank
> line
> > in between lines, or all lines concatenated together ;-(
> >
> > It must be something simple, see attached Gambas2 object to see what I
> >  mean.
> >
> > Thanks for any pointers in the right direction...
> >
> > Regards,
> > Ron_2nd,
> >
> Hi
>
> I've read the thread and will take a look at your project - I've very
> sucessfully used the textEdit in my medical records project so have quite a
> bit of experience fiddling with it.
>
> Have you examined the underlying html it generates? It tends to be a bit
> weird. I seem to remember that when we save the html back to the database
> that
> Ian Haywood wrote some reg-ex expressions to strip some of the line feeds
> and
> associated crud.
>
> Will try and find time to take a look.
>
> richard
>
>
> --
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] something to do

2011-11-07 Thread Ron
Maybe I have a nice testcase, I need an gambas app which imports a csv file
into an sql table, and a creates monthly billing report for set of
originating numbers from another table... so a small billing app...

We now get one big csv with all a-b numbers with call duration and callcost
in it, we need to sum up call costs for specific sets of a numbers...

Or is this far fetched?

Regards,
Ron.

2011/11/7 Dag-Jarle Johansen 

> I have to simulate some situations, of course,
> what would you rather have, some simulation of one firm, or the simulation
> of one concern, or the simulation of wall street (hehe no posssible)
>
> G
> DJJ
>
>
>
> 2011/11/7 Dag-Jarle Johansen 
>
> > Great idea, Fabien,
> >
> > reports have always been a misbeheviour along mangegement.
> > I will see what I can do, including reports, of course,
> >
> > Really s great idea for me, thanks.
> >
> > Dag-Jarle
> >
> >
> >
> > 2011/11/7 Fabien Bodard 
> >
> >> Hi jarle,
> >>
> >> What you can do for me is to test gb.report... Understand it ... and
> >> maybe document it :)
> >>
> >> This is a true piece needed for management, logistic programs
> >>
> >>
> >> Then tell me about bugs and what you need on it or if you have some
> >> ideas to improve it .
> >>
> >> 2011/11/7 Dag-Jarle Johansen :
> >> > Hi all of you.
> >> >
> >> > I am not very happy with my life at this time. I have a lot time to
> >> spare,
> >> > but I am neither a C- nor anything-else-programmer - just VB -
> >> > old-fashonied. And a little Gambas of course. If I can be any help
> >> > anywhere, tell me, I would like to help were I can- My favourites are
> >> > spedition, logistigs, what you need to survive in a little or middle
> >> > company (billings, orders and so on)
> >> >
> >> > Great
> >> > DJJ
> >> >
> >>
> --
> >> > RSA(R) Conference 2012
> >> > Save $700 by Nov 18
> >> > Register now
> >> > http://p.sf.net/sfu/rsa-sfdev2dev1
> >> > ___
> >> > Gambas-user mailing list
> >> > Gambas-user@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >> >
> >>
> >>
> >>
> >> --
> >> Fabien Bodard
> >>
> >>
> >>
> --
> >> RSA(R) Conference 2012
> >> Save $700 by Nov 18
> >> Register now
> >> http://p.sf.net/sfu/rsa-sfdev2dev1
> >> ___
> >> Gambas-user mailing list
> >> Gambas-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >
> >
>
> --
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Ron
Rolf,

This is what Fabian also mailed me, but it didn't work, will look into 
it again, I had ReadOnly is true already set.
Thanks.

Regards,
Ron.
> Ron,
>
> I guess I got it :-) I found my old project where I used it, and now
> read this:
>
> It depends on whether TextEdit is ReadOnly AND you shouldn't use .Insert
> but concatenate TextEdit.Text (oh my goodness...).
>
> If ReadOnly = True, it reacts like TextLabel, i. e. "\n" is ignored and
> only HTML tags are interpreted.
>
> If ReadOnly = False, it looks for a Return = chr$(10) = "\n" (which
> could be pressed by the user) and starts a new paragraph.
>
> As you need it for reading only, set it accordingly and change "\n" to
> "" - this should do it.
>
> PUBLIC SUB WriteLog(sText AS String, OPTIONAL bStrip AS Boolean)
>
> IF NOT bStrip THEN sText&= ""
>
> sText = ""&  Format$(Now, "/mm/dd hh:nn:ss")&  "  "&  sText
> FMain.txtMainLog.EnsureVisible
> FMain.txtMainLog.Text&= sText   'This runs better
> 'FMain.txtMainLog.Insert(sText)  'This will mess it up
> PRINT sText;
>
> END
>
>
> Hope it helps!
>
> Rolf
>
>
> Am 06.11.2011 11:22, schrieb Ron:
>> Hi all,
>>
>> In my project I replaced the txtArea for readlonly TextEdit objects so I
>> can color the text I want to emphasize, this works good.
>>
>> But how can I just do a single line wrap, until now I only got a blank line
>> in between lines, or all lines concatenated together ;-(
>>
>> It must be something simple, see attached Gambas2 object to see what I mean.
>>
>> Thanks for any pointers in the right direction...
>>
>> Regards,
>> Ron_2nd,
>>
>>
>>
>> --
>> RSA(R) Conference 2012
>> Save $700 by Nov 18
>> Register now
>> http://p.sf.net/sfu/rsa-sfdev2dev1
>>
>>
>>
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> --
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Ron
All works, expect one thing.

When I was using the .Insert() I could set forecolor before and after the
insert to color only this line, like so:

FLogFiles.txtMainLog.ForeColor = Color.Gray
FLogFiles.txtMainLog.Insert(sText)
FLogFiles.txtMainLog.ForeColor = Color.Black

If I now issue a FLogFiles.txtMainLog.ForeColor = Color.Gray, all the text
in the TextArea turns black.

So the main reason to switch to TextArea is the only part still not working
:LOL
Is there another way to color a line or part of a text?

I hoped "" sText & "" worked since  works,
but alas...

Regards,
Ron_2nd.

2011/11/8 Fabien Bodard 

> yes insert is to add normal text without interpretation
>
>
> --
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] vb ENUMS

2011-11-11 Thread Ron
I'm porting a vb project and it uses a lot of ENUM definitions, I cannot 
find a similar way to use them in Gambas2/3.

They get referred to with:

SECURITY2.packettype

ENUM SECURITY2 AS Integer
 packetlength = 0
 packettype = 1
 subtype = 2
 seqnbr = 3
 id1 = 4
 id2 = 5
 id3 = 6
 status = 7
END ENUM

Any pointers or ideas?

Regards,
Ron_2nd.

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] vb ENUMS

2011-11-11 Thread Ron
Ok, thanks!

> yes create a class SECURITY2
>
> public enum  packetlength = 0, packettype = 1, etc
>
> actually enum is not fully implemented in gambas :/ maybe for the 4.0
>
> 2011/11/11 Ron:
>> I'm porting a vb project and it uses a lot of ENUM definitions, I cannot
>> find a similar way to use them in Gambas2/3.
>>
>> They get referred to with:
>>
>> SECURITY2.packettype
>>
>> ENUM SECURITY2 AS Integer
>>  packetlength = 0
>>  packettype = 1
>>  subtype = 2
>>  seqnbr = 3
>>  id1 = 4
>>  id2 = 5
>>  id3 = 6
>>  status = 7
>> END ENUM
>>
>> Any pointers or ideas?
>>
>> Regards,
>> Ron_2nd.
>>
>> --
>> RSA(R) Conference 2012
>> Save $700 by Nov 18
>> Register now
>> http://p.sf.net/sfu/rsa-sfdev2dev1
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] vb ENUMS

2011-11-11 Thread Ron
In this project they are used to refer to byte positions in a byte[] array
I think it makes it just more clear what that positions is used for.

So instead of using RecBuf[1] to refer to a position, you can use 
RecBuf[SECURITY2.packettype] with the defined ENUM below.

Regards,
Ron_2nd.
> I'm just curious: What are enums good for? Never heard of it...
>
> Rolf
>
> Am 11.11.2011 09:59, schrieb Ron:
>> Ok, thanks!
>>
>>> yes create a class SECURITY2
>>>
>>> public enum  packetlength = 0, packettype = 1, etc
>>>
>>> actually enum is not fully implemented in gambas :/ maybe for the 4.0
>>>
>>> 2011/11/11 Ron:
>>>> I'm porting a vb project and it uses a lot of ENUM definitions, I cannot
>>>> find a similar way to use them in Gambas2/3.
>>>>
>>>> They get referred to with:
>>>>
>>>> SECURITY2.packettype
>>>>
>>>> ENUM SECURITY2 AS Integer
>>>>packetlength = 0
>>>>packettype = 1
>>>>subtype = 2
>>>>seqnbr = 3
>>>>id1 = 4
>>>>id2 = 5
>>>>id3 = 6
>>>>status = 7
>>>> END ENUM
>>>>
>>>> Any pointers or ideas?
>>>>
>>>> Regards,
>>>> Ron_2nd.
>>>>
>>>> --
>>>> RSA(R) Conference 2012
>>>> Save $700 by Nov 18
>>>> Register now
>>>> http://p.sf.net/sfu/rsa-sfdev2dev1
>>>> ___
>>>> Gambas-user mailing list
>>>> Gambas-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>
>>>
>>
>> --
>> RSA(R) Conference 2012
>> Save $700 by Nov 18
>> Register now
>> http://p.sf.net/sfu/rsa-sfdev2dev1
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
> --
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Moviebox with animated gif, need tranparent background

2011-11-26 Thread Ron
I display movieboxes with an animated gifs, and have it use a transparent
background, the gifs are already transparant.

I can do this for TextLabel with property .Transparant, but how can I do
this for MovieBoxes?

Small code:

WITH hMovieBox
  TRY .Path = "/some/animated.gif"
  .Height = 20
  .Width = 20
  .X = X
  .Y = Y
  .Playing = TRUE
END WITH

If it can't be done with a MovieBox, how do you do it with a PictureBox?

Gambas2, qt.

Thanks for any pointers!

Regards,
Ron_2nd.
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Big Gambas3 slowdown on hex edit / compare program

2011-12-15 Thread Ron
On 15-12-2011 5:50, Benoît Minisini wrote:
> Le 15/12/2011 03:42, Benoît Minisini a écrit :
>> Le 15/12/2011 01:19, Caveat a écrit :
>>> Benoit,
>>>
>>> I decided to test against qt and gtk+ by selecting them manually from
>>> the Project Properties, Components.
>>>
>>> If I select gb.qt4, the '4k GUI' builds in just 3 seconds! The '1k GUI'
>>> takes less than 1/2 a second.
>>>
>>> With gb.gtk+ (or gb.gui which is auto-selecting gtk+ afaict), the same
>>> '4k GUI' takes 1.5 minutes to build.
>>>
>>> Hope this helps.
>>>
>>> Regards,
>>> Caveat
>>>
>> Then maybe the problem is in the gb.gtk code, as I didn't wrote all of
>> it... I will take a look.
>>
>> And I don't think that John wanted to be rude or sarcastic at all: I had
>> the same reaction when I saw the 8000+ textboxes.
>>
>> It is something I didn't dare to do (even with qt) without expecting an
>> explosion somewhere. :-)
>>
> OK: the GTK+ functions that modify control colors and fonts are slow,
> and become slower as the number of created controls grows. So I now call
> them only if really necessary in revision #4278.
>
> If you try it, you will get a great speed up.
>
> Regards,
>

You see that even 'unefficient' programming/design of a users project 
helps making Gambas better for all of us.
Specific bugs or slowdowns are easier to spot if you try to get the most 
out of Gambas.

Regards,
Ron_2nd.


--
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Client/Server Application with Gambas

2011-12-20 Thread Ron
Hi Hamza,

I use XMLRPC in my Gambas project.
http://www.domotiga.nl/projects/domotiga/repository/entry/trunk/DomotiGa/CXMLRPC.class
Look here for simple android, web and iphone clients using xmlrpc/json:
http://www.domotiga.nl/projects/domotiga/repository/show/trunk/webclients

I also watched websockets, done nothing with them yet.

If you have any ideas/experience please share them with me if you want.

Regards,
Ron_2nd.
2011/12/20 Hamza Abdelkebir 

> Hi all,
>
> I'm trying to develop a clients/server application using gambas.
>
> Basically there will be two clients: one is an android app and the other
> is a desktop app.
>
>
> What are the advantages of using sockets or webservices?
>
> Does anyone have an idea on how to develop XMLRPC webservices in Gambas?
>
>
> Thanks,
>
>
> Hamza
>
>
> --
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 159 in gambas: No Toolbox after warning about el_GR.utf8

2011-12-23 Thread Ron
I had the same problem, it's there, but hidden by default (click the arrows
on right side and bottom of the IDE screen to see it, when in form mode)

There use to be a toolbar icon in gambas2 who made the toolbox visible with
one click, but it's not there anymore in gambas3, better re-add it to take
away the confusion.

Regards,
Ron_2nd.

2011/12/20 

> Updates:
>Status: NeedsInfo
>Labels: -Version Version-TRUNK
>
> Comment #1 on issue 159 by benoit.m...@gmail.com: No Toolbox after warning
> about el_GR.utf8
> http://code.google.com/p/gambas/issues/detail?id=159
>
> Please provide a IDE screenshot of what you mean by "not visible".
>
>
>
> --
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas3 IDE's un- indent buttons

2011-12-28 Thread Ron
Community,

I really, really miss the Indent and Unindent toolbar icons in Gambas3's 
IDE!

I want to start a petition to get them back, 1 vote added..

Regards,
Ron_2nd.

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Cannot close GUI application

2012-01-02 Thread Ron
Just close all open handles file hand timers hand close main form with
me.close
Ron
Op 2 jan. 2012 18:36 schreef "Olivier Cruilles" 
het volgende:

> Hello,
>
> Did you use the quit() command in the main Form ?
>
>
>
>
>
> Olivier Cruilles
> Mail: linu...@club-internet.fr
>
> Le 2 janv. 2012 à 17:03, M. Cs. a écrit :
>
> > The command Quit() won't work in my application, so I cannot terminate
> > the process. The GUI disappears, but the process remains. Is there any
> > safe way to close a GUI application?
> >
> > Csaba
> >
> >
> --
> > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> > infrastructure or vast IT resources to deliver seamless, secure access to
> > virtual desktops. With this all-in-one solution, easily deploy virtual
> > desktops for less than the cost of PCs and save 60% on VDI infrastructure
> > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> --
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Cannot close GUI application

2012-01-02 Thread Ron
You always get unfreed stuff when using Quit in a GUI project is my
experience.

In Form_Close()

  ' exit program
  Main.CloseAll()
  FMain.Close

END

In CloseAll() I close all file handles, sockets, serial ports and stop
timers.
Then FMain.Close does the trick nicely.

Regards,
Ron_2nd.
2012/1/2 Fabien Bodard 

> Le 2 janvier 2012 19:57, Benoît Minisini
>  a écrit :
> > Le 02/01/2012 17:03, M. Cs. a écrit :
> >> The command Quit() won't work in my application, so I cannot terminate
> >> the process. The GUI disappears, but the process remains. Is there any
> >> safe way to close a GUI application?
> >>
> >> Csaba
> >>
> >
> > Please elaborate. Send me a project so that I can reproduce the problem.
> > The QUIT instruction aborts the program brutally (almost), so it should
> > quit!
>
> I'm on it ... Bad design... many variables are not freed.
>
> It's not a bug
>
> >
> > --
> > Benoît Minisini
> >
> >
> --
> > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> > infrastructure or vast IT resources to deliver seamless, secure access to
> > virtual desktops. With this all-in-one solution, easily deploy virtual
> > desktops for less than the cost of PCs and save 60% on VDI infrastructure
> > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> --
> Fabien Bodard
>
>
> --
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to delete copy of class/object

2012-01-19 Thread Ron
Hi community,

Let say I have a class called CMyMsg like this:

' Gambas class file

PUBLIC Length AS Integer' packet length
PUBLIC Prio AS Integer ' 0 = normal, 1 = system
PUBLIC Node AS Integer' node id
PUBLIC Key AS String
PUBLIC Packet AS NEW Byte[]  ' data to send
PUBLIC AwaitAck AS Boolean

PUBLIC SUB SetLength(iLength AS Integer)

   Length = iLength

END

PUBLIC SUB SetPrio(iPrio AS Integer)

   Prio = iPrio

END

PUBLIC SUB SetNode(iNode AS Integer)

   Node = iNode

END

PUBLIC SUB SetKey(sKey AS String)

   Key = sKey

END

PUBLIC SUB SetPacket(aPack AS Byte[])

   Packet = aPack

END

PUBLIC SUB SetAwaitAck(bAck AS Boolean)

   AwaitAck = bAck

END

And I instantiate several copies of it in my project with this:

PRIVATE oMyMsgs AS NEW Object[]

PUBLIC SUB CreatePacket()

   DIM MyMsg AS NEW CMyMsg

   MyMsg.SetKey(Rnd)
   MyMsg.SetLength(iPacketLen + 2)
   MyMsg.SetPrio(0)
   MyMsg.SetAwaitAck(TRUE))
   MyMsg.SetPacket(bBuffer)

   oMyMsgs.Add(MyMsg)

END

Further down, I loop through these objects in oMyMsgs  and do something 
with them like this:

PUBLIC SUB ParsePackets()

   DIM MyMsg AS CMyMsg

   FOR EACH MyMsg IN oMyMsgs

 ProcessIt(MyMsg)

 ' question is how to delete the MyMsg entry here and remove it from 
oMyMsgs objects list?
 ' or is there another way to do this efficiently?

   NEXT

Thanks in advance!

Regard,
Ron_2nd.

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to delete copy of class/object

2012-01-19 Thread Ron
yes looks like i need that, will try, thanks alot!
Ron
Op 19 jan. 2012 17:29 schreef "Jussi Lahtinen" 
het volgende:

> Maybe I don't understand the question, but why not just like this:
>
> Do
>
>ProcessIt(oMyMsg[0])
>
>oMyMsgs.Remove(0)
>
> Loop Until oMyMsg.Count = 0
>
>
> Jussi
>
>
>
>
>
>
>
>
>
> On Thu, Jan 19, 2012 at 15:23, Ron  wrote:
>
> > Hi community,
> >
> > Let say I have a class called CMyMsg like this:
> >
> > ' Gambas class file
> >
> > PUBLIC Length AS Integer' packet length
> > PUBLIC Prio AS Integer ' 0 = normal, 1 = system
> > PUBLIC Node AS Integer' node id
> > PUBLIC Key AS String
> > PUBLIC Packet AS NEW Byte[]  ' data to send
> > PUBLIC AwaitAck AS Boolean
> >
> > PUBLIC SUB SetLength(iLength AS Integer)
> >
> >   Length = iLength
> >
> > END
> >
> > PUBLIC SUB SetPrio(iPrio AS Integer)
> >
> >   Prio = iPrio
> >
> > END
> >
> > PUBLIC SUB SetNode(iNode AS Integer)
> >
> >   Node = iNode
> >
> > END
> >
> > PUBLIC SUB SetKey(sKey AS String)
> >
> >   Key = sKey
> >
> > END
> >
> > PUBLIC SUB SetPacket(aPack AS Byte[])
> >
> >   Packet = aPack
> >
> > END
> >
> > PUBLIC SUB SetAwaitAck(bAck AS Boolean)
> >
> >   AwaitAck = bAck
> >
> > END
> >
> > And I instantiate several copies of it in my project with this:
> >
> > PRIVATE oMyMsgs AS NEW Object[]
> >
> > PUBLIC SUB CreatePacket()
> >
> >   DIM MyMsg AS NEW CMyMsg
> >
> >   MyMsg.SetKey(Rnd)
> >   MyMsg.SetLength(iPacketLen + 2)
> >   MyMsg.SetPrio(0)
> >   MyMsg.SetAwaitAck(TRUE))
> >   MyMsg.SetPacket(bBuffer)
> >
> >   oMyMsgs.Add(MyMsg)
> >
> > END
> >
> > Further down, I loop through these objects in oMyMsgs  and do something
> > with them like this:
> >
> > PUBLIC SUB ParsePackets()
> >
> >   DIM MyMsg AS CMyMsg
> >
> >   FOR EACH MyMsg IN oMyMsgs
> >
> > ProcessIt(MyMsg)
> >
> > ' question is how to delete the MyMsg entry here and remove it from
> > oMyMsgs objects list?
> > ' or is there another way to do this efficiently?
> >
> >   NEXT
> >
> > Thanks in advance!
> >
> > Regard,
> > Ron_2nd.
> >
> >
> >
> --
> > Keep Your Developer Skills Current with LearnDevNow!
> > The most comprehensive online learning library for Microsoft developers
> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> > Metro Style Apps, more. Free future releases when you subscribe now!
> > http://p.sf.net/sfu/learndevnow-d2d
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
> --
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas WebPage

2012-01-28 Thread Ron
Benoit great news that we can start develop web pages. No idea what I need
exactly. I will just start to play with it for my project and let you know
what I think then.

Regards,
Ron_2nd
Op 28 jan. 2012 18:57 schreef "M. Cs."  het volgende:

> Will it be possible to display a native HTML/PHP code in it like in
> ... ? Why to depend on ASP?
>
> Csaba
>
> 2012/1/28, Sebastian Kulesz :
> > I really like this idea, it makes an application really versatile.
> > What I think is that before starting to code it you must define some
> > things.
> >
> > First, the security implications. Will real webpages be able to use
> > that syntax?. A nice feature would be a whitelist of allowed pages
> > that can be executed within a form, maybe with the include tag.
> >
> > Second, and most important.  How would you manage to call each event
> > of a form input object, like a textbox? How could someone use the
> > value of a textbox, for example? What happens if two form objects have
> > the same "name" attribute? When an input button is pressed, the user
> > is normally redirected to the "action" webpage, will you override this
> > to execute an event and let the user choose?
> >
> > Third, about the links. A nice syntax would be
> > gambas://FormName/Method/Param1/Param2/...
> >
> > That's all I could think of. Thanks for all the work!!
> >
> > On 28/01/2012, at 07:07, "Benoît Minisini"
> > wrote:
> >
> >> Hi all,
> >>
> >> I have started the support of a new kind of "form" in the IDE, the
> >> "WebPage".
> >>
> >> WebPage is an HTML page with ASP-like syntax. It is implemented in the
> >> gb.web component.
> >>
> >> The IDE now can edit WebPage, but cannot compile them.
> >>
> >> Actually it is "just" a matter of modyfing the compiler so that the
> >> WebPage is transformed into Gambas code that generates the final HTML.
> >>
> >> At the moment, the following ASP-like syntax will be implemented:
> >>
> >> - <% ... %> to insert any Gambas code.
> >>
> >> - <%= ... %> to insert the result of a Gambas expression. Html$() will
> >> be automatically called.
> >>
> >> - Maybe something like <%INCLUDE ... %> to include a WebPage in another
> >> one.
> >>
> >> Note that the WebPage is a file with a ".webpage" extension, and that,
> >> they have their own class file attached (like any form).
> >>
> >> That way, you don't have to put all your code inside the HTML. Just what
> >> is needed.
> >>
> >> Internally all WebPages will inherit the WebPage class, and will have a
> >> "Render" method to render their contents (i.e. print to the standard
> >> output - don't forget that a Gambas web application is a CGI script!).
> >> They can be startup class too.
> >>
> >> I'd like to have the thoughts of Gambas users about that: what kind of
> >> syntax you would like, what ideas you have...
> >>
> >> One idea I have would be a standard syntax for the URL received by the
> >> CGI script, so that the displayed WebPage would be automatically
> >> selected from it. It could be something as simple as
> >> "http://myapp.com/".
> >>
> >> Thanks in advance for your comments.
> >>
> >> Regards,
> >>
> >> --
> >> Benoît Minisini
> >>
> >>
> --
> >> Try before you buy = See our experts in action!
> >> The most comprehensive online learning library for Microsoft developers
> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> >> Metro Style Apps, more. Free future releases when you subscribe now!
> >> http://p.sf.net/sfu/learndevnow-dev2
> >> ___
> >> Gambas-user mailing list
> >> Gambas-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> --
> > Try before you buy = See our experts in action!
> > The most comprehensive online learning library for Microsoft developers
> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> > Metro Style Apps, more. Free future releases when you subscribe now!
> > http://p.sf.net/sfu/learndevnow-dev2
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
>
> --
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Try before you buy =

Re: [Gambas-user] extern library

2012-01-29 Thread Ron
Modify your systems ldconfig config.

Regards,
Ron_2nd.
Op 29 jan. 2012 21:04 schreef "Wally"  het volgende:

> Hi
>
> how can i tell Gambas3, "Library" command to use
> "libMyLib.so" in Project Dir or somewhere else ?
>
> ' Gambas class file
> Library "libMyLib:0"'<---
>
> Private Extern ..
>
> thx wally
>
>
>
> --
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] extern library

2012-02-01 Thread Ron
On 31-1-2012 1:09, Benoît Minisini wrote:
> Le 29/01/2012 21:33, Wally a écrit :
>> No other way ?
>>
> Normally the library can be any path, like any data file. So:
>
> - It is searched as a real file (absolute path, or standard library paths).
>
> - If it is not found, then it is searched inside the project.
>
> If you don't succeed in loading your library, please send me a little
> test project.
>
> Regards,
>
I believe storing it anywhere else than a library path didn't work for 
me in my project, but I will check again.
I'm talking about gambas2.

Regards,
Ron_2nd.

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Ron
Just google for gambas calculate get unix time

Regards,
Ron_2nd.
> Hi "another Rolf"
>
>>> is there a function which allows to convert an unix timestamp into the
>>> appropriated date/time in Gambas3?
>>>
>>> If, how is it called and how to use.
>> Take a look at this one:
>> http://gambasdoc.org/help/lang/stat?v3
>> file.stat should deliver a file date. Or did I get you wrong?
> For my problem, you get wrong. The unix timestamp is not only the time
> of a file. It is the time in seconds since the 1. Jan. 1970. Even the
> system clock only counts the seconds.
>
> My problem is, that a network application send a timestamp as a string.
> I have to convert this string into Date and Time - which is usually done
> in C or PHP or... by a function of a system library (which of course
> know leap years).
>
> And some times I would like to generate a timestamp as well, for example
> to send it to a database.
>
> Another helper out there?
>
> Rolf
>
> --
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   3   4   5   >