[Gambas-user] [Gambas Bug Tracker] Bug #1094: Wait command freezes when clock is adjusted back

2017-05-25 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1094=L21haW4-

Comment #2 by Benoît MINISINI:

It should be fixed in revision #8138, where a monotonic clock is sued to 
implement the WAIT instruction.

Benoît MINISINI changed the state of the bug to: Fixed.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1109: Wrong Substitution

2017-05-25 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1109=L21haW4-

Comment #1 by Benoît MINISINI:

The Connection.Subst() method is for quoting SQL values. To quote SQL table or 
fields, you must use the Connection.Quote() method.

Benoît MINISINI changed the state of the bug to: Rejected.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread PICCORO McKAY Lenz
hi jussi, i'll will send to you the code by private mail, in some hours to
get more clarelly the problem.. and appreciate your help

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-25 15:34 GMT-04:30 Jussi Lahtinen :

> The code you sent is not runnable. So there is obviously something more.
> Why you cannot debug it? Just run the project in the IDE and when things go
> slow hit pause and see what is inside of the collection.
>
>
> Jussi
>
> On Thu, May 25, 2017 at 10:56 PM, PICCORO McKAY Lenz <
> mckaygerh...@gmail.com
> > wrote:
>
> > as code i send, only contanis two connection objects, one for odbc and
> > other for sqlite
> >
> > but i cannot see or debug it, due the interface does not show nothing ...
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> >
> > 2017-05-25 15:31 GMT-04:00 Jussi Lahtinen :
> >
> > > Have you checked what the collection contains, when the system slows
> > down?
> > > Maybe the containing strings are longer than what you expect? Or maybe
> > > there are more elements than you expect?
> > > How much the running program takes memory, when things get slow?
> > >
> > >
> > > Jussi
> > >
> > > On Thu, May 25, 2017 at 8:21 PM, PICCORO McKAY Lenz <
> > > mckaygerh...@gmail.com>
> > > wrote:
> > >
> > > > hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7
> > intel
> > > >
> > > > well complete history its that many days before i run several times
> > > gambas
> > > > without close it, but in none moment used collections..
> > > >
> > > > today only with project where i used collections gambas get slower
> > after
> > > > some hours...
> > > >
> > > > Lenz McKAY Gerardo (PICCORO)
> > > > http://qgqlochekone.blogspot.com
> > > >
> > > > 2017-05-25 10:59 GMT-04:00 Jussi Lahtinen  >:
> > > >
> > > > > Collection requires more memory than string array, so maybe your
> box
> > is
> > > > > just swapping, because of low memory?
> > > > >
> > > > >
> > > > > Jussi
> > > > >
> > > > > On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz <
> > > > > mckaygerh...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > there are the piece of code and here there's no secret:
> > > > > >
> > > > > > Public Function getItems() As Collection
> > > > > >
> > > > > >   Dim $items As New Collection
> > > > > >   Dim itema, itemb as String = "something"
> > > > > >
> > > > > >   $items.Add($itema, "item1")
> > > > > >   $items.Add($itemb, "item2")
> > > > > >   $items.Add(2, "cuantos")
> > > > > >
> > > > > >   Return $items
> > > > > >
> > > > > > End
> > > > > >
> > > > > > here the previous code "bad programed" and when i swicht to
> > > collection
> > > > > > gambas ide get slower after some time, the code was:
> > > > > >
> > > > > > Public Function getItems() As String[]
> > > > > >
> > > > > >   Dim $items As New String[]
> > > > > >   Dim itema, itemb as String = "something"
> > > > > >
> > > > > >   $items.Add($itema)
> > > > > >   $items.Add($itemb)
> > > > > >
> > > > > >   Return $items
> > > > > >
> > > > > > End
> > > > > >
> > > > > > the gambas ide and the OS was not shutdown during 40 days, also
> the
> > > > > gambas
> > > > > > ide was not quit in this period, and in that period i run the
> huge
> > > data
> > > > > > code of the 3 odbc bug with 10 registers, after change the
> code
> > > to
> > > > > > collection  (each change are little before test) thje ide gambas
> > get
> > > > slow
> > > > > > and does not run well..
> > > > > >
> > > > > > this happened to my other partners in the job... i test also in
> > > debian
> > > > > > jeesie and happened same!
> > > > > >
> > > > > > i noted that when alone user said something its like "nothigs its
> > > > > happened,
> > > > > > its just bad programer"
> > > > > >
> > > > > > will need other to reports, but these other do not have time to
> > make
> > > a
> > > > > > little project and report that..
> > > > > >
> > > > > > sqlite was severi broken until gambas 3.6 and must be rewrite for
> > > > gambas
> > > > > > 3.8
> > > > > >
> > > > > > now in gamba 3.9 ther's some doc-online problems with cache and
> > some
> > > > > memory
> > > > > > manage problems..
> > > > > >
> > > > > > but for not specialized programmers its very difficult to debug,
> > find
> > > > and
> > > > > > report LIKE THE QT problem..
> > > > > >
> > > > > >
> > > > > >
> > > > > > Lenz McKAY Gerardo (PICCORO)
> > > > > > http://qgqlochekone.blogspot.com
> > > > > >
> > > > > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen <
> > jussi.lahti...@gmail.com
> > > >:
> > > > > >
> > > > > > > Impossible to say anything without seeing the code, which
> causes
> > > the
> > > > > > > problem.
> > > > > > >
> > > > > > >
> > > > > > > Jussi
> > > > > > >
> > > > > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> > > > > > > mckaygerh...@gmail.com
> > > > > > > > wrote:
> > > > > > >
> > > > > > > > i change the odbc code 

Re: [Gambas-user] An Issue With Shell command and sudoers rules

2017-05-25 Thread Jorge Carrión
Thanks Lee. I think I've solved it. The solution is in that line.

Best Regards.

El 25 may. 2017 4:47 p. m., "T Lee Davidson" 
escribió:

> Disable (ie. comment out) targetpw and the "ALL  ALL=(ALL) ALL" line in
> /etc/sudoers.
>
> Then you should probably allow regular users to execute only certain
> commands with something like:
> %users  ALL=/home/adminuser/bin/comando.sh
> or a special group for 'privileged' users:
> %wheel  ALL=/home/adminuser/bin/comando.sh
>
> See:
> https://www.novell.com/support/kb/doc.php?id=7002705
>
> --
> Lee
>
>
> On 05/25/2017 05:13 AM, Jorge Carrión wrote:
> > Oh... well, I'm afraid that I've a mistake.
> >
> > All of this isn't a gambas issue.
> >
> > BUT if someone knows a way to let a non-sudoer user to update the system
> > without know the admin password I'll be very grateful .
> >
> > Sorry for the noise.
> >
> > Best Regards
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Change the code and copy in other project

2017-05-25 Thread Gianluigi
Ciao Charlie,

Thanks, the problem is not with/in IDE, but if working with a project.gambas
Problem that I can bypass by copying useful files first to a folder, since
I have no more src in the compiled project.

Regards
Gianluigi

2017-05-25 23:24 GMT+02:00 Karl Reinl :

> Am Donnerstag, den 25.05.2017, 20:06 +0200 schrieb Gianluigi:
> > I need to copy modules and classes from my project, change the code
> > partially and copy it to another project.
> > Is this only possible from IDE or is it possible also from a compiled
> > project?
> > Is there still the src folder in the compiled project?
> >
> > Regards
> > Gianluigi
>
> Salut Gianluigi,
>
> you can 'import' the modules,classes etc. from other projects on your
> disc into your new project, using the IDE Import.
> Or you look into the hidden '.src' folder and copy the files you need.
> --
> Amicalement
> Charlie
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Change the code and copy in other project

2017-05-25 Thread Karl Reinl
Am Donnerstag, den 25.05.2017, 20:06 +0200 schrieb Gianluigi:
> I need to copy modules and classes from my project, change the code
> partially and copy it to another project.
> Is this only possible from IDE or is it possible also from a compiled
> project?
> Is there still the src folder in the compiled project?
> 
> Regards
> Gianluigi

Salut Gianluigi,

you can 'import' the modules,classes etc. from other projects on your
disc into your new project, using the IDE Import.
Or you look into the hidden '.src' folder and copy the files you need.
-- 
Amicalement
Charlie


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Change the code and copy in other project

2017-05-25 Thread Gianluigi
Right, that's what I was thinking to do, thank you.
If I succeed, you will see it in the Software farm :-)

Regards
Gianluigi

2017-05-25 22:46 GMT+02:00 Jussi Lahtinen :

> I don't quite understand what you are trying to achieve, but you can copy
> the src folder to the data folder and then it will in the executable. Maybe
> you can even link it into the data folder.
>
>
> Jussi
>
> On Thu, May 25, 2017 at 11:23 PM, Gianluigi  wrote:
>
> > OK I will look for another way to do this.
> >
> > Regards
> > Gianluigi
> >
> > 2017-05-25 21:36 GMT+02:00 Jussi Lahtinen :
> >
> > > Src folder contains the source code for your project. You don't need to
> > use
> > > IDE to copy or edit the files.
> > > Compiled binary does not contain source code, nor the compiling touches
> > to
> > > the src folder. It is only read during the compilation.
> > >
> > >
> > > Jussi
> > >
> > >
> > >
> > > On Thu, May 25, 2017 at 9:06 PM, Gianluigi 
> wrote:
> > >
> > > > I need to copy modules and classes from my project, change the code
> > > > partially and copy it to another project.
> > > > Is this only possible from IDE or is it possible also from a compiled
> > > > project?
> > > > Is there still the src folder in the compiled project?
> > > >
> > > > Regards
> > > > Gianluigi
> > > > 
> > > > --
> > > > Check out the vibrant tech community on one of the world's most
> > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > ___
> > > > Gambas-user mailing list
> > > > Gambas-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > >
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Change the code and copy in other project

2017-05-25 Thread Jussi Lahtinen
I don't quite understand what you are trying to achieve, but you can copy
the src folder to the data folder and then it will in the executable. Maybe
you can even link it into the data folder.


Jussi

On Thu, May 25, 2017 at 11:23 PM, Gianluigi  wrote:

> OK I will look for another way to do this.
>
> Regards
> Gianluigi
>
> 2017-05-25 21:36 GMT+02:00 Jussi Lahtinen :
>
> > Src folder contains the source code for your project. You don't need to
> use
> > IDE to copy or edit the files.
> > Compiled binary does not contain source code, nor the compiling touches
> to
> > the src folder. It is only read during the compilation.
> >
> >
> > Jussi
> >
> >
> >
> > On Thu, May 25, 2017 at 9:06 PM, Gianluigi  wrote:
> >
> > > I need to copy modules and classes from my project, change the code
> > > partially and copy it to another project.
> > > Is this only possible from IDE or is it possible also from a compiled
> > > project?
> > > Is there still the src folder in the compiled project?
> > >
> > > Regards
> > > Gianluigi
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Change the code and copy in other project

2017-05-25 Thread Gianluigi
OK I will look for another way to do this.

Regards
Gianluigi

2017-05-25 21:36 GMT+02:00 Jussi Lahtinen :

> Src folder contains the source code for your project. You don't need to use
> IDE to copy or edit the files.
> Compiled binary does not contain source code, nor the compiling touches to
> the src folder. It is only read during the compilation.
>
>
> Jussi
>
>
>
> On Thu, May 25, 2017 at 9:06 PM, Gianluigi  wrote:
>
> > I need to copy modules and classes from my project, change the code
> > partially and copy it to another project.
> > Is this only possible from IDE or is it possible also from a compiled
> > project?
> > Is there still the src folder in the compiled project?
> >
> > Regards
> > Gianluigi
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Jussi Lahtinen
The code you sent is not runnable. So there is obviously something more.
Why you cannot debug it? Just run the project in the IDE and when things go
slow hit pause and see what is inside of the collection.


Jussi

On Thu, May 25, 2017 at 10:56 PM, PICCORO McKAY Lenz  wrote:

> as code i send, only contanis two connection objects, one for odbc and
> other for sqlite
>
> but i cannot see or debug it, due the interface does not show nothing ...
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-25 15:31 GMT-04:00 Jussi Lahtinen :
>
> > Have you checked what the collection contains, when the system slows
> down?
> > Maybe the containing strings are longer than what you expect? Or maybe
> > there are more elements than you expect?
> > How much the running program takes memory, when things get slow?
> >
> >
> > Jussi
> >
> > On Thu, May 25, 2017 at 8:21 PM, PICCORO McKAY Lenz <
> > mckaygerh...@gmail.com>
> > wrote:
> >
> > > hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7
> intel
> > >
> > > well complete history its that many days before i run several times
> > gambas
> > > without close it, but in none moment used collections..
> > >
> > > today only with project where i used collections gambas get slower
> after
> > > some hours...
> > >
> > > Lenz McKAY Gerardo (PICCORO)
> > > http://qgqlochekone.blogspot.com
> > >
> > > 2017-05-25 10:59 GMT-04:00 Jussi Lahtinen :
> > >
> > > > Collection requires more memory than string array, so maybe your box
> is
> > > > just swapping, because of low memory?
> > > >
> > > >
> > > > Jussi
> > > >
> > > > On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz <
> > > > mckaygerh...@gmail.com>
> > > > wrote:
> > > >
> > > > > there are the piece of code and here there's no secret:
> > > > >
> > > > > Public Function getItems() As Collection
> > > > >
> > > > >   Dim $items As New Collection
> > > > >   Dim itema, itemb as String = "something"
> > > > >
> > > > >   $items.Add($itema, "item1")
> > > > >   $items.Add($itemb, "item2")
> > > > >   $items.Add(2, "cuantos")
> > > > >
> > > > >   Return $items
> > > > >
> > > > > End
> > > > >
> > > > > here the previous code "bad programed" and when i swicht to
> > collection
> > > > > gambas ide get slower after some time, the code was:
> > > > >
> > > > > Public Function getItems() As String[]
> > > > >
> > > > >   Dim $items As New String[]
> > > > >   Dim itema, itemb as String = "something"
> > > > >
> > > > >   $items.Add($itema)
> > > > >   $items.Add($itemb)
> > > > >
> > > > >   Return $items
> > > > >
> > > > > End
> > > > >
> > > > > the gambas ide and the OS was not shutdown during 40 days, also the
> > > > gambas
> > > > > ide was not quit in this period, and in that period i run the huge
> > data
> > > > > code of the 3 odbc bug with 10 registers, after change the code
> > to
> > > > > collection  (each change are little before test) thje ide gambas
> get
> > > slow
> > > > > and does not run well..
> > > > >
> > > > > this happened to my other partners in the job... i test also in
> > debian
> > > > > jeesie and happened same!
> > > > >
> > > > > i noted that when alone user said something its like "nothigs its
> > > > happened,
> > > > > its just bad programer"
> > > > >
> > > > > will need other to reports, but these other do not have time to
> make
> > a
> > > > > little project and report that..
> > > > >
> > > > > sqlite was severi broken until gambas 3.6 and must be rewrite for
> > > gambas
> > > > > 3.8
> > > > >
> > > > > now in gamba 3.9 ther's some doc-online problems with cache and
> some
> > > > memory
> > > > > manage problems..
> > > > >
> > > > > but for not specialized programmers its very difficult to debug,
> find
> > > and
> > > > > report LIKE THE QT problem..
> > > > >
> > > > >
> > > > >
> > > > > Lenz McKAY Gerardo (PICCORO)
> > > > > http://qgqlochekone.blogspot.com
> > > > >
> > > > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen <
> jussi.lahti...@gmail.com
> > >:
> > > > >
> > > > > > Impossible to say anything without seeing the code, which causes
> > the
> > > > > > problem.
> > > > > >
> > > > > >
> > > > > > Jussi
> > > > > >
> > > > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> > > > > > mckaygerh...@gmail.com
> > > > > > > wrote:
> > > > > >
> > > > > > > i change the odbc code for huge data to transport only two
> > objects
> > > > > with a
> > > > > > > string, and i noted that gambas before hangs sometimes... so i
> > > > > discovered
> > > > > > > that when i used collections the memory management are very
> bad..
> > > > > > >
> > > > > > > should i send a bug or where i start to see why this happened
> or
> > > its
> > > > > only
> > > > > > > happened only to me!
> > > > > > >
> > > > > > >
> > > > > > > Lenz McKAY Gerardo (PICCORO)
> > > > > > > http://qgqlochekone.blogspot.com
> > > > > > > 

Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread PICCORO McKAY Lenz
as code i send, only contanis two connection objects, one for odbc and
other for sqlite

but i cannot see or debug it, due the interface does not show nothing ...

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-25 15:31 GMT-04:00 Jussi Lahtinen :

> Have you checked what the collection contains, when the system slows down?
> Maybe the containing strings are longer than what you expect? Or maybe
> there are more elements than you expect?
> How much the running program takes memory, when things get slow?
>
>
> Jussi
>
> On Thu, May 25, 2017 at 8:21 PM, PICCORO McKAY Lenz <
> mckaygerh...@gmail.com>
> wrote:
>
> > hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7 intel
> >
> > well complete history its that many days before i run several times
> gambas
> > without close it, but in none moment used collections..
> >
> > today only with project where i used collections gambas get slower after
> > some hours...
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> >
> > 2017-05-25 10:59 GMT-04:00 Jussi Lahtinen :
> >
> > > Collection requires more memory than string array, so maybe your box is
> > > just swapping, because of low memory?
> > >
> > >
> > > Jussi
> > >
> > > On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz <
> > > mckaygerh...@gmail.com>
> > > wrote:
> > >
> > > > there are the piece of code and here there's no secret:
> > > >
> > > > Public Function getItems() As Collection
> > > >
> > > >   Dim $items As New Collection
> > > >   Dim itema, itemb as String = "something"
> > > >
> > > >   $items.Add($itema, "item1")
> > > >   $items.Add($itemb, "item2")
> > > >   $items.Add(2, "cuantos")
> > > >
> > > >   Return $items
> > > >
> > > > End
> > > >
> > > > here the previous code "bad programed" and when i swicht to
> collection
> > > > gambas ide get slower after some time, the code was:
> > > >
> > > > Public Function getItems() As String[]
> > > >
> > > >   Dim $items As New String[]
> > > >   Dim itema, itemb as String = "something"
> > > >
> > > >   $items.Add($itema)
> > > >   $items.Add($itemb)
> > > >
> > > >   Return $items
> > > >
> > > > End
> > > >
> > > > the gambas ide and the OS was not shutdown during 40 days, also the
> > > gambas
> > > > ide was not quit in this period, and in that period i run the huge
> data
> > > > code of the 3 odbc bug with 10 registers, after change the code
> to
> > > > collection  (each change are little before test) thje ide gambas get
> > slow
> > > > and does not run well..
> > > >
> > > > this happened to my other partners in the job... i test also in
> debian
> > > > jeesie and happened same!
> > > >
> > > > i noted that when alone user said something its like "nothigs its
> > > happened,
> > > > its just bad programer"
> > > >
> > > > will need other to reports, but these other do not have time to make
> a
> > > > little project and report that..
> > > >
> > > > sqlite was severi broken until gambas 3.6 and must be rewrite for
> > gambas
> > > > 3.8
> > > >
> > > > now in gamba 3.9 ther's some doc-online problems with cache and some
> > > memory
> > > > manage problems..
> > > >
> > > > but for not specialized programmers its very difficult to debug, find
> > and
> > > > report LIKE THE QT problem..
> > > >
> > > >
> > > >
> > > > Lenz McKAY Gerardo (PICCORO)
> > > > http://qgqlochekone.blogspot.com
> > > >
> > > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen  >:
> > > >
> > > > > Impossible to say anything without seeing the code, which causes
> the
> > > > > problem.
> > > > >
> > > > >
> > > > > Jussi
> > > > >
> > > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> > > > > mckaygerh...@gmail.com
> > > > > > wrote:
> > > > >
> > > > > > i change the odbc code for huge data to transport only two
> objects
> > > > with a
> > > > > > string, and i noted that gambas before hangs sometimes... so i
> > > > discovered
> > > > > > that when i used collections the memory management are very bad..
> > > > > >
> > > > > > should i send a bug or where i start to see why this happened or
> > its
> > > > only
> > > > > > happened only to me!
> > > > > >
> > > > > >
> > > > > > Lenz McKAY Gerardo (PICCORO)
> > > > > > http://qgqlochekone.blogspot.com
> > > > > > 
> > > > > > --
> > > > > > Check out the vibrant tech community on one of the world's most
> > > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > > > ___
> > > > > > Gambas-user mailing list
> > > > > > Gambas-user@lists.sourceforge.net
> > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > > > >
> > > > > 
> > > > > --
> > > > > Check out the vibrant tech community on one of the world's most
> > > > > engaging 

Re: [Gambas-user] XMLRPC-Server

2017-05-25 Thread PICCORO McKAY Lenz
umm thanks for ! and tht means that a cgi based XMLRPC server may be
complicated to make..

in any case, many thanks for the files..  jajaja I feel very sorry,with
German family and I am the only one who does not speak the language

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-25 15:13 GMT-04:00 Hans Lehmann :

> Hello Lee,
> Hi Gerhard (PICOORO),
>
> I have now installed a PHP XMLRPC server (version 3) on my local Lighttpd
> web server - it is just a PHP file and two necessary PHPXMLRPC libraries -
> and call the defined service with a Gambas XMLRPC client. It works well.
>
>
> Sincerely
>
> Hans
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Change the code and copy in other project

2017-05-25 Thread Jussi Lahtinen
Src folder contains the source code for your project. You don't need to use
IDE to copy or edit the files.
Compiled binary does not contain source code, nor the compiling touches to
the src folder. It is only read during the compilation.


Jussi



On Thu, May 25, 2017 at 9:06 PM, Gianluigi  wrote:

> I need to copy modules and classes from my project, change the code
> partially and copy it to another project.
> Is this only possible from IDE or is it possible also from a compiled
> project?
> Is there still the src folder in the compiled project?
>
> Regards
> Gianluigi
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Jussi Lahtinen
Have you checked what the collection contains, when the system slows down?
Maybe the containing strings are longer than what you expect? Or maybe
there are more elements than you expect?
How much the running program takes memory, when things get slow?


Jussi

On Thu, May 25, 2017 at 8:21 PM, PICCORO McKAY Lenz 
wrote:

> hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7 intel
>
> well complete history its that many days before i run several times gambas
> without close it, but in none moment used collections..
>
> today only with project where i used collections gambas get slower after
> some hours...
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-25 10:59 GMT-04:00 Jussi Lahtinen :
>
> > Collection requires more memory than string array, so maybe your box is
> > just swapping, because of low memory?
> >
> >
> > Jussi
> >
> > On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz <
> > mckaygerh...@gmail.com>
> > wrote:
> >
> > > there are the piece of code and here there's no secret:
> > >
> > > Public Function getItems() As Collection
> > >
> > >   Dim $items As New Collection
> > >   Dim itema, itemb as String = "something"
> > >
> > >   $items.Add($itema, "item1")
> > >   $items.Add($itemb, "item2")
> > >   $items.Add(2, "cuantos")
> > >
> > >   Return $items
> > >
> > > End
> > >
> > > here the previous code "bad programed" and when i swicht to collection
> > > gambas ide get slower after some time, the code was:
> > >
> > > Public Function getItems() As String[]
> > >
> > >   Dim $items As New String[]
> > >   Dim itema, itemb as String = "something"
> > >
> > >   $items.Add($itema)
> > >   $items.Add($itemb)
> > >
> > >   Return $items
> > >
> > > End
> > >
> > > the gambas ide and the OS was not shutdown during 40 days, also the
> > gambas
> > > ide was not quit in this period, and in that period i run the huge data
> > > code of the 3 odbc bug with 10 registers, after change the code to
> > > collection  (each change are little before test) thje ide gambas get
> slow
> > > and does not run well..
> > >
> > > this happened to my other partners in the job... i test also in debian
> > > jeesie and happened same!
> > >
> > > i noted that when alone user said something its like "nothigs its
> > happened,
> > > its just bad programer"
> > >
> > > will need other to reports, but these other do not have time to make a
> > > little project and report that..
> > >
> > > sqlite was severi broken until gambas 3.6 and must be rewrite for
> gambas
> > > 3.8
> > >
> > > now in gamba 3.9 ther's some doc-online problems with cache and some
> > memory
> > > manage problems..
> > >
> > > but for not specialized programmers its very difficult to debug, find
> and
> > > report LIKE THE QT problem..
> > >
> > >
> > >
> > > Lenz McKAY Gerardo (PICCORO)
> > > http://qgqlochekone.blogspot.com
> > >
> > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen :
> > >
> > > > Impossible to say anything without seeing the code, which causes the
> > > > problem.
> > > >
> > > >
> > > > Jussi
> > > >
> > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> > > > mckaygerh...@gmail.com
> > > > > wrote:
> > > >
> > > > > i change the odbc code for huge data to transport only two objects
> > > with a
> > > > > string, and i noted that gambas before hangs sometimes... so i
> > > discovered
> > > > > that when i used collections the memory management are very bad..
> > > > >
> > > > > should i send a bug or where i start to see why this happened or
> its
> > > only
> > > > > happened only to me!
> > > > >
> > > > >
> > > > > Lenz McKAY Gerardo (PICCORO)
> > > > > http://qgqlochekone.blogspot.com
> > > > > 
> > > > > --
> > > > > Check out the vibrant tech community on one of the world's most
> > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > > ___
> > > > > Gambas-user mailing list
> > > > > Gambas-user@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > > >
> > > > 
> > > > --
> > > > Check out the vibrant tech community on one of the world's most
> > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > ___
> > > > Gambas-user mailing list
> > > > Gambas-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > >
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > 

[Gambas-user] Fwd: ​ Re: Keyboard locked -- insisting one more time

2017-05-25 Thread Fabien Bodard
-- Forwarded message --
From: Fernando Cabral 
Date: 2017-05-25 0:12 GMT+02:00
Subject: Re: [Gambas-user] Re: Keyboard locked -- insisting one more time
To: Fabien Bodard 


I

2017-05-24 14:31 GMT-03:00 Fabien Bodard :
>
> can you describe your machine ?

If you mean hardware, I use notebook HP, Dell and Acer. They all have
the same problem.
As to the operating system, they are all running Linux Mint 18.1 with
Linux 4.4.0-78
(4.4.0-78-generic #99-Ubuntu SMP Thu Apr 27 15:29:09 UTC 2017 x86_64
x86_64 x86_64 GNU/Linux)

As to Gambas, the last version available in the PPA.

Regards

- fernando


>
>
> 2017-05-24 18:13 GMT+02:00 Fernando Cabral :
> > Glaucio wrote:
> >>I don't know, but, since it works in other systems than Xubuntu/Mint, I
> >>guess that may be some environment variable missing.
> >
> > Could be an environment variable issue. But which variable? As far as I
> > know, I did not change anything. So, if anything changed, it was changed
> > stealthily by an unknown program.
> >
> >>With Benoit's script, for example, the TextEditor didn't worked here, but
> >>the same component did work just fine running in Gambas' design time
> >>test. Again, the difference, I guess, is pretty much just the execution
> >>environment, or not?
> >
> > Only worked here on the virtual machine; not on the real machine.
> >
> >
> > 2017-05-24 7:50 GMT-03:00 Glaucio Araujo :
> >
> >> I don't know, but, since it works in other systems than Xubuntu/Mint, I
> >> guess that may be some environment variable missing.
> >>
> >> With Benoit's script, for exemple, the TextEditor didin't worked here, but
> >> the same component did worked just fine running in Gambas' design time
> >> test. Again, the difference, I guess, is pretty much just the execution
> >> environment, or not?
> >>
> >>
> >>
> >>
> >> ---
> >>
> >> Gláucio de Araujo
> >>
> >> Mail : glaucio.de.ara...@gmail.com
> >> TIM  : (11) 95900-7801 (WhatsApp / Telegram)
> >>
> >> 2017-05-24 7:25 GMT-03:00 Benoît Minisini :
> >>
> >> > Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
> >> > > We need to wait for Benoit as it's a misstake on the rev 8132.
> >> > >
> >> >
> >> > I'm not sure it's a mistake in rev 8132. Fernando must check with an
> >> > older revision to see if the problem comes from it.
> >> >
> >> > Moreover, Glaucio says he has the problem with an older version of
> >> > Gambas, so...
> >> >
> >> > I think it's a problem related to QT and the Xim input method. So I
> >> > suggest people to change their input method to see if something changes.
> >> >
> >> > --
> >> > Benoît Minisini
> >> >
> >> > 
> >> > --
> >> > Check out the vibrant tech community on one of the world's most
> >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >> > ___
> >> > Gambas-user mailing list
> >> > Gambas-user@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >> >
> >> 
> >> --
> >> Check out the vibrant tech community on one of the world's most
> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >> ___
> >> Gambas-user mailing list
> >> Gambas-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >
> >
> >
> > --
> > Fernando Cabral
> > Blogue: http://fernandocabral.org
> > Twitter: http://twitter.com/fjcabral
> > e-mail: fernandojosecab...@gmail.com
> > Facebook: f...@fcabral.com.br
> > Telegram: +55 (37) 99988-8868
> > Wickr ID: fernandocabral
> > WhatsApp: +55 (37) 99988-8868
> > Skype:  fernandojosecabral
> > Telefone fixo: +55 (37) 3521-2183
> > Telefone celular: +55 (37) 99988-8868
> >
> > Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> > nenhum político ou cientista poderá se gabar de nada.
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> --
> Fabien Bodard




--
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou 

Re: [Gambas-user] XMLRPC-Server

2017-05-25 Thread Hans Lehmann

Hello Lee,
Hi Gerhard (PICOORO),

I have now installed a PHP XMLRPC server (version 3) on my local 
Lighttpd web server - it is just a PHP file and two necessary PHPXMLRPC 
libraries - and call the defined service with a Gambas XMLRPC client. It 
works well.


Sincerely

Hans
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Change the code and copy in other project

2017-05-25 Thread Gianluigi
I need to copy modules and classes from my project, change the code
partially and copy it to another project.
Is this only possible from IDE or is it possible also from a compiled
project?
Is there still the src folder in the compiled project?

Regards
Gianluigi
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread PICCORO McKAY Lenz
hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7 intel

well complete history its that many days before i run several times gambas
without close it, but in none moment used collections..

today only with project where i used collections gambas get slower after
some hours...

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-25 10:59 GMT-04:00 Jussi Lahtinen :

> Collection requires more memory than string array, so maybe your box is
> just swapping, because of low memory?
>
>
> Jussi
>
> On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz <
> mckaygerh...@gmail.com>
> wrote:
>
> > there are the piece of code and here there's no secret:
> >
> > Public Function getItems() As Collection
> >
> >   Dim $items As New Collection
> >   Dim itema, itemb as String = "something"
> >
> >   $items.Add($itema, "item1")
> >   $items.Add($itemb, "item2")
> >   $items.Add(2, "cuantos")
> >
> >   Return $items
> >
> > End
> >
> > here the previous code "bad programed" and when i swicht to collection
> > gambas ide get slower after some time, the code was:
> >
> > Public Function getItems() As String[]
> >
> >   Dim $items As New String[]
> >   Dim itema, itemb as String = "something"
> >
> >   $items.Add($itema)
> >   $items.Add($itemb)
> >
> >   Return $items
> >
> > End
> >
> > the gambas ide and the OS was not shutdown during 40 days, also the
> gambas
> > ide was not quit in this period, and in that period i run the huge data
> > code of the 3 odbc bug with 10 registers, after change the code to
> > collection  (each change are little before test) thje ide gambas get slow
> > and does not run well..
> >
> > this happened to my other partners in the job... i test also in debian
> > jeesie and happened same!
> >
> > i noted that when alone user said something its like "nothigs its
> happened,
> > its just bad programer"
> >
> > will need other to reports, but these other do not have time to make a
> > little project and report that..
> >
> > sqlite was severi broken until gambas 3.6 and must be rewrite for gambas
> > 3.8
> >
> > now in gamba 3.9 ther's some doc-online problems with cache and some
> memory
> > manage problems..
> >
> > but for not specialized programmers its very difficult to debug, find and
> > report LIKE THE QT problem..
> >
> >
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> >
> > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen :
> >
> > > Impossible to say anything without seeing the code, which causes the
> > > problem.
> > >
> > >
> > > Jussi
> > >
> > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> > > mckaygerh...@gmail.com
> > > > wrote:
> > >
> > > > i change the odbc code for huge data to transport only two objects
> > with a
> > > > string, and i noted that gambas before hangs sometimes... so i
> > discovered
> > > > that when i used collections the memory management are very bad..
> > > >
> > > > should i send a bug or where i start to see why this happened or its
> > only
> > > > happened only to me!
> > > >
> > > >
> > > > Lenz McKAY Gerardo (PICCORO)
> > > > http://qgqlochekone.blogspot.com
> > > > 
> > > > --
> > > > Check out the vibrant tech community on one of the world's most
> > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > ___
> > > > Gambas-user mailing list
> > > > Gambas-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > >
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging 

Re: [Gambas-user] How to enumerate through SQL Result (was Re: Gambas-user Digest, Vol 132, Issue 29)

2017-05-25 Thread Unaise EK
Sir
My problem solved
Public Procedure AddList()
  Dim ListQurey As String
  Dim Lresult As Result

  ListQurey = "SELECT name FROM name_tbl"
  Lresult = MODMain.MyConn.Exec(ListQurey)
  'If Lresult.Count > 0 Then
  '*  Do While Not Eof(Lresult)*
  while Lresult.available
  ListBox1.Add(Lresult!"name")
  Lresult.MoveNext
  wend
  'Endif

On 25 May 2017 9:06 p.m., "T Lee Davidson"  wrote:

> On 05/25/2017 05:24 AM, Unaise EK wrote:
> > this is my code for displaying data in listbox, but it did not working,
> pls
> > help
> >
> > Public Procedure AddList()
> >Dim ListQurey As String
> >Dim Lresult As Result
> >
> >ListQurey = "SELECT name FROM name_tbl"
> >Lresult = MODMain.MyConn.Exec(ListQurey)
> >If Lresult.Count > 0 Then
> >*  Do While Not Eof(Lresult)*
> >ListBox1.Add(Lresult!"name")
> >Lresult.MoveNext
> >  Loop
> >Endif
> >
> > End
>
> I don't know why you are trying to use Eof() on a SQL Result. Eof is for a
> Stream.
>
> See:
> http://gambaswiki.org/wiki/comp/gb.db/result
>
> "This class is enumerable with the FOR EACH keyword."
>
> And, I believe 'ListBox1.Add(Lresult!"name")' should be
> 'ListBox1.Add(Lresult!name)' or 'ListBox1.Add(Lresult["name"])'.
>
>
> Also, please try to compose meaningful subject lines by creating a _new_
> message instead of simply replying to a message that is
> not related to your issue. That helps those who view list messages in
> threaded mode. TIA.
>
> --
> Lee
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to enumerate through SQL Result (was Re: Gambas-user Digest, Vol 132, Issue 29)

2017-05-25 Thread T Lee Davidson
On 05/25/2017 05:24 AM, Unaise EK wrote:
> this is my code for displaying data in listbox, but it did not working, pls
> help
> 
> Public Procedure AddList()
>Dim ListQurey As String
>Dim Lresult As Result
> 
>ListQurey = "SELECT name FROM name_tbl"
>Lresult = MODMain.MyConn.Exec(ListQurey)
>If Lresult.Count > 0 Then
>*  Do While Not Eof(Lresult)*
>ListBox1.Add(Lresult!"name")
>Lresult.MoveNext
>  Loop
>Endif
> 
> End

I don't know why you are trying to use Eof() on a SQL Result. Eof is for a 
Stream.

See:
http://gambaswiki.org/wiki/comp/gb.db/result

"This class is enumerable with the FOR EACH keyword."

And, I believe 'ListBox1.Add(Lresult!"name")' should be 
'ListBox1.Add(Lresult!name)' or 'ListBox1.Add(Lresult["name"])'.


Also, please try to compose meaningful subject lines by creating a _new_ 
message instead of simply replying to a message that is 
not related to your issue. That helps those who view list messages in threaded 
mode. TIA.

-- 
Lee

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1109: Wrong Substitution

2017-05-25 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1109=L21haW4-

Michael ALTROGGE reported a new bug.

Summary
---

Wrong Substitution

Type : Bug
Priority : Medium
Gambas version   : 3.9.90 (TRUNK)
Product  : PostgreSQL driver


Description
---

Doing this:

Public Sub MAIN()
Dim strSQL As String
DatabaseOpenCon()
-->strSQL = DBConMain.Subst("SELECT &1, &2, &3, &4, &5, &6 FROM &7", 
"INDX", "MNDT", "SQLT", "SQLI", "SQLB", "SQLN", "DD00T")
DBErgMain = DBConMain.Exec(strSQL)
For Each DBErgMain
Debug DBErgMain[0], DBErgMain[1], DBErgMain[2], DBErgMain[3], 
DBErgMain[4], DBErgMain[5]
Next
End

will result in that:

--> SYS_DB.MAIN.10: SELECT E'INDX', E'MNDT', E'SQLT', E'SQLI', E'SQLB', E'SQLN' 
FROM E'DD00T'


System information
--

[System]
Gambas=3.9.90
OperatingSystem=Linux
Kernel=4.4.0-72-generic
Architecture=x86_64
Distribution=Linux Mint 18.1 Serena
Desktop=CINNAMON
Theme=Gtk
Language=de_DE.UTF-8
Memory=3511M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.803.0
GTK+2=libgtk-x11-2.0.so.0.2400.30
GTK+3=libgtk-3.so.0.1800.9
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.58.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.5.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-EFHGqAGhVd,guid=9b762d3834ba788f5de4cc2b5926db76
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
DESKTOP_AUTOSTART_ID=107b3a8f22f976950d14957187758163010020170012
DESKTOP_SESSION=cinnamon
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=cinnamon
GDM_XSERVER_LOCATION=local
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GTK_MODULES=gail:atk-bridge
GTK_OVERLAY_SCROLLING=1
HOME=
LANG=de_DE.UTF-8
LOGNAME=
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
MDMSESSION=cinnamon
MDM_LANG=de_DE.UTF-8
MDM_XSERVER_LOCATION=local
PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=
QT_ACCESSIBILITY=1
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_QPA_PLATFORMTHEME=qgnomeplatform
QT_STYLE_OVERRIDE=gtk
SESSION_MANAGER=local/:@/tmp/.ICE-unix/2017,unix/:/tmp/.ICE-unix/2017
SHELL=/bin/bash
SSH_AGENT_PID=2101
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=
USERNAME=
WINDOWPATH=7
XAUTHORITY=/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_CURRENT_DESKTOP=X-Cinnamon
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=5ab3c275b7304ed3b8aeef9ffcc37eb4-1495718772.950534-1270231686
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_ID=c1
XDG_VTNR=7



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Jussi Lahtinen
Collection requires more memory than string array, so maybe your box is
just swapping, because of low memory?


Jussi

On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz 
wrote:

> there are the piece of code and here there's no secret:
>
> Public Function getItems() As Collection
>
>   Dim $items As New Collection
>   Dim itema, itemb as String = "something"
>
>   $items.Add($itema, "item1")
>   $items.Add($itemb, "item2")
>   $items.Add(2, "cuantos")
>
>   Return $items
>
> End
>
> here the previous code "bad programed" and when i swicht to collection
> gambas ide get slower after some time, the code was:
>
> Public Function getItems() As String[]
>
>   Dim $items As New String[]
>   Dim itema, itemb as String = "something"
>
>   $items.Add($itema)
>   $items.Add($itemb)
>
>   Return $items
>
> End
>
> the gambas ide and the OS was not shutdown during 40 days, also the gambas
> ide was not quit in this period, and in that period i run the huge data
> code of the 3 odbc bug with 10 registers, after change the code to
> collection  (each change are little before test) thje ide gambas get slow
> and does not run well..
>
> this happened to my other partners in the job... i test also in debian
> jeesie and happened same!
>
> i noted that when alone user said something its like "nothigs its happened,
> its just bad programer"
>
> will need other to reports, but these other do not have time to make a
> little project and report that..
>
> sqlite was severi broken until gambas 3.6 and must be rewrite for gambas
> 3.8
>
> now in gamba 3.9 ther's some doc-online problems with cache and some memory
> manage problems..
>
> but for not specialized programmers its very difficult to debug, find and
> report LIKE THE QT problem..
>
>
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen :
>
> > Impossible to say anything without seeing the code, which causes the
> > problem.
> >
> >
> > Jussi
> >
> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> > mckaygerh...@gmail.com
> > > wrote:
> >
> > > i change the odbc code for huge data to transport only two objects
> with a
> > > string, and i noted that gambas before hangs sometimes... so i
> discovered
> > > that when i used collections the memory management are very bad..
> > >
> > > should i send a bug or where i start to see why this happened or its
> only
> > > happened only to me!
> > >
> > >
> > > Lenz McKAY Gerardo (PICCORO)
> > > http://qgqlochekone.blogspot.com
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] An Issue With Shell command and sudoers rules

2017-05-25 Thread T Lee Davidson
Disable (ie. comment out) targetpw and the "ALL  ALL=(ALL) ALL" line in 
/etc/sudoers.

Then you should probably allow regular users to execute only certain commands 
with something like:
%users  ALL=/home/adminuser/bin/comando.sh
or a special group for 'privileged' users:
%wheel  ALL=/home/adminuser/bin/comando.sh

See:
https://www.novell.com/support/kb/doc.php?id=7002705

-- 
Lee


On 05/25/2017 05:13 AM, Jorge Carrión wrote:
> Oh... well, I'm afraid that I've a mistake.
> 
> All of this isn't a gambas issue.
> 
> BUT if someone knows a way to let a non-sudoer user to update the system
> without know the admin password I'll be very grateful .
> 
> Sorry for the noise.
> 
> Best Regards

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Unaise EK
Sir one more help,

Public Sub Save_button_Click()
Dim InsertDb As String
'Dim Dx As Date
'Format(Dx, "dd/mm/")
InsertDb = "INSERT INTO name_tbl (adm, name, place, date_ad) VALUES ('" &
(TextBox1.Text) & "','" & (TextBox2.Text) & "', '" & (TextBox3.Text) & "',
'" & DateBox1.Value & "' )"
MODMain.MyConn.Exec(InsertDb)
message("Data saved")
clear1
'Form2.Show

End



   Sent with Mailtrack


On Thu, May 25, 2017 at 3:26 PM, Unaise EK  wrote:

> Thanks, it is working
>
> On 25 May 2017 3:11 p.m., "Jorge Carrión"  wrote:
>
>> Try
>>
>> Public Procedure AddList()
>>   Dim ListQurey As String
>>   Dim Lresult As Result
>>
>>   ListQurey = "SELECT name FROM name_tbl"
>>   Lresult = MODMain.MyConn.Exec(ListQurey)
>>   'If Lresult.Count > 0 Then
>>   '*  Do While Not Eof(Lresult)*
>>   while Lresult.available
>>   ListBox1.Add(Lresult!"name")
>>   Lresult.MoveNext
>>   wend
>>   'Endif
>>
>> End
>>
>> 2017-05-25 11:29 GMT+02:00 Unaise EK :
>>
>> > this is my code for displaying data in listbox, but it did not working,
>> pls
>> > help
>> >
>> > Public Procedure AddList()
>> >   Dim ListQurey As String
>> >   Dim Lresult As Result
>> >
>> >   ListQurey = "SELECT name FROM name_tbl"
>> >   Lresult = MODMain.MyConn.Exec(ListQurey)
>> >   If Lresult.Count > 0 Then
>> >   *  Do While Not Eof(Lresult)*
>> >   ListBox1.Add(Lresult!"name")
>> >   Lresult.MoveNext
>> > Loop
>> >   Endif
>> >
>> > End
>> >
>> >
>> >
>> >    Sent with Mailtrack
>> > > > referral=unais...@gmail.com=22>
>> >
>> > On Thu, May 25, 2017 at 2:52 PM, Unaise EK  wrote:
>> >
>> > > can you give example for
>> > > DO WHILE NOT database EOF
>> > >
>> > > Loop
>> > >
>> > >
>> > >
>> > >
>> > >    Sent with Mailtrack
>> > > > > referral=unais...@gmail.com=22>
>> > >
>> > > On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz <
>> > > mckaygerh...@gmail.com> wrote:
>> > >
>> > >> there are the piece of code and here there's no secret:
>> > >>
>> > >> Public Function getItems() As Collection
>> > >>
>> > >>   Dim $items As New Collection
>> > >>   Dim itema, itemb as String = "something"
>> > >>
>> > >>   $items.Add($itema, "item1")
>> > >>   $items.Add($itemb, "item2")
>> > >>   $items.Add(2, "cuantos")
>> > >>
>> > >>   Return $items
>> > >>
>> > >> End
>> > >>
>> > >> here the previous code "bad programed" and when i swicht to
>> collection
>> > >> gambas ide get slower after some time, the code was:
>> > >>
>> > >> Public Function getItems() As String[]
>> > >>
>> > >>   Dim $items As New String[]
>> > >>   Dim itema, itemb as String = "something"
>> > >>
>> > >>   $items.Add($itema)
>> > >>   $items.Add($itemb)
>> > >>
>> > >>   Return $items
>> > >>
>> > >> End
>> > >>
>> > >> the gambas ide and the OS was not shutdown during 40 days, also the
>> > gambas
>> > >> ide was not quit in this period, and in that period i run the huge
>> data
>> > >> code of the 3 odbc bug with 10 registers, after change the code
>> to
>> > >> collection  (each change are little before test) thje ide gambas get
>> > slow
>> > >> and does not run well..
>> > >>
>> > >> this happened to my other partners in the job... i test also in
>> debian
>> > >> jeesie and happened same!
>> > >>
>> > >> i noted that when alone user said something its like "nothigs its
>> > >> happened,
>> > >> its just bad programer"
>> > >>
>> > >> will need other to reports, but these other do not have time to make
>> a
>> > >> little project and report that..
>> > >>
>> > >> sqlite was severi broken until gambas 3.6 and must be rewrite for
>> gambas
>> > >> 3.8
>> > >>
>> > >> now in gamba 3.9 ther's some doc-online problems with cache and some
>> > >> memory
>> > >> manage problems..
>> > >>
>> > >> but for not specialized programmers its very difficult to debug, find
>> > and
>> > >> report LIKE THE QT problem..
>> > >>
>> > >>
>> > >>
>> > >> Lenz McKAY Gerardo (PICCORO)
>> > >> http://qgqlochekone.blogspot.com
>> > >>
>> > >> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen > >:
>> > >>
>> > >> > Impossible to say anything without seeing the code, which causes
>> the
>> > >> > problem.
>> > >> >
>> > >> >
>> > >> > Jussi
>> > >> >
>> > >> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
>> > >> > mckaygerh...@gmail.com
>> > >> > > wrote:
>> > >> >
>> > >> > > i change the odbc code for huge data to transport only two
>> objects
>> > >> with a
>> > >> > > string, and i noted that gambas before hangs sometimes... so i
>> > >> discovered
>> > >> > > that when i used collections the memory management are very bad..
>> > >> > >
>> > >> > > should i send a bug or where i start to see why this happened or
>> its
>> > >> only
>> > 

Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Unaise EK
Sir one more help,

Public Sub Save_button_Click()
Dim InsertDb As String
'Dim Dx As Date
'Format(Dx, "dd/mm/")
InsertDb = "INSERT INTO name_tbl (adm, name, place, date_ad) VALUES ('" &
(TextBox1.Text) & "','" & (TextBox2.Text) & "', '" & (TextBox3.Text) & "',
'" & DateBox1.Value & "' )"
MODMain.MyConn.Exec(InsertDb)
message("Data saved")
clear1
'Form2.Show

date value not seen in database. it shows blank


End

On Thu, May 25, 2017 at 3:26 PM, Unaise EK  wrote:

> Thanks, it is working
>
> On 25 May 2017 3:11 p.m., "Jorge Carrión"  wrote:
>
>> Try
>>
>> Public Procedure AddList()
>>   Dim ListQurey As String
>>   Dim Lresult As Result
>>
>>   ListQurey = "SELECT name FROM name_tbl"
>>   Lresult = MODMain.MyConn.Exec(ListQurey)
>>   'If Lresult.Count > 0 Then
>>   '*  Do While Not Eof(Lresult)*
>>   while Lresult.available
>>   ListBox1.Add(Lresult!"name")
>>   Lresult.MoveNext
>>   wend
>>   'Endif
>>
>> End
>>
>> 2017-05-25 11:29 GMT+02:00 Unaise EK :
>>
>> > this is my code for displaying data in listbox, but it did not working,
>> pls
>> > help
>> >
>> > Public Procedure AddList()
>> >   Dim ListQurey As String
>> >   Dim Lresult As Result
>> >
>> >   ListQurey = "SELECT name FROM name_tbl"
>> >   Lresult = MODMain.MyConn.Exec(ListQurey)
>> >   If Lresult.Count > 0 Then
>> >   *  Do While Not Eof(Lresult)*
>> >   ListBox1.Add(Lresult!"name")
>> >   Lresult.MoveNext
>> > Loop
>> >   Endif
>> >
>> > End
>> >
>> >
>> >
>> >    Sent with Mailtrack
>> > > > referral=unais...@gmail.com=22>
>> >
>> > On Thu, May 25, 2017 at 2:52 PM, Unaise EK  wrote:
>> >
>> > > can you give example for
>> > > DO WHILE NOT database EOF
>> > >
>> > > Loop
>> > >
>> > >
>> > >
>> > >
>> > >    Sent with Mailtrack
>> > > > > referral=unais...@gmail.com=22>
>> > >
>> > > On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz <
>> > > mckaygerh...@gmail.com> wrote:
>> > >
>> > >> there are the piece of code and here there's no secret:
>> > >>
>> > >> Public Function getItems() As Collection
>> > >>
>> > >>   Dim $items As New Collection
>> > >>   Dim itema, itemb as String = "something"
>> > >>
>> > >>   $items.Add($itema, "item1")
>> > >>   $items.Add($itemb, "item2")
>> > >>   $items.Add(2, "cuantos")
>> > >>
>> > >>   Return $items
>> > >>
>> > >> End
>> > >>
>> > >> here the previous code "bad programed" and when i swicht to
>> collection
>> > >> gambas ide get slower after some time, the code was:
>> > >>
>> > >> Public Function getItems() As String[]
>> > >>
>> > >>   Dim $items As New String[]
>> > >>   Dim itema, itemb as String = "something"
>> > >>
>> > >>   $items.Add($itema)
>> > >>   $items.Add($itemb)
>> > >>
>> > >>   Return $items
>> > >>
>> > >> End
>> > >>
>> > >> the gambas ide and the OS was not shutdown during 40 days, also the
>> > gambas
>> > >> ide was not quit in this period, and in that period i run the huge
>> data
>> > >> code of the 3 odbc bug with 10 registers, after change the code
>> to
>> > >> collection  (each change are little before test) thje ide gambas get
>> > slow
>> > >> and does not run well..
>> > >>
>> > >> this happened to my other partners in the job... i test also in
>> debian
>> > >> jeesie and happened same!
>> > >>
>> > >> i noted that when alone user said something its like "nothigs its
>> > >> happened,
>> > >> its just bad programer"
>> > >>
>> > >> will need other to reports, but these other do not have time to make
>> a
>> > >> little project and report that..
>> > >>
>> > >> sqlite was severi broken until gambas 3.6 and must be rewrite for
>> gambas
>> > >> 3.8
>> > >>
>> > >> now in gamba 3.9 ther's some doc-online problems with cache and some
>> > >> memory
>> > >> manage problems..
>> > >>
>> > >> but for not specialized programmers its very difficult to debug, find
>> > and
>> > >> report LIKE THE QT problem..
>> > >>
>> > >>
>> > >>
>> > >> Lenz McKAY Gerardo (PICCORO)
>> > >> http://qgqlochekone.blogspot.com
>> > >>
>> > >> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen > >:
>> > >>
>> > >> > Impossible to say anything without seeing the code, which causes
>> the
>> > >> > problem.
>> > >> >
>> > >> >
>> > >> > Jussi
>> > >> >
>> > >> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
>> > >> > mckaygerh...@gmail.com
>> > >> > > wrote:
>> > >> >
>> > >> > > i change the odbc code for huge data to transport only two
>> objects
>> > >> with a
>> > >> > > string, and i noted that gambas before hangs sometimes... so i
>> > >> discovered
>> > >> > > that when i used collections the memory management are very bad..
>> > >> > >
>> > >> > > should i send a bug or where i start to see why this happened or
>> its
>> > >> only
>> > >> > > happened only to me!
>> > >> > >
>> > >> > >
>> > >> > > Lenz 

Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Unaise EK
Thanks, it is working

On 25 May 2017 3:11 p.m., "Jorge Carrión"  wrote:

> Try
>
> Public Procedure AddList()
>   Dim ListQurey As String
>   Dim Lresult As Result
>
>   ListQurey = "SELECT name FROM name_tbl"
>   Lresult = MODMain.MyConn.Exec(ListQurey)
>   'If Lresult.Count > 0 Then
>   '*  Do While Not Eof(Lresult)*
>   while Lresult.available
>   ListBox1.Add(Lresult!"name")
>   Lresult.MoveNext
>   wend
>   'Endif
>
> End
>
> 2017-05-25 11:29 GMT+02:00 Unaise EK :
>
> > this is my code for displaying data in listbox, but it did not working,
> pls
> > help
> >
> > Public Procedure AddList()
> >   Dim ListQurey As String
> >   Dim Lresult As Result
> >
> >   ListQurey = "SELECT name FROM name_tbl"
> >   Lresult = MODMain.MyConn.Exec(ListQurey)
> >   If Lresult.Count > 0 Then
> >   *  Do While Not Eof(Lresult)*
> >   ListBox1.Add(Lresult!"name")
> >   Lresult.MoveNext
> > Loop
> >   Endif
> >
> > End
> >
> >
> >
> >    Sent with Mailtrack
> >  > referral=unais...@gmail.com=22>
> >
> > On Thu, May 25, 2017 at 2:52 PM, Unaise EK  wrote:
> >
> > > can you give example for
> > > DO WHILE NOT database EOF
> > >
> > > Loop
> > >
> > >
> > >
> > >
> > >    Sent with Mailtrack
> > >  > referral=unais...@gmail.com=22>
> > >
> > > On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz <
> > > mckaygerh...@gmail.com> wrote:
> > >
> > >> there are the piece of code and here there's no secret:
> > >>
> > >> Public Function getItems() As Collection
> > >>
> > >>   Dim $items As New Collection
> > >>   Dim itema, itemb as String = "something"
> > >>
> > >>   $items.Add($itema, "item1")
> > >>   $items.Add($itemb, "item2")
> > >>   $items.Add(2, "cuantos")
> > >>
> > >>   Return $items
> > >>
> > >> End
> > >>
> > >> here the previous code "bad programed" and when i swicht to collection
> > >> gambas ide get slower after some time, the code was:
> > >>
> > >> Public Function getItems() As String[]
> > >>
> > >>   Dim $items As New String[]
> > >>   Dim itema, itemb as String = "something"
> > >>
> > >>   $items.Add($itema)
> > >>   $items.Add($itemb)
> > >>
> > >>   Return $items
> > >>
> > >> End
> > >>
> > >> the gambas ide and the OS was not shutdown during 40 days, also the
> > gambas
> > >> ide was not quit in this period, and in that period i run the huge
> data
> > >> code of the 3 odbc bug with 10 registers, after change the code to
> > >> collection  (each change are little before test) thje ide gambas get
> > slow
> > >> and does not run well..
> > >>
> > >> this happened to my other partners in the job... i test also in debian
> > >> jeesie and happened same!
> > >>
> > >> i noted that when alone user said something its like "nothigs its
> > >> happened,
> > >> its just bad programer"
> > >>
> > >> will need other to reports, but these other do not have time to make a
> > >> little project and report that..
> > >>
> > >> sqlite was severi broken until gambas 3.6 and must be rewrite for
> gambas
> > >> 3.8
> > >>
> > >> now in gamba 3.9 ther's some doc-online problems with cache and some
> > >> memory
> > >> manage problems..
> > >>
> > >> but for not specialized programmers its very difficult to debug, find
> > and
> > >> report LIKE THE QT problem..
> > >>
> > >>
> > >>
> > >> Lenz McKAY Gerardo (PICCORO)
> > >> http://qgqlochekone.blogspot.com
> > >>
> > >> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen :
> > >>
> > >> > Impossible to say anything without seeing the code, which causes the
> > >> > problem.
> > >> >
> > >> >
> > >> > Jussi
> > >> >
> > >> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> > >> > mckaygerh...@gmail.com
> > >> > > wrote:
> > >> >
> > >> > > i change the odbc code for huge data to transport only two objects
> > >> with a
> > >> > > string, and i noted that gambas before hangs sometimes... so i
> > >> discovered
> > >> > > that when i used collections the memory management are very bad..
> > >> > >
> > >> > > should i send a bug or where i start to see why this happened or
> its
> > >> only
> > >> > > happened only to me!
> > >> > >
> > >> > >
> > >> > > Lenz McKAY Gerardo (PICCORO)
> > >> > > http://qgqlochekone.blogspot.com
> > >> > > 
> > >> > > --
> > >> > > Check out the vibrant tech community on one of the world's most
> > >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > >> > > ___
> > >> > > Gambas-user mailing list
> > >> > > Gambas-user@lists.sourceforge.net
> > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >> > >
> > >> > 
> > >> > --
> > >> > Check out the vibrant tech 

Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Jorge Carrión
Try

Public Procedure AddList()
  Dim ListQurey As String
  Dim Lresult As Result

  ListQurey = "SELECT name FROM name_tbl"
  Lresult = MODMain.MyConn.Exec(ListQurey)
  'If Lresult.Count > 0 Then
  '*  Do While Not Eof(Lresult)*
  while Lresult.available
  ListBox1.Add(Lresult!"name")
  Lresult.MoveNext
  wend
  'Endif

End

2017-05-25 11:29 GMT+02:00 Unaise EK :

> this is my code for displaying data in listbox, but it did not working, pls
> help
>
> Public Procedure AddList()
>   Dim ListQurey As String
>   Dim Lresult As Result
>
>   ListQurey = "SELECT name FROM name_tbl"
>   Lresult = MODMain.MyConn.Exec(ListQurey)
>   If Lresult.Count > 0 Then
>   *  Do While Not Eof(Lresult)*
>   ListBox1.Add(Lresult!"name")
>   Lresult.MoveNext
> Loop
>   Endif
>
> End
>
>
>
>    Sent with Mailtrack
>  referral=unais...@gmail.com=22>
>
> On Thu, May 25, 2017 at 2:52 PM, Unaise EK  wrote:
>
> > can you give example for
> > DO WHILE NOT database EOF
> >
> > Loop
> >
> >
> >
> >
> >    Sent with Mailtrack
> >  referral=unais...@gmail.com=22>
> >
> > On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz <
> > mckaygerh...@gmail.com> wrote:
> >
> >> there are the piece of code and here there's no secret:
> >>
> >> Public Function getItems() As Collection
> >>
> >>   Dim $items As New Collection
> >>   Dim itema, itemb as String = "something"
> >>
> >>   $items.Add($itema, "item1")
> >>   $items.Add($itemb, "item2")
> >>   $items.Add(2, "cuantos")
> >>
> >>   Return $items
> >>
> >> End
> >>
> >> here the previous code "bad programed" and when i swicht to collection
> >> gambas ide get slower after some time, the code was:
> >>
> >> Public Function getItems() As String[]
> >>
> >>   Dim $items As New String[]
> >>   Dim itema, itemb as String = "something"
> >>
> >>   $items.Add($itema)
> >>   $items.Add($itemb)
> >>
> >>   Return $items
> >>
> >> End
> >>
> >> the gambas ide and the OS was not shutdown during 40 days, also the
> gambas
> >> ide was not quit in this period, and in that period i run the huge data
> >> code of the 3 odbc bug with 10 registers, after change the code to
> >> collection  (each change are little before test) thje ide gambas get
> slow
> >> and does not run well..
> >>
> >> this happened to my other partners in the job... i test also in debian
> >> jeesie and happened same!
> >>
> >> i noted that when alone user said something its like "nothigs its
> >> happened,
> >> its just bad programer"
> >>
> >> will need other to reports, but these other do not have time to make a
> >> little project and report that..
> >>
> >> sqlite was severi broken until gambas 3.6 and must be rewrite for gambas
> >> 3.8
> >>
> >> now in gamba 3.9 ther's some doc-online problems with cache and some
> >> memory
> >> manage problems..
> >>
> >> but for not specialized programmers its very difficult to debug, find
> and
> >> report LIKE THE QT problem..
> >>
> >>
> >>
> >> Lenz McKAY Gerardo (PICCORO)
> >> http://qgqlochekone.blogspot.com
> >>
> >> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen :
> >>
> >> > Impossible to say anything without seeing the code, which causes the
> >> > problem.
> >> >
> >> >
> >> > Jussi
> >> >
> >> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> >> > mckaygerh...@gmail.com
> >> > > wrote:
> >> >
> >> > > i change the odbc code for huge data to transport only two objects
> >> with a
> >> > > string, and i noted that gambas before hangs sometimes... so i
> >> discovered
> >> > > that when i used collections the memory management are very bad..
> >> > >
> >> > > should i send a bug or where i start to see why this happened or its
> >> only
> >> > > happened only to me!
> >> > >
> >> > >
> >> > > Lenz McKAY Gerardo (PICCORO)
> >> > > http://qgqlochekone.blogspot.com
> >> > > 
> >> > > --
> >> > > Check out the vibrant tech community on one of the world's most
> >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >> > > ___
> >> > > Gambas-user mailing list
> >> > > Gambas-user@lists.sourceforge.net
> >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >> > >
> >> > 
> >> > --
> >> > Check out the vibrant tech community on one of the world's most
> >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >> > ___
> >> > Gambas-user mailing list
> >> > Gambas-user@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >> >
> >> 
> >> --
> >> Check out the vibrant tech 

Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Unaise EK
this is my code for displaying data in listbox, but it did not working, pls
help

Public Procedure AddList()
  Dim ListQurey As String
  Dim Lresult As Result

  ListQurey = "SELECT name FROM name_tbl"
  Lresult = MODMain.MyConn.Exec(ListQurey)
  If Lresult.Count > 0 Then
  *  Do While Not Eof(Lresult)*
  ListBox1.Add(Lresult!"name")
  Lresult.MoveNext
Loop
  Endif

End



   Sent with Mailtrack


On Thu, May 25, 2017 at 2:52 PM, Unaise EK  wrote:

> can you give example for
> DO WHILE NOT database EOF
>
> Loop
>
>
>
>
>    Sent with Mailtrack
> 
>
> On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz <
> mckaygerh...@gmail.com> wrote:
>
>> there are the piece of code and here there's no secret:
>>
>> Public Function getItems() As Collection
>>
>>   Dim $items As New Collection
>>   Dim itema, itemb as String = "something"
>>
>>   $items.Add($itema, "item1")
>>   $items.Add($itemb, "item2")
>>   $items.Add(2, "cuantos")
>>
>>   Return $items
>>
>> End
>>
>> here the previous code "bad programed" and when i swicht to collection
>> gambas ide get slower after some time, the code was:
>>
>> Public Function getItems() As String[]
>>
>>   Dim $items As New String[]
>>   Dim itema, itemb as String = "something"
>>
>>   $items.Add($itema)
>>   $items.Add($itemb)
>>
>>   Return $items
>>
>> End
>>
>> the gambas ide and the OS was not shutdown during 40 days, also the gambas
>> ide was not quit in this period, and in that period i run the huge data
>> code of the 3 odbc bug with 10 registers, after change the code to
>> collection  (each change are little before test) thje ide gambas get slow
>> and does not run well..
>>
>> this happened to my other partners in the job... i test also in debian
>> jeesie and happened same!
>>
>> i noted that when alone user said something its like "nothigs its
>> happened,
>> its just bad programer"
>>
>> will need other to reports, but these other do not have time to make a
>> little project and report that..
>>
>> sqlite was severi broken until gambas 3.6 and must be rewrite for gambas
>> 3.8
>>
>> now in gamba 3.9 ther's some doc-online problems with cache and some
>> memory
>> manage problems..
>>
>> but for not specialized programmers its very difficult to debug, find and
>> report LIKE THE QT problem..
>>
>>
>>
>> Lenz McKAY Gerardo (PICCORO)
>> http://qgqlochekone.blogspot.com
>>
>> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen :
>>
>> > Impossible to say anything without seeing the code, which causes the
>> > problem.
>> >
>> >
>> > Jussi
>> >
>> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
>> > mckaygerh...@gmail.com
>> > > wrote:
>> >
>> > > i change the odbc code for huge data to transport only two objects
>> with a
>> > > string, and i noted that gambas before hangs sometimes... so i
>> discovered
>> > > that when i used collections the memory management are very bad..
>> > >
>> > > should i send a bug or where i start to see why this happened or its
>> only
>> > > happened only to me!
>> > >
>> > >
>> > > Lenz McKAY Gerardo (PICCORO)
>> > > http://qgqlochekone.blogspot.com
>> > > 
>> > > --
>> > > Check out the vibrant tech community on one of the world's most
>> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > > ___
>> > > Gambas-user mailing list
>> > > Gambas-user@lists.sourceforge.net
>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> > >
>> > 
>> > --
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > ___
>> > Gambas-user mailing list
>> > Gambas-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
>
> --
> M. Unaise. E.K
> 9895687604 <098956%2087604>
> Librarian,
> (BLISc, MLIS)
> JDT Islam Polytechnic College,
> Vellimadukunnu.
>



-- 
M. Unaise. E.K
9895687604
Librarian,
(BLISc, MLIS)
JDT Islam Polytechnic College,
Vellimadukunnu.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! 

Re: [Gambas-user] Gambas-user Digest, Vol 132, Issue 29

2017-05-25 Thread Unaise EK
this is my code for displaying data in listbox, but it did not working, pls
help

Public Procedure AddList()
  Dim ListQurey As String
  Dim Lresult As Result

  ListQurey = "SELECT name FROM name_tbl"
  Lresult = MODMain.MyConn.Exec(ListQurey)
  If Lresult.Count > 0 Then
  *  Do While Not Eof(Lresult)*
  ListBox1.Add(Lresult!"name")
  Lresult.MoveNext
Loop
  Endif

End




   Sent with Mailtrack


On Wed, May 24, 2017 at 10:26 AM, Dimitris Anogiatis 
wrote:

> Does the same behavior occur with a wired keyboard (not your wireless
> Logitech K330)?
>
> On Tue, May 16, 2017 at 3:48 AM, Glaucio Araujo <
> glaucio.de.ara...@gmail.com
> > wrote:
>
> > Hi, Jussi
> >
> >
> > My Xorg.0.log is in ~/.local/share/xorg/
> >
> > Log attached.
> >
> > My Xinput:
> >
> >
> > gda@acer:~$ xinput list
> > ⎡ Virtual core pointerid=2[master pointer
> (3)]
> > ⎜   ↳ Virtual core XTEST pointer  id=4[slave  pointer
> > (2)]
> > ⎜   ↳ Logitech M215 2nd Gen   id=11[slave
> pointer
> > (2)]
> > ⎜   ↳ Logitech K330   id=10[slave
> pointer
> > (2)]
> > ⎜   ↳ ETPS/2 Elantech Touchpadid=13[slave
> pointer
> > (2)]
> > ⎣ Virtual core keyboard   id=3[master keyboard
> (2)]
> > ↳ Virtual core XTEST keyboard id=5[slave
> keyboard
> > (3)]
> > ↳ Power Buttonid=6[slave
> keyboard
> > (3)]
> > ↳ Video Bus   id=7[slave
> keyboard
> > (3)]
> > ↳ Power Buttonid=8[slave
> keyboard
> > (3)]
> > ↳ Sleep Buttonid=9[slave
> keyboard
> > (3)]
> > ↳ AT Translated Set 2 keyboardid=12[slave
> keyboard
> > (3)]
> > ↳ Acer WMI hotkeysid=14[slave
> keyboard
> > (3)]
> > ↳ Logitech K330   id=15[slave
> keyboard
> > (3)]
> > ↳ HD WebCam   id=16[slave
> keyboard
> > (3)]
> >
> >
> >
> >
> >
> >
> > ---
> >
> > Gláucio de Araujo
> >
> > Mail : glaucio.de.ara...@gmail.com
> > TIM  : (11) 95900-7801 (WhatsApp / Telegram)
> >
> >
> > Date: Mon, 15 May 2017 23:54:16 +0300
> > > From: Jussi Lahtinen 
> > > Subject: Re: [Gambas-user] Keyboard locked -- insisting one more time
> > > To: ferna...@fcabral.com.br,mailing list for gambas users
> > > 
> > > Message-ID:
> > > 

Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Unaise EK
can you give example for
DO WHILE NOT database EOF

Loop




   Sent with Mailtrack


On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz 
wrote:

> there are the piece of code and here there's no secret:
>
> Public Function getItems() As Collection
>
>   Dim $items As New Collection
>   Dim itema, itemb as String = "something"
>
>   $items.Add($itema, "item1")
>   $items.Add($itemb, "item2")
>   $items.Add(2, "cuantos")
>
>   Return $items
>
> End
>
> here the previous code "bad programed" and when i swicht to collection
> gambas ide get slower after some time, the code was:
>
> Public Function getItems() As String[]
>
>   Dim $items As New String[]
>   Dim itema, itemb as String = "something"
>
>   $items.Add($itema)
>   $items.Add($itemb)
>
>   Return $items
>
> End
>
> the gambas ide and the OS was not shutdown during 40 days, also the gambas
> ide was not quit in this period, and in that period i run the huge data
> code of the 3 odbc bug with 10 registers, after change the code to
> collection  (each change are little before test) thje ide gambas get slow
> and does not run well..
>
> this happened to my other partners in the job... i test also in debian
> jeesie and happened same!
>
> i noted that when alone user said something its like "nothigs its happened,
> its just bad programer"
>
> will need other to reports, but these other do not have time to make a
> little project and report that..
>
> sqlite was severi broken until gambas 3.6 and must be rewrite for gambas
> 3.8
>
> now in gamba 3.9 ther's some doc-online problems with cache and some memory
> manage problems..
>
> but for not specialized programmers its very difficult to debug, find and
> report LIKE THE QT problem..
>
>
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen :
>
> > Impossible to say anything without seeing the code, which causes the
> > problem.
> >
> >
> > Jussi
> >
> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> > mckaygerh...@gmail.com
> > > wrote:
> >
> > > i change the odbc code for huge data to transport only two objects
> with a
> > > string, and i noted that gambas before hangs sometimes... so i
> discovered
> > > that when i used collections the memory management are very bad..
> > >
> > > should i send a bug or where i start to see why this happened or its
> only
> > > happened only to me!
> > >
> > >
> > > Lenz McKAY Gerardo (PICCORO)
> > > http://qgqlochekone.blogspot.com
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
M. Unaise. E.K
9895687604
Librarian,
(BLISc, MLIS)
JDT Islam Polytechnic College,
Vellimadukunnu.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] An Issue With Shell command and sudoers rules

2017-05-25 Thread Jorge Carrión
Oh... well, I'm afraid that I've a mistake.

All of this isn't a gambas issue.

BUT if someone knows a way to let a non-sudoer user to update the system
without know the admin password I'll be very grateful .

Sorry for the noise.

Best Regards


2017-05-25 10:16 GMT+02:00 Jorge Carrión :

> In our company, users are "standard" users, they can't update or make
> administratives jobs. There is another user (the admin user) that can do
> all that things... but users doesn't know the admin password.
> Searching make standard users being able of update the sistem I've created
> this script
> on adminuser home /home/adminuser/bin/comando.sh
>
> #!/bin/bash
> echo $1|sudo -S $2
>
> And I've add a new rules file in sudoers.d like this
>
> Cmnd_Alias COMANDO = /home/adminuser/bin/comando.sh
>
> ALL ALL = (adminuser) NOPASSWD:COMANDO
>
> If you, as a non-sudoer user, type on a terminal
>
> /home/administrador/bin/comando.sh adminpassword /usr/bin/apt update
>
> works fine... but, *and this is the issue*, if you do the same from a
> Gambas Shell command, doesn't work. Gamba's console show that the script is
> asking for you (non sudoer) password and fails.
>
> Seems that Gambas shell doesn't mind of sudoers directives. I am missing
> something?
>
> Best Regards
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] An Issue With Shell command and sudoers rules

2017-05-25 Thread Jorge Carrión
In our company, users are "standard" users, they can't update or make
administratives jobs. There is another user (the admin user) that can do
all that things... but users doesn't know the admin password.
Searching make standard users being able of update the sistem I've created
this script
on adminuser home /home/adminuser/bin/comando.sh

#!/bin/bash
echo $1|sudo -S $2

And I've add a new rules file in sudoers.d like this

Cmnd_Alias COMANDO = /home/adminuser/bin/comando.sh

ALL ALL = (adminuser) NOPASSWD:COMANDO

If you, as a non-sudoer user, type on a terminal

/home/administrador/bin/comando.sh adminpassword /usr/bin/apt update

works fine... but, *and this is the issue*, if you do the same from a
Gambas Shell command, doesn't work. Gamba's console show that the script is
asking for you (non sudoer) password and fails.

Seems that Gambas shell doesn't mind of sudoers directives. I am missing
something?

Best Regards
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user