Re: [Gambas-user] CDocumentation.ImplementAndNeed.1138 (solved)

2016-06-26 Thread Lewis Balentine
Got round the problem by going into preferences and turning offline help on.


On 06/26/2016 12:57 AM, Lewis Balentine wrote:
> http://blog.linuxmint.com/?p=3038#comment-130897
> Several errors with Gambas3 version 3.8.4 as installed by Linux Mint 18
> Beta Synaptics Package Manager.
> Note that I am running Gambas3 version 3.8.4 on Linux Mint 17 without
> these errors.
>
> It does load and run but specific projects will not, which means this is
> going to be a bear to trace down the problems. I just happen to have a
> program that I use to record OTA (Over The Air) TV programs (I am too
> cheap to pay for cable). When I try to load this project I get lots of
> errors. The first of these are the missing modules: gb.qt4 and gb.qt4.ext
>
> Well gambas3 has some new modules gb.qt5 and gb.qt5.ext
> Problem is I can not get to the point of changing the required modules
> because I get another error in the IDE:
> “CDocumentation.ImplementAndNeed.1138”
>
> This seems to be tied to a Gababas3 problem with the Offline Help system
> that was reported back in April:
> http://comments.gmane.org/gmane.comp.lang.gambas.user/36870
>
> On 06/26/2016 12:01 AM, Lewis Balentine wrote:
>> I am testing Linux Mint 18 Beta.
>> It comes with Gambas version of 3.8.4
>> I tried to run my KWPVR program project (which I admit is somewhat
>> dated).
>> I got a strange error in the IDE: "CDocumentation.ImplementAndNeed.1138"
>> At this point I am only trying to determine if this is a Mint 18 or
>> Gambas error.
>
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] CDocumentation.ImplementAndNeed.1138

2016-06-25 Thread Lewis Balentine
http://blog.linuxmint.com/?p=3038#comment-130897
Several errors with Gambas3 version 3.8.4 as installed by Linux Mint 18 
Beta Synaptics Package Manager.
Note that I am running Gambas3 version 3.8.4 on Linux Mint 17 without 
these errors.

It does load and run but specific projects will not, which means this is 
going to be a bear to trace down the problems. I just happen to have a 
program that I use to record OTA (Over The Air) TV programs (I am too 
cheap to pay for cable). When I try to load this project I get lots of 
errors. The first of these are the missing modules: gb.qt4 and gb.qt4.ext

Well gambas3 has some new modules gb.qt5 and gb.qt5.ext
Problem is I can not get to the point of changing the required modules 
because I get another error in the IDE: 
“CDocumentation.ImplementAndNeed.1138”

This seems to be tied to a Gababas3 problem with the Offline Help system 
that was reported back in April:
http://comments.gmane.org/gmane.comp.lang.gambas.user/36870

On 06/26/2016 12:01 AM, Lewis Balentine wrote:
> I am testing Linux Mint 18 Beta.
> It comes with Gambas version of 3.8.4
> I tried to run my KWPVR program project (which I admit is somewhat 
> dated).
> I got a strange error in the IDE: "CDocumentation.ImplementAndNeed.1138"
> At this point I am only trying to determine if this is a Mint 18 or 
> Gambas error.


--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] CDocumentation.ImplementAndNeed.1138

2016-06-25 Thread Lewis Balentine
I am testing Linux Mint 18 Beta.
It comes with Gambas version of 3.8.4
I tried to run my KWPVR program project (which I admit is somewhat dated).
I got a strange error in the IDE: "CDocumentation.ImplementAndNeed.1138"
At this point I am only trying to determine if this is a Mint 18 or 
Gambas error.

--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Clean new console by code

2016-06-24 Thread Lewis Balentine
Desktop.SendKeys("clear/n")

On 06/24/2016 02:30 PM, Gianluigi wrote:
> How can I clean console by code in rev. 7804?
> Print Chr$(12); - Write Chr(12) - Desktop.SendKeys("{[Control_L]l}") do not
> work.
>
> Regards
> Gianluigi
> --
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature removal suggestion: Pressing Escape hides debug pane

2015-09-19 Thread Lewis Balentine
"... perhaps the mouse alone to show/hide or otherwise manipulate it."
There should always exist an alternate way to gracefully exit a dialog 
box lest the farmer's wife is hanging about with her carving knife.


On 09/19/2015 05:48 AM, Patrik Karlsson wrote:
> 2015-09-19 7:16 GMT+02:00 Kevin Fishburne :
>
>> When modifying a line of code there are context-sensitive pop-ups for
>> syntax help, code completion and method/property enumeration, which is
>> awesome. However, one type of pop-up requires that you press Escape to
>> clear and the others do not. Being unable to reliably differentiate
>> between pop-up types results in Escape being pressed in error which then
>> causes the debug pane to be hidden. When using the debug pane to jump
>> between search results, accidentally pressing Escape in an attempt to
>> clear the context-sensitive pop-up results in the debug pane, and
>> consequently the search results, being hidden. This significantly
>> interrupts workflow and has been annoying the shit out of me for
>> possibly years.
>>
>> I think the Escape key should be uncoupled from debug pane functionality
>> entirely, forcing the user to use a different key or perhaps the mouse
>> alone to show/hide or otherwise manipulate it. Is anyone else
>> experiencing this or is it just me?
>>
>> --
>> Kevin Fishburne
>> Eight Virtues
>> www: http://sales.eightvirtues.com
>> e-mail: sa...@eightvirtues.com
>> phone: (770) 853-6271
>>
>>
> You are not alone. :)
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [Gambas Bug Tracker] Bug #711: Remember cursor position when double clicking a file in the project tree

2015-09-06 Thread Lewis Balentine
How do you opt out of the Gambas Bug Tracker ?

On 09/06/2015 07:15 AM, bugtrac...@gambaswiki.org wrote:
> Comment #2 by Moviga TECHNOLOGIES:
>
> Yes, you are right. I did not notice. Still, it is quite annoying :)
>
>
>
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New wiki stylesheet

2015-07-30 Thread Lewis Balentine
The font may be one of those things that falls under, "If it ain't broke 
"

On 07/30/2015 09:34 AM, Benoît Minisini wrote:
> Le 30/07/2015 15:30, Benoît Minisini a écrit :
>> Le 30/07/2015 15:14, Jussi Lahtinen a écrit :
>>> I think the font is bit too thin to be pleasant to read.
>>> I miss the search functionality. It could be as simple as redirection to
>>> https://www.google.com/#q=site:gambaswiki.org+
>>>
>>>
>>> Jussi
>>>
>> It's just a try. There was no font before (it was using the default font
>> of the browser), I can easily remove it.
>>
>> I will add a search functionality, but I don't know when.
>>
>> Regards,
>>
> ...I was searching a "cool" font for Gambas web sites.
>


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New system tray icon protocol support, new episode.

2015-07-04 Thread Lewis Balentine
Perseverance has its rewards.

On 07/04/2015 07:32 AM, Benoît Minisini wrote:
> 'appindicator', 'statusnotifier' and 'dbusmenu' are really three 
> pieces of badly designed almost undocumented shit that required me one 
> week of reverse engineering! But now it works more or less, so I'm 
> happy. :-) 


--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas migration to github (or something else?)

2015-06-08 Thread Lewis Balentine
For those on this mailing list that may be as naive in this area as 
myself  ...
(i.e. not the *'Greater Nanticoke Area School District' **or *'Georgia 
Nurses Association' {BING})

http://gna.org/
This site is a central point for development, distribution and 
maintenance of Libre Software (Free Software) projects.

Gna! provides Source Code Repositories (CVS, GNU Arch, Subversion), 
Download Area, Web Pages, Mailing-Lists and Trackers (Bugs, Task, 
Support Requests, Patches).

http://en.wikipedia.org/wiki/Gna!


On 06/08/2015 09:50 PM, Benoît Minisini wrote:
> Yes, but there is no mailing-list. I'm thinking about "gna!" now... 

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas, Rpi and Signals (Mike Crean)

2015-06-04 Thread Lewis Balentine
> why not using normal routers? of cell phone signals? inclusivelly why not 
> only radio signals!? <
I suspect money may have something to do with it. Each cell phone would require 
monthly subscription cost.


Lewis



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] TextArea and the NUL byte

2015-05-07 Thread Lewis Balentine
consistency is next to godliness


On 05/07/2015 12:38 PM, Tobias Boege wrote:
> This is not consistent.
>
> Regards,
> Tobi
>
>


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to get back my Gbr3 3.5.4 after updated

2015-04-01 Thread Lewis Balentine

See attached script file ... (it is what I used).

Lewis

On 04/01/2015 11:07 AM, Gian wrote:

Il 01/04/2015 16:06, abbat81 ha scritto:

How to install Gambas current ver?
I get
(Depends): gambas3-gb-jit (>= 3.7.0-51.33~ubuntu12.04.1)

Is there any way to get .deb package of gambas version I need?





--
View this message in context: 
http://gambas.8142.n7.nabble.com/How-to-get-back-my-Gbr3-3-5-4-after-updated-tp51216.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Have you installed the Trunk librarys plus llvm-3.4-dev?
Take a look here (my answer to Lewis Balentine):
http://gambas.8142.n7.nabble.com/Release-of-Gambas-3-7-td50952.html

Regards
Gianluigi

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user




getlibs.tar.gz
Description: application/gzip
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pre-release of Gambas 3.7.1

2015-03-28 Thread Lewis Balentine
Linux Mint 17.0 (fresh, updated image with required libraries)
   automake (GNU automake) 1.14.1
   autoconf (GNU Autoconf) 2.69
   libtool (GNU libtool) 2.4.2
   gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
   g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2

Builds, executes and installs normally without modification.
(with the exception of the previously reported GTK3 and JIT warnings).
Total time required: Approximately 30 minutes.
Appears to run normally (tested with Farm, Examples, AnalogWatch).

[System]-
Gambas=3.7.1
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Linux Mint 17 Qiana
Desktop=MATE
Theme=QGtk
Language=en_US.UTF-8
Memory=3939M

[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4

required libraries: 
---
sudo apt-get install build-essential g++ automake autoconf
sudo apt-get install libbz2-dev libmysqlclient-dev unixodbc-dev 
libpq-dev libsqlite0-dev
sudo apt-get install libsqlite3-dev libglib2.0-dev libgtk2.0-dev 
libcurl4-gnutls-dev
sudo apt-get install libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev 
libsdl-mixer1.2-dev
sudo apt-get install libsdl-image1.2-dev libsage-dev libxml2-dev 
libxslt1-dev librsvg2-dev
sudo apt-get install libpoppler-dev libpoppler-glib-dev libasound2-dev 
libesd0-dev
sudo apt-get install libdirectfb-dev libxtst-dev libffi-dev libqt4-dev 
libglew1.5-dev
sudo apt-get install libimlib2-dev libv4l-dev libsdl-ttf2.0-dev 
libgnome-keyring-dev
sudo apt-get install libgdk-pixbuf2.0-dev linux-libc-dev 
libgstreamer1.0-dev
sudo apt-get install libgstreamer-plugins-base1.0-dev libcairo2-dev 
libgsl0-dev
sudo apt-get install libncurses5-dev libgmime-2.6-dev llvm-3.4-dev 
libalure-dev libgmp-dev
sudo apt-get install libgtk-3-dev postgresql-server-dev-9.3 libsdl2-dev 
libsdl2-mixer-dev
sudo apt-get install libsdl2-ttf-dev libsdl2-image-dev sane-utils 
libpoppler-private-dev
sudo apt-get install libqtwebkit-dev llvm-dev llvm
sudo apt-get install libqt4-opengl-dev
sudo apt-get install libdumb1-dev


On 03/28/2015 12:55 PM, Benoît Minisini wrote:
> Hi,
>
> I have uploaded to sourceforge the source package of Gambas 3.7.1 so
> that you can check it before the release.
>
> So tell me if you have any problem with it.
>
> It includes all the bugs fixed since the Gambas 3.7.0 release, and the
> ability to open projects installed from the Gambas "farm" directly from
> the IDE welcome window.
>
> http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.7.1.tar.bz2/download
>
> Regards,
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 612 in gambas: BUG Cannot browse more of 128 records on tables "No current connection"

2015-03-28 Thread Lewis Balentine
I over reacted to begin with.
Thus I will not continue to further beat this dead horse. :-)

Lewis

On 03/28/2015 02:27 PM, Benoît Minisini wrote:
> Le 28/03/2015 20:22, Lewis Balentine a écrit :
>> It is just I have heard too many times that SQL tables must have primary
>> keys ... and it just is not true.
>>
> It depends on what you mean by "must". It is not technically mandatory,
> but if you create a table without a primary key, you will have problems
> like that. So you "must" have a primary key.
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 612 in gambas: BUG Cannot browse more of 128 records on tables "No current connection"

2015-03-28 Thread Lewis Balentine
My real point was (and I probably stated it very badly) is there is 
nothing in SQL that requires a table to have a primary key defined. Thus 
one should not assume such key exist unless it is a known DB structure. 
For a known structure there is probably an alternative aproach (orber by 
something, something ... etc). For an unknown DB structure the problem 
is more challenging. There may not be a "universal" way to produce a 
"rowid" on the fly but rather one for each particular SQL incarnation 
... and it should go without saying that such generated rowid's are ONLY 
valid for the subject query.

MySQL reference (using variables):
http://blog.sqlauthority.com/2014/03/08/mysql-generating-row-number-for-each-row-using-variable/

PostgreSQL reference (using supplemental view based on row_number()):
http://linfiniti.com/2011/11/adding-a-counter-to-postgresql-query-results/
http://www.postgresql.org/docs/8.4/interactive/functions-window.html

My apologies for being so aggressive/hostile/reactive.
It is just I have heard too many times that SQL tables must have primary 
keys ... and it just is not true.

Lewis


On 03/28/2015 01:28 PM, Benoît Minisini wrote:
> Le 28/03/2015 19:09, Benoît Minisini a écrit :
>> Le 28/03/2015 18:58, Lewis Balentine a écrit :
>>> I have over three decades of dealing with SQL and I can still not
>>> understand how this myth got propagated.
>>>
>>> There is NO valid SQL reason why a table should be required to have a
>>> unique primary key or any predefined key for that matter. One can always
>>> use the row number (record number) if such a key is required for one's
>>> application.
>>>
>> The row number does not exist in all database systems (more precisely,
>> it is not accessible to the outside), so I can't rely on that feature to
>> identify a row uniquely.
>>
>> Maybe the row id is not standard SQL, if "standard SQL" has any meaning.
>>
>> Consequently, I need a unique index, usually the primary key.
>>
>> If you can tell me how to get the row id of a row in MySQL, PostgreSQL
>> and SQLite (mabe it has changed since the last time I looked at it), I
>> will reconsider my position. :-)
>>
>> Regards,
>>
> More explanations...
>
> I said "row number", I wanted to say "row id".
>
> MySQL has no row id concept apparently. PostgreSQL has something like
> that, but apparently not useful. SQLite has.
>
> The answer is always the same: you need a "row id"? Add a unique primary
> key based on a serial/auto-increment integer field.
>
> Now as for as "row number".
>
> I could use the "LIMIT / OFFSET" syntax to return the different part of
> a request, instead of using "LIMIT" + a criteria on the primary key.
>
> Alas PostgreSQL (for example), tells us that two identical "LIMIT /
> OFFSET" on the same request does not necessarily return the same
> records, unless you specify an predictible "ORDER BY" clause.
>
> Moreover "OFFSET" is not optimized on PostgreSQL.
>
> So I don't see a better solution than the current one.
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 612 in gambas: BUG Cannot browse more of 128 records on tables "No current connection"

2015-03-28 Thread Lewis Balentine
SQLite (at least the current versions) will always have a row number: 
"/SELECT/rowid  FROM ..."

If the system does not have a unique row number built it (the only thing 
that I use these days is SQLite) then it should be able to be generated 
"on the fly" using a calculated field along with the query. There have 
been many, many DataBases built that do not have key fields defined. One 
particular major accounting system comes to mind that was my curse to 
deal with for many years.  It has been so long since I have encountered 
anything that does not have a row number that I can not recall the SQL 
code to get around it I will continue searching :'(

Lewis




On 03/28/2015 01:09 PM, Benoît Minisini wrote:
> Le 28/03/2015 18:58, Lewis Balentine a écrit :
>> I have over three decades of dealing with SQL and I can still not
>> understand how this myth got propagated.
>>
>> There is NO valid SQL reason why a table should be required to have a
>> unique primary key or any predefined key for that matter. One can always
>> use the row number (record number) if such a key is required for one's
>> application.
>>
> The row number does not exist in all database systems (more precisely,
> it is not accessible to the outside), so I can't rely on that feature to
> identify a row uniquely.
>
> Maybe the row id is not standard SQL, if "standard SQL" has any meaning.
>
> Consequently, I need a unique index, usually the primary key.
>
> If you can tell me how to get the row id of a row in MySQL, PostgreSQL
> and SQLite (mabe it has changed since the last time I looked at it), I
> will reconsider my position. :-)
>
> Regards,
>

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 612 in gambas: BUG Cannot browse more of 128 records on tables "No current connection"

2015-03-28 Thread Lewis Balentine
I have over three decades of dealing with SQL and I can still not 
understand how this myth got propagated.

There is NO valid SQL reason why a table should be required to have a 
unique primary key or any predefined key for that matter. One can always 
use the row number (record number) if such a key is required for one's 
application.


On 03/28/2015 12:31 PM, gam...@googlecode.com wrote:
> Updates:
>   Status: Accepted
>
> Comment #4 on issue 612 by benoit.m...@gmail.com: BUG Cannot browse more of
> 128 records on tables "No current connection"
> https://code.google.com/p/gambas/issues/detail?id=612
>
> The reason why DataBrowser or DataView fails is because your table does not
> have a unique primary key. This is mandatory, otherwise DataBrowser or
> DataView can't work correctly.
>
> I will modify them in the future so that they raise an explicit error if no
> unique primary key is found.
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Strange problem with windows/postgresql/form.db

2015-03-27 Thread Lewis Balentine
When you have time can you post exactly what you did to compile in the 
windows/cygwin environment ?
Such things as 32 or 64 bit?
What did you do for all the external libraries ?
Are there any errors in the make/compile/install logs ?

Very Best Regards,

Lewis


On 03/27/2015 06:41 AM, nero wrote:
> I all ,
>
> I've compile gambas 3.7.0 on windows/cygwin , now I've a full working gambas 
> environment on windows , it works almost well but I've a strange problem.
>
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 616 in gambas: Where do files get installed or downloaded to from software farm

2015-03-25 Thread Lewis Balentine
In any scenario the two subjects most likely to start an argument are:
1) religion
2) politics
(in some case it may be the same subject).

There is an old story about a scorpion riding across a pond on the back 
of the frog. Half way across the pond the scorpion stings the frog.
The frog asks: "Why did you do that? We are both going to die now."
The scorpion response, "I am a scorpion. It is what I do."

I seriously doubt that there is any country in the world with a 
functioning government that does not have spies in their employ.

regards,

Lewis Balentine
Houston, Texas, USA


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 616 in gambas: Where do files get installed or downloaded to from software farm

2015-03-24 Thread Lewis Balentine
Perhaps an alternative suggestion (compromise):

An application written in Gambas to manage Gambas project/example files.
I am thinking something with two windows: Source and Target
The app would dynamically build the path to the hiddden source directories.
The user could pick the target directories
 of course one would be free to add "enhancements" to that scheme. ;-)

Cheers,

Lewis

On 03/24/2015 10:10 AM, Benoît Minisini wrote:
> Le 24/03/2015 15:56, Tobias Boege a écrit :
>> On Tue, 24 Mar 2015, rolf wrote:
>>> Hi,
>>>
 I am unable to find the installed or downloaded projects from the
 software farm, unless they are examples.

 WHERE ARE THE FILES DOWNLOADED OR INSTALLED TOO?
>>> The gods of Gambas decide to hide this for DEVELOPERS in directories
>>> below ".local" and they didn't make the path configurable!
>>>
>> Mmm, I feel more like an overlord, not a god. *blushes*
>>
>> Attached is a patch which:
>>
>>- adds a configuration item to the "Preferences" dialog where you can
>>  select the base directory for software from farms,
>>- changes every (as far as I and grep know) code, which assumes the hard-
>>  coded path, to work with the configurable one,
>>- apparently fixes a bug when an "example"-tagged project is downloaded
>>  or installed whose vendor is not "example" and there is no "example"
>>  vendor directory already. (I'll write another mail about that soon.)
>>
>> It applies to #6997 under app/src/gambas3/. I tested it a few times but
>> there is no warranty.
>>
>> Regards,
>> Tobi
>>
> At the moment, I am against configuring the installation directory,
> because it is a standard freedesktop path, and because the farm is not
> yet finished.
>
> I don't know how I will manage dependencies between softwares and if
> moving the installation directory could be a problem.
>
> Regards,
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas wiki down

2015-03-21 Thread Lewis Balentine
It may have felt ignored and wanted some attention :-)

On 03/21/2015 08:30 PM, Benoît Minisini wrote:
> For an unknown reason, the web server has been stopped (it didn't
> crash). It is back now.
>
> Regards,
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas wiki down

2015-03-21 Thread Lewis Balentine
Affirmative:
"Service Unavailable

The server is temporarily unable to service your request due to 
maintenance downtime or capacity problems. Please try again later."



On 03/21/2015 11:27 AM, Fabien Bodard wrote:
> Gambas wiki is down ?
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Possible error PPA 3.7 Stable

2015-03-19 Thread Lewis Balentine

You may be under the mistaken impression that I have only one copy of 
Gambas :>)
My main workstation gets its Gambas from the PPA.

Cheers,

Lewis

P.S.
The compiled version is on a machine that is used only for learning how 
to compile and build the  Gambas deb without errors   and I am still 
learning.

On 03/19/2015 02:14 PM, Gian wrote:
> Hi Lewis,
> excuse me but you do not have the compiled version?
> Here we talk of the PPA, not of the compiled version.
> Regards
> Gianluigi
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Possible error PPA 3.7 Stable

2015-03-19 Thread Lewis Balentine
That is what comes up in Synaptic Package manager (or the update manger).
I am using Linux mint but it uses a Ubuntu setup of course.


On 03/19/2015 12:56 PM, Sebastian Kulesz wrote:
> The only package labeled like that is the one containing the gb.compress
> component. Can you tell me the exact package name, PPA and version you are
> talking about?
> On Mar 19, 2015 2:38 PM, "Lewis Balentine"  wrote:
>
>> FYI: Sill labeled "Gambas compression component" in package manager.
>>
>> On 03/19/2015 12:07 PM, Sebastian Kulesz wrote:
>>> You should be able to update now. Be aware that you will probably have to
>>> follow what Tobias said to clean the old bytecode files compiled with the
>>> higher version number.
>>>
>>> Please let me know if it is working as intended now!
>>>
>>>
>>>
>>
>>
>> --
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for
>> all
>> things parallel software development, from weekly thought leadership blogs
>> to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Possible error PPA 3.7 Stable

2015-03-19 Thread Lewis Balentine
Correction: That label >>only<< comes up in the update manager.

On 03/19/2015 12:56 PM, Sebastian Kulesz wrote:
> The only package labeled like that is the one containing the gb.compress
> component. Can you tell me the exact package name, PPA and version you are
> talking about?
> On Mar 19, 2015 2:38 PM, "Lewis Balentine"  wrote:
>
>> FYI: Sill labeled "Gambas compression component" in package manager.
>>
>> On 03/19/2015 12:07 PM, Sebastian Kulesz wrote:
>>> You should be able to update now. Be aware that you will probably have to
>>> follow what Tobias said to clean the old bytecode files compiled with the
>>> higher version number.
>>>
>>> Please let me know if it is working as intended now!
>>>
>>>
>>>
>>
>>
>> --
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for
>> all
>> things parallel software development, from weekly thought leadership blogs
>> to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Possible error PPA 3.7 Stable

2015-03-19 Thread Lewis Balentine
FYI: Sill labeled "Gambas compression component" in package manager.

On 03/19/2015 12:07 PM, Sebastian Kulesz wrote:
> You should be able to update now. Be aware that you will probably have to
> follow what Tobias said to clean the old bytecode files compiled with the
> higher version number.
>
> Please let me know if it is working as intended now!
>
>
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Possible error PPA 3.7 Stable

2015-03-18 Thread Lewis Balentine
In 'update manager' is listed as:

gambas3
Gambas compression component
3.7.0-24.30~ubuntu14.01

(I assume this is related to the same issue , but I could be wrong).

Lewis

On 03/18/2015 07:38 AM, Gian wrote:
> Upon notification by a user of Gambas-it I tried to install the PPA 
> stable.
> Seems that we obtained the Trunk.
> See image attached
>
> Regards
> Gianluigi
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
>
>
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] URGENT request to people of Gambas stable PPA

2015-03-17 Thread Lewis Balentine
Congratulations Willy  :-)

On 03/17/2015 11:19 AM, Willy Raets wrote:
> I managed to get my own local repository running with the Gambas 3.6.2
> from your PPA. I also managed to install from there (just needed to
> neglect the key warnings).
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Interaction With Command Shell

2015-03-16 Thread Lewis Balentine

Handling unexpected error messages, which might appear in a terminal window

That of course assumes that there is a terminal windows open to receive 
the error messages. :-)

Lewis

On 03/16/2015 04:39 PM, Nigel Verity wrote:
> Hi Benoit
>
> I suspect there could be good security reasons why the author(s) of SSHFS 
> keep the password entry separate from the main command string. However, this 
> type of issue cannot be unique to SSHFS, so a Gambas component which can 
> simulate the user interacting with a terminal could have a lot of uses. 
> Handling unexpected error messages, which might appear in a terminal window 
> when you are expecting a prompt of some kind, could make it complicated, 
> though.
>
> Nige
>   
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] URGENT request to people of Gambas stable PPA

2015-03-16 Thread Lewis Balentine
Another alternative:

You might use 'apt-get' and 'apt-cache' (on a clean machine) to:
1) download Gambas 3.6.2 from the current PPA
2) build list of dependences
3) download all dependences

Then copy all the debs to an appropriate portable device (USB Drive)
Then write script to:
1) Install dependences first with web disconnected
2) Install Gambas 3.6.2 second with web disconnected
3) Install your custom application(s)

I use a similar method to install Linux on a new machine so it can not 
download during the installation before I have a chance to point it 
toward my local "apt-catcher-ng" cache (much faster and saves a huge 
amount of bandwidth).

I think that you are probably be better severed by a local repository 
but it it never hurts to have a plan "B".  ;-)

cheers,

Lewis

Ref:
" 25 Useful Basic Commands of APT-GET and APT-CACHE for Package Management"
http://www.tecmint.com/useful-basic-commands-of-apt-get-and-apt-cache-for-package-management/


On 03/16/2015 09:15 AM, Willy Raets wrote:
> Hi,
>
> First, thank you for all the good and hard work getting Gambas out
> there.
>
> I have an urgent request for the Gambas-team people taking care of
> Gambas stable PPA.
>
> Would it be possible to have a PPA where Gambas 3.6.2 is available (a
> copy for example of the current).
>
> The reason I am asking is as follows.
>
> At work, I have been working on  a complete rewriting of current VB
> Client applications under Windows/MSAccess to Gambas 3.6.2 client
> applications under Linux/MySql. This project started december 2013.
>
> The rewrites have finished a few months ago and since I have been
> testing all. I am about to migrate the Windows environment to Linux.
>
> For this I need a working Gambas 3.6.2 PPA.
>
> Compiling Gambas 3.6 on the local systems will not work. Simply because
> the installation of the Gambas 3.6 migrated application .debs will not
> work because of missing dependencies.
>
> Why? Well, the distros package management system is not aware of the
> locally compiled Gambas 3.6.2. and will try to look for a PPA that holds
> them. Since all my applications are coded for auto-update-install new
> application versions, using the newer .debs, my auto-update-install
> mechanisms will not work either!
>
> Access to a Gambas 3.7 PPA is no solution as none of the applications
> where tested against Gambas 3.7 and I do not have a few months time to
> retest all. The migration is planned for next week!
>
> For this reason I need access to a working Gambas 3.6.2 repository, but
> with the release of Gambas 3.7, the 3.6.2 will soon be updated and no
> more 3.6.2 PPA will be available.
>
> Is it possible to host the 3.6.2 version at launchpad in a separate PPA,
> so that it will stay available.
>
> And wouldn't it be handy to have such a PPA for each last 3.x version.
> Especially, for those working in a professional environment, where
> stability is more important that the latest and greatest version of
> something.
>
> I hope some kind of solution will be possible or else the project will
> have a setback of a few months and my bosses will NOT be happy.
>
> It took me quite some time to convince them to make the move from
> VB/Windows to Gambas/Linux,so this latest Gambas update is really bad
> timing for me.
>

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] URGENT request to people of Gambas stable PPA

2015-03-16 Thread Lewis Balentine
Have you considered setting up a local PPA.
In that way you might also control 'what else' gets updated.
http://inodes.org/2009/09/14/building-a-private-ppa-on-ubuntu/

Cheers,

Lewis

On 03/16/2015 09:15 AM, Willy Raets wrote:
> Hi,
>
> First, thank you for all the good and hard work getting Gambas out
> there.
>
> I have an urgent request for the Gambas-team people taking care of
> Gambas stable PPA.
>
> Would it be possible to have a PPA where Gambas 3.6.2 is available (a
> copy for example of the current).
>
> The reason I am asking is as follows.
>
> At work, I have been working on  a complete rewriting of current VB
> Client applications under Windows/MSAccess to Gambas 3.6.2 client
> applications under Linux/MySql. This project started december 2013.
>
> The rewrites have finished a few months ago and since I have been
> testing all. I am about to migrate the Windows environment to Linux.
>
> For this I need a working Gambas 3.6.2 PPA.
>
> Compiling Gambas 3.6 on the local systems will not work. Simply because
> the installation of the Gambas 3.6 migrated application .debs will not
> work because of missing dependencies.
>
> Why? Well, the distros package management system is not aware of the
> locally compiled Gambas 3.6.2. and will try to look for a PPA that holds
> them. Since all my applications are coded for auto-update-install new
> application versions, using the newer .debs, my auto-update-install
> mechanisms will not work either!
>
> Access to a Gambas 3.7 PPA is no solution as none of the applications
> where tested against Gambas 3.7 and I do not have a few months time to
> retest all. The migration is planned for next week!
>
> For this reason I need access to a working Gambas 3.6.2 repository, but
> with the release of Gambas 3.7, the 3.6.2 will soon be updated and no
> more 3.6.2 PPA will be available.
>
> Is it possible to host the 3.6.2 version at launchpad in a separate PPA,
> so that it will stay available.
>
> And wouldn't it be handy to have such a PPA for each last 3.x version.
> Especially, for those working in a professional environment, where
> stability is more important that the latest and greatest version of
> something.
>
> I hope some kind of solution will be possible or else the project will
> have a setback of a few months and my bosses will NOT be happy.
>
> It took me quite some time to convince them to make the move from
> VB/Windows to Gambas/Linux,so this latest Gambas update is really bad
> timing for me.
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3.7, error in build

2015-03-14 Thread Lewis Balentine
"libdumb.so.1"
> No idea what that is... <

Well I found two possibilities:
libdumb1-dev: libdumb1 (dynamic universal music bibliotheque)
libdumbnet-dev: libdumbnet1 (libdumbnet is known as libdnet in other 
distributions)

As OpenAL (Open Audio Library) is a cross-platform audio API I decide to 
give libdumb1 a try.
sudo apt-get install libdumb1-dev

That has eliminated the errors in the "makeinstall.log".

Cheers,

Lewis

P.S.
Qu'est-ce  bibliotheque ?


On 03/14/2015 08:08 PM, Benoît Minisini wrote:
> For "make install" they were typically errors about missing 
> "libdumb.so.1" file.
> No idea what that is...
>
>> ---make install example
>> make  install-data-hook
>> make[4]: Entering directory
>> `/home/gbuilder/Documents/Build/gambas3-3.7.0/gb.openal/src'
>> Installing the gb.openal control icons if needed...
>> Creating the information files for gb.openal component...
>> Error loading libdumb.so.1: libdumb.so.1: cannot open shared object
>> file: No such file or directory
>>
>>
>

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3.7, error in build

2015-03-14 Thread Lewis Balentine

serbatoio voi Gianluigi,

You saved me a lot of time. I did however find one more package that was 
required.

# || Unable to met pkg-config requirement: QtOpenGL
# || gb.qt4.opengl is disabled
# add libqt4-opengl-dev
sudo apt-get install libqt4-opengl-dev

I also added the log files as you illustrated.
Thus I got all the way through "./reconf-all" and "./configure -C" 
without any problems.

At the end of the configure-C.log file I found the Magic Words:
"ALL COMPONENTS WILL BE COMPILED"

I was also able to get through "make" and "make install". These two 
generated a great number of warnings however the required executable 
files were produced and gambas3 runs as expected. I tested it on two 
simple projects. One console base and one GTK gui. Gambas appeared to 
operate as expected.

=
=

Benoit,
I do not know if this will be helpful but regarding the warnings/errors:
Please see attached archive file for the make logs as well as the errors 
captured from the console.


For "make" they were typically warnings about depreciated calls for GTK.
---make example
gtools.cpp: In function 'gColor get_gdk_bg_color(GtkWidget*, bool)':
gtools.cpp:179:5: warning: 'GtkStyle* gtk_widget_get_style(GtkWidget*)' 
is deprecated (declared at 
/usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:672): Use 
'gtk_widget_get_style_context' instead [-Wdeprecated-declarations]

  st=gtk_widget_get_style(wid);
 ^

For "make install" they were typically errors about missing 
"libdumb.so.1" file.

---make install example
make  install-data-hook
make[4]: Entering directory 
`/home/gbuilder/Documents/Build/gambas3-3.7.0/gb.openal/src'

Installing the gb.openal control icons if needed...
Creating the information files for gb.openal component...
Error loading libdumb.so.1: libdumb.so.1: cannot open shared object 
file: No such file or directory


For "make install" they were typically errors about GTK_IS_WIDGET.
---run time error example
(gbr3:1151): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 
'GTK_IS_WIDGET (widget)' failed


Last and most importantly:
Thank you very much Bennoit for Gambas, your time, your dedication and 
most all your continuing support.


Regards,

Lewis Balentine



On 03/14/2015 02:20 PM, Gian wrote:

Hi Lewis,
for Ubuntu 14.04.02 LTS.
Library (as Trunk plus llvm-3.4-dev):
~ $ sudo apt-get install build-essential g++ automake autoconf
libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev
libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev
libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev
libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev
libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev
libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libglew1.5-dev
libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev
libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev
libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev
libncurses5-dev libgmime-2.6-dev llvm-3.4-dev libalure-dev libgmp-dev
libgtk-3-dev postgresql-server-dev-9.3 libsdl2-dev libsdl2-mixer-dev
libsdl2-ttf-dev libsdl2-image-dev sane-utils libpoppler-private-dev
libqtwebkit-dev llvm-dev llvm

To remove 3.7.0 not working:
~ $ cd gambas3-3.7.0/
~ /gambas3-3.7.0 $ sudo make uninstall
~ /gambas3-3.7.0 $ cd ..
~ $ rm -rf gambas3-3.7.0/

After:
~ $ tar xvjf gambas3-3.7.0.tar.bz2
~ $ cd gambas3-3.7.0
~/gambas3-3.7.0$ ( ./reconf-all && ./configure -C ) >
~/Desktop/R_conf3-7.log 2>&1
~/gambas3-3.7.0$ ( make && sudo make install ) >
~/Desktop/Make_Inst3-7.log 2>&1

Regards
Gianluigi

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user




GambasBuildLogs.tar.gz
Description: application/gzip
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3.7, error in build

2015-03-14 Thread Lewis Balentine

Regarding Linux Mint 17.1 (a.k.a. Rebecca):
Becky had some teething problems and added a bunch off fancy user 
interface graphics that I did not need or want. Thus I decided to stick 
with 17.0 (updated of course --- so I may have all that stuff I did not 
want).




Strange, as I successfully compiled and installed the development version

on Mint 17.1 a few weeks ago.<
--
I install version 3.6.2 from the ppa. My abilities with 'C', 'C++', 'C#', gcc , 
g++, make, gbd, etc. are very limited. They are getting better. I am now 
capable of compiling the following 'C' program:
int main(){};
... and I am working on helloworld.c

So I created a fresh VMWware virtual machine for build Gambas. It is based on 
an OVF image of Linux Mint X64(OEM) with Mate desktop that I maintain for such 
things. That gives me a more less 'virgin' environment with new machine name, 
user name and password. I get the same errors on that machine as well. (I now 
have an backup OVF image of a 'virgin' GambasBuild machine as well ;-) The Idea 
is that I can create new machine, extract the new source to it and run the 
shell script (see attached) to build a new version (when I get it working).
===

Progress:

1) commenting AC_LIBLTDL_CONVENIENCE in the 'acinclude.m4' file resolved the 
"./reconf-all" error.
   (note: has to be done BEFORE the FIRST attempt to build gambas)
2) several errors produced by "make" because Mint does not install g++ by 
default (resolved)
3) "sudo make install" produces the following errors:
--
libtool: install: /usr/bin/install -c .libs/gb.image.effect.so.0.0.0 
/usr/lib/gambas3/gb.image.effect.so.0.0.0
/usr/bin/install: cannot stat '.libs/gb.image.effect.so.0.0.0': No such file or 
directory
make[5]: *** [install-gblibLTLIBRARIES] Error 1
make[5]: Leaving directory 
`/home/gbuilder/Documents/Build/gambas3-3.7.0/main/lib/image.effect'
make[4]: *** [install-am] Error 2
make[4]: Leaving directory 
`/home/gbuilder/Documents/Build/gambas3-3.7.0/main/lib/image.effect'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory 
`/home/gbuilder/Documents/Build/gambas3-3.7.0/main/lib'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/gbuilder/Documents/Build/gambas3-3.7.0/main'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/gbuilder/Documents/Build/gambas3-3.7.0/main'
make: *** [install-recursive] Error 1
--
I am guessing the the "libs" (not the 's') directory is actually 
"~/Documents/Build/gambas3-3.7.0/main/lib/image.effect/.libs"
There are two directory entries there listed as as "link broken 
(inode/symlink)":
  gb.image.effect.so
  gb.image.effect.so.0
So I went looking to see if there were any other "broken links" ...
  ~/Documents/Build/gambas3-3.7.0/main/lib/clipper/.libs/gb.clipper.so
  ~/Documents/Build/gambas3-3.7.0/main/lib/clipper/.libs/gb.clipper.so.0


Just to be sure this was not a fluke.
I replaced the image and tried again ...
second time around I got different errors;
among them are:
  gbi3: warning: component gb.xml.rpc not found

  Compiling gb.eval.highlight...
  gbc: error: Component not found: gb.qt4
  Compiling gb.args
  OK
  Installing gb.args...
  gbi3: warning: component gb.xml.rpc not found
  Compiling gb.settings...
  OK
---
  Installing the development environment...
  Compiling gambas3...
  gbc: error: Component not found: gb.qt4
  Compiling gbs3...
  OK
---
  Installing gbs3...
  Installing the scripter...
  Registering Gambas script mimetype
  Registering Gambas server page mimetype
  Installing the Gambas appdata file
  make[2]: Nothing to be done for `install-data-am'.
  make[2]: Leaving directory `/home/gbuilder/Documents/Build/gambas3-3.7.0/app'
  make[1]: Leaving directory `/home/gbuilder/Documents/Build/gambas3-3.7.0/app'
  Making install in .
  make[1]: Entering directory `/home/gbuilder/Documents/Build/gambas3-3.7.0'
  make[2]: Entering directory `/home/gbuilder/Documents/Build/gambas3-3.7.0'

  ||
  || Unable to compile gb.eval.highlight
  || Unable to compile gb.gui.base
  || Unable to compile gb.form
  || Unable to compile gb.form.dialog
  || Unable to compile gb.form.mdi
  || Unable to compile gb.db.form
  || Unable to compile gb.desktop
  || Unable to compile gb.report
  || Unable to compile gb.report2
  || Unable to compile gb.chart
  || Unable to compile gb.net.pop3
  || Unable to compile gb.memcached
  || Unable to compile gb.map
  || Unable to compile gb.media.form
  || Unable to compile gambas3
---
I am guessing that my 'virgin' machine is missing some required libraries or 
dev files.
... but I have other thing to attended to. I will have to get back to this 
later.

Regards,

Lewis



On 03/14/2015 08:53 AM, Benoît Minisini wrote:

I think you can safely comment AC_LIBLTDL_CONVENIENCE (by adding "##" to
the beginning of the line) in the 'acinclude.m4' file. It is actually
useless.

Tell me if it works

Re: [Gambas-user] Release of Gambas 3.7, error in build

2015-03-14 Thread Lewis Balentine
I was just checking that ...

Ref: http://gambas.sourceforge.net/en/main.html
The following versions of GNU tools are needed:
automake 1.11.1
autoconf 2.68
libtool 2.4
Compiling with older version may or may not work!
-
$ automake --version
automake (GNU automake) 1.14.1

$ autoconf --version
autoconf (GNU Autoconf) 2.69

$ libtool --version
libtool (GNU libtool) 2.4.2
-
I think i found it in the source files:
Reference: acinclude.m4, line 148

I think that I found something about this error as well (not that I 
understand it):
reference:

http://www.gnu.org/software/libtool/manual/html_node/Distributing-libltdl.html
Macro: LTDL_CONVENIENCE
Macro: AC_LIBLTDL_CONVENIENCE
These macros are deprecated, the ‘convenience’ option to LTDL_INIT 
should be used instead.


Regards,

Lewis


On 03/14/2015 08:22 AM, Benoît Minisini wrote:
> Le 14/03/2015 14:15, Benoît Minisini a écrit :
>> Le 14/03/2015 13:39, Lewis Balentine a écrit :
>>> Environment: Linux Mint 17 X64, Mate Desktop 1.8
>>>
>>> lewis@HP8460 ~ $ cd //home/lewis/CodeProjects/Gambas_Build/gambas3-3.7.0
>>> lewis@HP8460 //home/lewis/CodeProjects/Gambas_Build/gambas3-3.7.0 $
>>> ./reconf-all
>>> ..
>>> autoreconf: running: /usr/bin/autoconf
>>> configure:4385: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE
>>>  If this token and others are legitimate, please use
>>> m4_pattern_allow.
>>>  See the Autoconf documentation.
>>> autoreconf: /usr/bin/autoconf failed with exit status: 1
>>> lewis@HP8460 //home/lewis/CodeProjects/Gambas_Build/gambas3-3.7.0 $
>>>
>>> regards,
>>>
>>> Lewis Balentine
>>>
>> Which version of autoconf do you use?
>>
> And automake, and libtool. One of them is too old.
>
> Strange, as I sucessfully compiled and installed the development version
> on Mint 17.1 a few weeks ago.
>
> Regards,
>

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3.7, error in build

2015-03-14 Thread Lewis Balentine
Environment: Linux Mint 17 X64, Mate Desktop 1.8

lewis@HP8460 ~ $ cd //home/lewis/CodeProjects/Gambas_Build/gambas3-3.7.0
lewis@HP8460 //home/lewis/CodeProjects/Gambas_Build/gambas3-3.7.0 $ 
./reconf-all
..
autoreconf: running: /usr/bin/autoconf
configure:4385: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE
   If this token and others are legitimate, please use m4_pattern_allow.
   See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
lewis@HP8460 //home/lewis/CodeProjects/Gambas_Build/gambas3-3.7.0 $

regards,

Lewis Balentine

On 03/14/2015 06:27 AM, Benoît Minisini wrote:
> Hi,
>
> After a few last minutes bugs had been fixed, Gambas 3.7 has been released!
>
> Some of the main changes are:
>
> - A new software repository made with Gambas for Gambas. It allows to
> publish and install Gambas softwares.
>
> - Databases now can be initialized from templates automatically
> generated by the IDE.
>
> - Array accessors are now faster.
>
> - The MySQL database driver is faster.
>
> - The child process interface has been fixed and optimized.
>
> - New SDL2 component.
>
> - New scanner management component.
>
> - New version of the report component.
>
> See the 'Release Notes' on the wiki for the list of all new features and
> bug fixes.
>
> http://gambaswiki.org/wiki/doc/release/3.7.0
>
> Thanks for your patience and enjoy it!
>


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Top posting

2015-03-10 Thread Lewis Balentine
 >> Email's still in the frakking DARPANET ages. <<

I tend to agree with you. However getting the entire world's electronic 
population to change would a daunting challenge. Perhaps if one was very 
dedicated, aggressive with unlimited resources it could be accomplished 
after a suitable period of time (maybe a decade or so). In the interim 
period we must learn to work with what we have at hand.

cheers,

Lewis

P.S.
If anyone decides to take on the challenge please address the following 
issues as well:
Microsoft Outlook proprietary RTF based email format
Extra line spacing in HTML formatted emails
Embedded picture in any number of email systems
Email Spam
Email viruses
Email Trojan horses
My poor spelling
... it is a very long list...


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A couple of questions about building web / cgi applications

2015-02-13 Thread Lewis Balentine
Forgive me for poking my nose in where my profound ignorance indicates I 
should not but 

Would not a direct solution be:
1) Have the resident program ALLOC a section of ram
2) Save the address as part of a unique file name (i.e. ADRxx.ADR 
where x is the address)
3) Pass the required parameters back and forth via shared memory.
4) Both programs would need to poll the shared memory for updates (some 
bytes could be used for status).

http://gambaswiki.org/wiki/lang/alloc
http://gambaswiki.org/wiki/lang/byte@
http://gambaswiki.org/wiki/lang/integer@
http://gambaswiki.org/wiki/lang/long@
http://gambaswiki.org/wiki/lang/string@
... etc ...


Cheers,

Lewis

On 02/13/2015 02:35 PM, Bruce Cunningham wrote:
> Caveat,
>
> Thanks for the info.
>
> I'm a little concerned about using a "disk" based database because the disk 
> is flash, which has a limited number of write cycles.  Even with 
> wear-leveling, I would eventually kill parts of the flash.  I don't want 
> these things dropping dead in the field after a year or so...
>
> I was considering something like named pipes, but I'm a little unclear about 
> how Linux actually handles them.  I thought I saw a mention that they are 
> managed via temporary files within the file system, and that would defeat the 
> whole idea of not writing to disk.
>
> I know how to do interprocess communication in Windows, but not in Linux with 
> Gambas.
>
> Bruce
>
> Bruce Cunningham
> bcunning...@sportif.com
>
>


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Watermark on text box

2015-02-10 Thread Lewis Balentine
Hi Tobi 

Without entering into the fray regarding the 'watermark':
You example code provides a nice sample of creating a new control class 
for those of us that find the process somewhat mystical. Thank you.:-)

Lewis


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2015-02-07 Thread Lewis Balentine
The context sensitive on-line help system uses the Wiki. That implies 
the existence of some sort of search capability.

It would be very helpful if that were exposed on the web pages ... but 
perhaps it is based on the various index pages.


On 02/07/2015 05:33 AM, Ian wrote:
> IIF - I should have know there would be something.
>
> now if the wiki had a search function
>
>
> Ian.
>
>


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Rpi

2015-02-03 Thread Lewis Balentine
>> Are you sure it's an advantage to install windows 10? <<
on anything ???



--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.quote issue with sqlite

2015-02-03 Thread Lewis Balentine
AMEN to that !

On 02/03/2015 01:57 PM, Benoît Minisini wrote:
> It's hard to know what is *really* standard in SQL and what is not... 


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with UCase$ ?

2015-01-28 Thread Lewis Balentine
For a real challenge try 5 bit Baudot :-)


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with UCase$ ?

2015-01-28 Thread Lewis Balentine
"é" is not an ASCII character.

Reference: http://gambaswiki.org/wiki/lang/ucase
This function does not work with UTF-8 strings. UseString.UCase 
instead.

Word = "perché"
Print Word, UCase(Word), String.UCase(Word)
Word = UCase(Word)
Print Word
'---
perchéPERCHéPERCHÉ
PERCHé



On 01/28/2015 12:25 PM, Gian wrote:
> Hello all,
> I noticed one thing, if I write UCase $ ("perché") I get PERCHé
> If I write Print.Ucase ("perché") I get PERCHÉ
> It is correct?
> ("perché" is "why" or "because" in italian language)
> Regards
> Gianluigi
>
> --
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Data Base Example

2015-01-26 Thread Lewis Balentine
Well when you get past that ...

I created a new VM as well (Vmware). This time I did not check the box 
'save password'.
Then when I tried to publish the project I got the following error:
"Unable to publish project.
  Incorrect version
  Content-type: text/palin;charset=utf-8
  10 OK"

... but it seems to have gotten published anyway. :-)
The screenshot is 3X larger than the rest of project ...

Cheers,

Lewis

On 01/26/2015 09:04 AM, Benoît Minisini wrote:
> Le 26/01/2015 15:28, Lewis Balentine a écrit :
>> Following a thread from last week regarding refreshing DataControl I
>> have developed a small GUI project to demonstrate the use of DataSource
>> and DataControl items of gb.db.form. It demonstrates how to create the
>> data connection, move between records (first, previous, next, last),
>> save/cancel edits, begin/commit/rollback transactions.  There are 299
>> lines of code with the majority dedicated to enabling/disabling the
>> various buttons. It includes a SQLite data file but should be compatable
>> with any supported Database.
>>
>> I did "try" to publish this to the software farm but I encountered a
>> problem with my credentials. Comments or suggestions for improvement are
>> welcomed.
>>
>> Regards,
>>
>> Lewis Balentine
>>
>> P.S.
>> Many thanks to  Lee Davidson for help in working out the cancel process.
>>
> I'm currently creating a VirtualBox VM with Mint inside it to understand
> how gnome-keyring works on Mint...
>


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Data Base Example

2015-01-26 Thread Lewis Balentine
The source of the problem is more likely my incompetence than the software.

On 01/26/2015 09:04 AM, Benoît Minisini wrote:
> I'm currently creating a VirtualBox VM with Mint inside it to 
> understand how gnome-keyring works on Mint... 


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Data Base Example

2015-01-26 Thread Lewis Balentine
Following a thread from last week regarding refreshing DataControl I 
have developed a small GUI project to demonstrate the use of DataSource 
and DataControl items of gb.db.form. It demonstrates how to create the 
data connection, move between records (first, previous, next, last), 
save/cancel edits, begin/commit/rollback transactions.  There are 299 
lines of code with the majority dedicated to enabling/disabling the 
various buttons. It includes a SQLite data file but should be compatable 
with any supported Database.


I did "try" to publish this to the software farm but I encountered a 
problem with my credentials. Comments or suggestions for improvement are 
welcomed.


Regards,

Lewis Balentine

P.S.
Many thanks to  Lee Davidson for help in working out the cancel process.


DataBaseExample-0.0.1.tar.gz
Description: application/gzip
--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Software Farm, Unable to get password.

2015-01-25 Thread Lewis Balentine
It is  'gnome-keyring'. It is installed and as far as I know not 
disabled. I am not having any trouble with it --- well not until now 
anyway. I believe Chrome uses it as well. I opened TitanTV web site in 
Chrome to verify that it was able to use 'saved' credentials for that site.

On 01/26/2015 12:48 AM, T Lee Davidson wrote:
> Could be a problem with the keyring on your desktop. On KDE, the default 
> keyring
> is 'kwallet'. Not sure what it would be on Linux Mint 17 with Mate. Perhaps
> 'mate-keyring', or, more likely, 'gnome-keyring'.
>
> If you have it disabled or it is having issues, Gambas would/could have
> difficulty connecting with it.
>
>
> Lee
> __
>
> "Artificial Intelligence is no match for natural stupidity."
>
> On 01/26/2015 01:29 AM, Lewis Balentine wrote:
>> "This application has raised an unexpected error and must abbort.
>>  Unable to get password.
>>  _Desktop_passwords._get.69"
>>
>> Error raised when selecting "Software Farm" from Gambas 3.6.90 main menu
>> page.
>> This is a fresh update (in the past hour) of the Gambas daily build.
>>
>> Operating system: Linux Mint 17 with Mate desktop  environment.
>>
>> Regards,
>>
>> Lewis Balentine
> --
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Software Farm, Unable to get password.

2015-01-25 Thread Lewis Balentine


"This application has raised an unexpected error and must abbort.
   Unable to get password.
   _Desktop_passwords._get.69"

Error raised when selecting "Software Farm" from Gambas 3.6.90 main menu 
page.
This is a fresh update (in the past hour) of the Gambas daily build.

Operating system: Linux Mint 17 with Mate desktop  environment.

Regards,

Lewis Balentine

[System]
Gambas=3.6.90
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Linux Mint 17 Qiana
Desktop=MATE
Theme=QGtk
Language=en_US.UTF-8
Memory=3944M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] DataControl_Leave, Tab key causes Gtk - CRITICAL Error

2015-01-22 Thread Lewis Balentine
I switched the desktop QT Style back to 'GTK+' and changed the project 
to from gb.qt4 to gb.gtk (and gb.gtk3).
I get no error but I get no functionality either :-(

The Tab keys goes through the next three controls without setting the focus.
Those controls are:
 DataControl3 (date: switch from date string to calendar)
 DataControl4 (boolean)
 ButtonNext (standard form button)

I closed the project and switch the Desktop back to QT Style back to 
'Windows'.
There was no change.
Then I tried gb.gui  no change (Both QT Styles).

Just to be thourogh I tested it with QT Style 'Plastique' as well.
This was the same results as 'Windows'.

I think I have gone through most of the possible combinations ... :-)
What does work as expected is: QT Style = 'Windows' or 'Plastique' with 
gb.qt

Regards,

Lewis

On 01/22/2015 03:03 PM, Benoît Minisini wrote:
> Le 22/01/2015 21:47, Lewis Balentine a écrit :
>> I changed the 'QT GUI style' to "Windows". The problem went away. So
>> the problem is probably in the 'GTK+' style which I believe is the
>> default for Mate. I will post this thread to the Mint forumns and see
>> if there is any response there.
>>
>> Cheers,
>>
>> Lewis
>>
> I have tested with QGtk, and I don't any warning message. So I think the
> problem is the Mint GTK+ style when it is used by QGtk.
>
> Can you switch your project to use gb.gtk and/or gb.gtk3 instead of
> gb.qt4, and see if you get these warning messages?
>


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] DataControl_Leave, Tab key causes Gtk - CRITICAL Error

2015-01-22 Thread Lewis Balentine
I changed the 'QT GUI style' to "Windows". The problem went away. So the 
problem is probably in the 'GTK+' style which I believe is the default for 
Mate. I will post this thread to the Mint forumns and see if there is any 
response there.

Cheers,

Lewis


On 01/22/2015 02:30 PM, Lewis Balentine wrote:
> Note the project  is a QT graphical project as opposed to a GTK
> graphical project (if it makes any difference).
>
> As for GTK+ theme  how would I know ? I am using Linux Mint 17 with
> the Mate Desktop environment. There are no preferences that refer to
> 'GTK theme' but my 'appearance' preferences are set to "Mint-X" theme.
> That is the only reference to a 'theme' that I can find in the OS.
>
> I had some previous problems with QT themes (no frame borders). QT GUI
> style is set to 'GTK+'. The other choices are (how can I say this
> politely???) unappealing.
>
> Regards,
>
> Lewis
>
> On 01/22/2015 02:08 PM, Benoît Minisini wrote:
>> Which GTK+ theme do you use?
>
> --
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] DataControl_Leave, Tab key causes Gtk - CRITICAL Error

2015-01-22 Thread Lewis Balentine
Note the project  is a QT graphical project as opposed to a GTK 
graphical project (if it makes any difference).

As for GTK+ theme  how would I know ? I am using Linux Mint 17 with 
the Mate Desktop environment. There are no preferences that refer to 
'GTK theme' but my 'appearance' preferences are set to "Mint-X" theme. 
That is the only reference to a 'theme' that I can find in the OS.

I had some previous problems with QT themes (no frame borders). QT GUI 
style is set to 'GTK+'. The other choices are (how can I say this 
politely???) unappealing.

Regards,

Lewis

On 01/22/2015 02:08 PM, Benoît Minisini wrote:
> Which GTK+ theme do you use? 


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] IDE crash and other Issues (gb.settings and icon stock)

2015-01-21 Thread Lewis Balentine
A valid point ...

On 01/21/2015 12:41 PM, Jorge Carrión wrote:
> It's true... but IDE should not crash... I think.
>
> Regards
>
>


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a

2015-01-21 Thread Lewis Balentine
Yep that seems to work. I did try that previously (I think) but it seems 
somewhere along the line I corrupted my database. I started over from 
scratch ... :-(

Overall it has been a very enlightening exercise. Now what was I doing 
before I started this ?

Lewis


On 01/20/2015 05:17 PM, T Lee Davidson wrote:
> Well, looks like I was wrong again.
>
> Despite the documentation for DataSource.Update saying,
> "Reload the DataSource data and update all bound child controls 
> accordingly,"
> it apparently tries to write to the database.
>
> The .Cancel method is the one to use to, uh, cancel any current 
> modifications.
> DataSource.Cancel: "Cancel any current edition of child controls."
>
>
> Simple sample attached.
>
>
> Lee


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] DataControl_Leave, Tab key causes Gtk - CRITICAL Error

2015-01-21 Thread Lewis Balentine

See attached project for full source and data-base.

Public Sub DataControl3_Leave()
or
Public Sub DataControl3_LostFocus()
  ' 
**

  ' Tab key causess:
  '   (gbx3: 21680):  <<--- varies ---
  '   Gtk - CRITICAL * *: IA__gtk_widget_get_direction: assertion 
'GTK_IS_WIDGET (widget)' failed
  ' DataControl3 field Type is Date, Next Tab-Stop is DataControl4 
(Boolean)
  ' 
******

  ...
End

Regards,

Lewis Balentine



[System]
Gambas=3.6.2 & 3.6.90
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Linux Mint 17 Qiana
Desktop=MATE
Theme=QGtk
Language=en_US.UTF-8
Memory=3944M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4


DBSample2-0.0.1.tar.gz
Description: application/gzip
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] IDE crash and other Issues (gb.settings and icon stock)

2015-01-21 Thread Lewis Balentine
I believe that you need to define the connection host (path to Sqlite DB 
file).
 hconn.host = Application.Path

Otherwise I get the same results.

Lewis


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gambas-daily,Failed to fetch, 404 error

2015-01-21 Thread Lewis Balentine
Is it just me or does anyone else get these errors ???
'
W: Failed to fetch 
http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu/pool/main/g/gambas3/gambas3-gb-desktop-gnome-keyring_3.6.99+svn6839+build22~ubuntu14.04.1_amd64.deb
   404  Not Found

W: Failed to fetch 
http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu/pool/main/g/gambas3/gambas3-gb-scanner_3.6.99+svn6839+build22~ubuntu14.04.1_all.deb
   404  Not Found

W: Failed to fetch 
http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu/pool/main/g/gambas3/gambas3-gb-util_3.6.99+svn6839+build22~ubuntu14.04.1_all.deb
   404  Not Found

W: Failed to fetch 
http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu/pool/main/g/gambas3/gambas3_3.6.99+svn6839+build22~ubuntu14.04.1_all.deb
   404  Not Found
'

Lewis

--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a datasource and datacontrols

2015-01-20 Thread Lewis Balentine
Nope, you did not mislead me 

I was already been looking at these methods, but I had only tried the 
update function on a dataview control where the data was modified by an 
external program (that works nicely).

I believe that I have tried every combination of: DataSource.Cancel, 
DataSource1.Update, DataSource1.Refresh

BINGO!!
Put "DataSource.Connection.begin" just after the DB/Table is opened.
Put "DataSource.Connection.commit" and "DataSource.Connection.begin" at 
the end of each save.
Use  "DataSource.Connection.Rollback", "DataSource.Update", 
"DataSource.Connection.Begin" to cancel.

Alas I have run out of time and must attend to other matters.
I will try update my example tomorrow and upload it.
(I also want a bit more testing).

Regards,

Lewis

On 01/20/2015 01:07 PM, T Lee Davidson wrote:
> I believe I have mislead you too, Lewis. My apologies.
>
> Look at DataSource.Update.
>
>
> Lee
> __
>
> "Artificial Intelligence is no match for natural stupidity."
>
> On 01/20/2015 01:03 PM, Lewis Balentine wrote:
>> Mr. Speaker,
>> I request permission to revise and extend my previous remarks ...
>>
>> Please see the attached sample application and data base. I used a SQlite 
>> Database but in theory these function should operate the same. I tried
>> five ways to cancel the edits to a set of data controls.
>>   via Control Refresh
>>   via Data Source Refresh
>>   via Data Source Cancel
>>   via Closing the DB and reopening it
>>   via Data Control Tags
>>
>> The only one that I found that worked was to restore the content from a copy 
>> saved in the data control tags. I note that changing the
>> 'DataControl.Value' (either via software or manually) does not set 
>> 'DataSource.Modified' or "DataControl.Modified' properties to true. The
>> operation was the same in version 3.6.2 and 3.6.9.
>>
>> Then again maybe I am doing something(s) wrong  :-\
>>
>> Regards,
>>
>> Lewis Balentine
>>
>> On 01/19/2015 07:42 PM, T Lee Davidson wrote:
>>> Hello Martin,
>>>
>>> If you are working with only one record at a time, you don't need to use 
>>> transactions.
>>> Transactions are used when multiple records need to be modified in an 
>>> all-or-none scenario, such as when a record, that is the "one" in a
>>> one-to-many relationship, needs to be deleted.
>>>
>>> In such a case, you would start a transaction with .Begin, delete the 
>>> dependent records followed by the one record. Then, if all modifications
>>> are successful, you would .Commit. If there is a failure at any time during 
>>> the transaction, you would .Rollback.
>>>
>>> To get the datacontrol to display the original data after a canceled edit, 
>>> use the .Refresh method.
>>>
>>>
>>> Lee
>>> __
>>>
>>
>>
>> --
>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
>> GigeNET is offering a free month of service with a new server in Ashburn.
>> Choose from 2 high performing configs, both with 100TB of bandwidth.
>> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
>> http://p.sf.net/sfu/gigenet
>>
>>
>>
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a datasource and datacontrols

2015-01-20 Thread Lewis Balentine

Mr. Speaker,
I request permission to revise and extend my previous remarks ...

Please see the attached sample application and data base. I used a 
SQlite Database but in theory these function should operate the same. I 
tried five ways to cancel the edits to a set of data controls.

via Control Refresh
via Data Source Refresh
via Data Source Cancel
via Closing the DB and reopening it
via Data Control Tags

The only one that I found that worked was to restore the content from a 
copy saved in the data control tags. I note that changing the 
'DataControl.Value' (either via software or manually) does not set 
'DataSource.Modified' or "DataControl.Modified' properties to true. The 
operation was the same in version 3.6.2 and 3.6.9.


Then again maybe I am doing something(s) wrong  :-\

Regards,

Lewis Balentine

On 01/19/2015 07:42 PM, T Lee Davidson wrote:

Hello Martin,

If you are working with only one record at a time, you don't need to use 
transactions.
Transactions are used when multiple records need to be modified in an all-or-none 
scenario, such as when a record, that is the "one" in a
one-to-many relationship, needs to be deleted.

In such a case, you would start a transaction with .Begin, delete the dependent 
records followed by the one record. Then, if all modifications
are successful, you would .Commit. If there is a failure at any time during the 
transaction, you would .Rollback.

To get the datacontrol to display the original data after a canceled edit, use 
the .Refresh method.


Lee
__





DBSample-0.0.1.tar.gz
Description: application/gzip
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a datasource and datacontrols

2015-01-19 Thread Lewis Balentine
 >> use the .Refresh method <<

That assumes that one is using data linked controls. That is not always 
the case:
examples:
  a date record is displayed/edited  as two separate text boxes 
(i.e. date and time)
  a person's name is stored in the fields: given_name, initial, 
family_name
  the person's name is displayed/edited in a single text box

I have in the past (with VB6) used the control.tag property to hold the 
original unedited text for the control. I have also been known to use 
that information to verify another user had not changed the original 
record prior to processing the update.

On 01/19/2015 07:42 PM, T Lee Davidson wrote:
> Hello Martin,
>
> ...
> To get the datacontrol to display the original data after a canceled edit, 
> use the .Refresh method.
>
>


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] need NOWAIT option for Process=Exec Command

2015-01-17 Thread Lewis Balentine
You were correct (as usual). :-)

There was an difference in the dynamically generated ffmpeg command 
arrays that I was using. The application is now functional so I can 
start working on the fine tunning and polish.

Thank you for your help.

Lewis

On 01/17/2015 01:36 PM, Tobias Boege wrote:
> Doesn't happen over here as the attached script shows: $ 
> ./exec-nowait.gbs3 0.00100183486938 The Print line is executed 
> obviously without waiting for the command to complete. Does it work 
> the same on your system? If not, there is a bug in your copy of 
> Gambas. If yes, it must be something deeper in your code.


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] need NOWAIT option for Process=Exec Command

2015-01-17 Thread Lewis Balentine
I inserted the following line before my Exec statement:
   Debug Format(Now, "hh:mm:ss")
   MyProcess = Exec ["sleep", "10"]
   Debug Format(Now, "hh:mm:ss")
   Debug "PID:" & Trim(Str(MyProcess.Handle))

It worked as you said
  pvr.StartProcess.99: 14:01:57
  pvr.StartProcess.101: 14:01:57
  pvr.StartProcess.102: PID:17978

Guess that I will have to dig a bit deeper. The ffmpeg application 
accepts input while recording. I wonder if that has some effect on the 
matter.

Cheers,

Lewis



--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] need NOWAIT option for Process=Exec Command

2015-01-17 Thread Lewis Balentine
Well I am almost there and ran into a small hick-up. I am trying to 
create a program to schedule and record over the air (OTA) television 
broadcasts via ffmpeg and an IP based NTSC-Tunner (SiliconDust 
HDHR4-2US).  If I use the GAMBAS statement:
Exec Command
then the ffmpeg command is executed and the recording takes place in the 
background as desired.


My problem is that I need to get the Process ID for each recording 
session in order to be able to abort/cancel recording session(s). If I 
use the GAMBAS statement:
Process = Exec Command
then the program hangs up while it "waits" for the Command to complete 
(which might be a couple of hours).

Now I am hung up. Is there another way to get the process id?

cheers,

Lewis Balentine


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Ping

2015-01-15 Thread Lewis Balentine
Pong ?
On 01/15/2015 03:25 AM, Fabien Bodard wrote:
> Ping ?
>


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] QT Frame, no border

2015-01-13 Thread Lewis Balentine
Thank you ... but just in case someone else find this in a search:

I believe that you intended: qtconfig-qt4 (an application that must be 
installed on the current system)
"GTK+" seems to be the only one where the frame border does not show up.

On 01/13/2015 02:10 AM, Jack wrote:
>
> You must set the gui style via qt4-config. Plastique for example.
>
>
> jack
>


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] QT Frame, no border

2015-01-13 Thread Lewis Balentine

Frame (gb.qt4)
"This control is a container with an *etched border* and a label. The 
actual appearance of the frame depends on the underlying widget theme. 
Some of them do not even draw any frame at all!"


I am getting no border. I see no obvious way to get to the 'underlying 
widget theme'.

So what is it that I need to fix ??

Regards,

Lewis




BorderProblem-0.0.1.tar.gz
Description: application/gzip
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Column Alignment Property

2015-01-10 Thread Lewis Balentine
You and the other members of the mailing list have been very patient, 
tolerant and helpful. Version 1 is a text file based Gambas console app 
and is currently serving the immediate need. I am working on version 2 
that is database driven with a GUI interface. I think that I shall 
reserve fine-tuning the Data-Manager for version 3 or 4.

Best Regards,

Lewis Balentine


On 01/10/2015 08:28 AM, Benoît Minisini wrote:
>
> You have three "patterns" in Gambas to solve your problem (extending the
> behaviour of a control): the Observer class, the Object.Attach() method,
> and inheritance.
>
> If you are new to OOP, then you should read the "Gambas object model"
> document on the wiki slowly, carefully and many times, until you
> understand these three "patterns".
>
> I have to leave, I can't explain more now.
>
> Regards,
>


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Column Alignment Property

2015-01-10 Thread Lewis Balentine
My application is sort of a mini-datamanager where the end user 
determine which tables/fields they need/want to access. The application 
generates the datasources and dataviews at run time. Each table is 
displayed in its own tab of a Tabstrip /(small screen shot attached)/. 
There are two tables in the DB that hold the parameters for the run-time 
tabs.


My OOP competency level is marginal :-[
I am actually amazed that I have made as much progress with this as I have.

*Correct me if I am wrong: *
The event handler would have to be created at design time.
Thus I would need to create a new control class that inherits dataview.

Lewis

On 01/10/2015 07:08 AM, Benoît Minisini wrote:

The DataView control (normally) raises a Data event for each cell it draws.

In the event handler, you can use the DataView.Data property to modifiy
the contents of the cell just before it is drawn, exactly like the Data
event of the TableView control.

Then you can change how the cell value is drawn, the alignment, the
colors...

Regards,



--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Order By Clause

2015-01-10 Thread Lewis Balentine
Is there any way to sneak an "order by" clause into a Datasource or 
Dataview.

I did try putting a complete SQL statement in place of the Table name 
but that results in a read-only result regardless of the value of the 
Datasource.ReadOnly property.

I know I can set the Sort poperty true to allow resorting by a 
particular column but I would like to have control of initial order by a 
combination of columns (i.e "order by StartDateTime, Channel, Status").

Regards,

Lewis Balentine

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] For Each ?WHAT? in Result

2015-01-10 Thread Lewis Balentine
I does work as expected with the "order by clause".

On 01/10/2015 06:16 AM, Caveat wrote:
> But the documentation arrived at by following the enumerable link
> doesn't give a fully working code example, and also doesn't document
> whether the order of the enumeration is predictable, which we'd better
> hope it is if you ever decide to use an "order by" clause :-D
>
> I'll see if have time to sign up and edit the page later, unless someone
> else can already take care of this?
>
> Thanks and kind regards
> Caveat
>
>


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Column Alignment Property

2015-01-10 Thread Lewis Balentine
I changed my Integers to Longs and set limits on the length of most of 
the strings.
I do have a suggestion if you get around to working on this:
add a property to the columns to hold a format$

examples:
 Dataview.View.Columns[?].Format="mm/dd/"
 Dataview.View.Columns[?].Format="dd mmm "

This would be handy particularly where a date is stored with no real 
time portion.
Dates are displayed as: mm/dd/ hh:nn:ss
Example:
 21 January 2015 displays as 01/21/2015 00:00:00

There are probably other circumstances where it would be useful.

Now someone is going to tell me that capability has already implemented 
and I have missed  reading the proper link again. :-)

Cheers,

Lewis


On 01/09/2015 07:55 PM, Benoît Minisini wrote:
> Le 09/01/2015 11:11, Lewis Balentine a écrit :
>> It appears to me that the Column Alignment Property does not work for
>> some types.
>>
> It's the DataView that override column alignments with cell specific
> alignments for Integer, Float, and unlimited String fields. I'm admit
> it's not very coherent...
>
> At the moment there is no way to know if the user has specified a
> specific alignment somewhere.
>
> Laybe I should create a property that would tell DataView if it should
> override or not the alignment?
>


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] For Each ?WHAT? in Result

2015-01-10 Thread Lewis Balentine
Thank thee ... :-)
I did follow that path and I did miss the nuance of the second example.


On 01/10/2015 03:04 AM, Caveat wrote:
> I presume you started here http://gambaswiki.org/wiki/comp/gb.db/result
> And then clicked on the big obvious link to FOR EACH, arriving here:
> http://gambaswiki.org/wiki/lang/foreach
> And then didn't look at the second example... :-P
>
> Kind regards,
> Caveat
>
> On 10/01/15 09:52, Lewis Balentine wrote:
>> Result (gb.db)
>> This class represents the result of a SQL request.
>> This class is not creatable.
>> This class acts like a read / write array.
>> This class is *enumerable* with the FOR EACH keyword.
>>
>> Guess this should be obvious but not to me  pray tell what
>> type/class does one use to enumerate it ??
>> I tried "ResultField[]"
>> I tried "Collection"
>> I tried to try "record"
>> As a last resort I tried String[]
>> Suffice it to say: I have not a clue :-\
>>
>> 
>> Dim MyResult as Result
>> Dim MyRecord as ?
>>
>> Result = Connection.Find (Something)
>>
>> For Each MyRecord in MyResult
>>Print MyRecord["Field1Name"]
>> Print MyRecord["Field2Name"]
>> Print MyRecord["Field3Name"]
>> Next
>> 
>> regards,
>>
>> Lewis
>> --
>> Dive into the World of Parallel Programming! The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
> --
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] For Each ?WHAT? in Result

2015-01-10 Thread Lewis Balentine
Result (gb.db)
This class represents the result of a SQL request.
This class is not creatable.
This class acts like a read / write array.
This class is *enumerable* with the FOR EACH keyword.

Guess this should be obvious but not to me  pray tell what 
type/class does one use to enumerate it ??
I tried "ResultField[]"
I tried "Collection"
I tried to try "record"
As a last resort I tried String[]
Suffice it to say: I have not a clue :-\


Dim MyResult as Result
Dim MyRecord as ?

Result = Connection.Find (Something)

For Each MyRecord in MyResult
 Print MyRecord["Field1Name"]
Print MyRecord["Field2Name"]
Print MyRecord["Field3Name"]
Next

regards,

Lewis
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Column Alignment Property

2015-01-09 Thread Lewis Balentine
Thank you for the clarification.

Maybe I should create a property that would tell DataView if it should override 
or not the alignment?

That would be most helpful. :-)
I wondered if there was such a property that I missed.

regards,

Lewis


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Does anyone have experience with gb.openGL and "Not an object"?

2015-01-09 Thread Lewis Balentine
>> but it comes to 57 megabytes. Do you want me to post it to the mailing list 
>> ? <<
FYI: My previous experience is that the mailing list would reject it because of 
size.

Lewis



--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Column Alignment Property

2015-01-09 Thread Lewis Balentine
Thanks for the version explanation ...

A lot of trouble, all for nothing...

It happens sometimes.
I just wanted to be certain I tried the latest version before I 
submitted the email...

Cheers,

Lewis


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Array.Sort

2015-01-09 Thread Lewis Balentine
I did not expect this many comments. I believe that the KISS principle 
should apply to the Wiki particularly for the benefit of new users or 
those whose first language may not be English (my British friends tell 
me that English is not my first language). I removed references to 
"procedure" and "function".

 ' The empty set of parentheses is REQUIRED when sort is called
 ' without the optional mode parameter and is expected to return
 ' an array.

 ' The empty set of parentheses is NOT required to sort the array
 ' without returning anything.

 ' all three examples print the following:
 1234567890
 ABCDEFGHIJ
 abcdefghij

Regards,

Lewis


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Column Alignment Property

2015-01-09 Thread Lewis Balentine
It appears to me that the Column Alignment Property does not work for 
some types.


 Sample Code: 
Public Sub ButtonCenter_Click()
  Dim I As Integer
  For I = 0 To DataView1.View.Columns.Max
DataView1.View.Columns[I].Alignment = Align.Center
  Next
  Me.Caption = Application.Name & ": Center"
End
-
The results are:
Serial, Boolean, Long, Date: Column Alignment as expected
Integer, Float: always Align.Right
String: always Align.Left

Please see that attached project archive for source code and otherwise 
useless SQLite3 Database.


On another note:
I wanted to verify these results with a later verions of GAMBAS. I have 
one machien set up with: deb 
http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu trusty main. It 
reported version 3.6.99 available. I did the normal update but it still 
reported 3.6.90.


I then did: $ sudo apt-get purge gambas3
followed by: $ sudo apt-get autoremove
followed by: reboot
followed by: sudo apt-get install gambas3

It still reports version 3.6.90 although as I watched the install I 
clearly saw references to 3.6.99 (see below).

... and the results were the same for all three version tests.

Regards,

Lewis Balentine

[System 2 updated] 
Gambas=3.6.90
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Linux Mint 17 Qiana
Desktop=MATE
Theme=QGtk
Language=en_US.UTF-8
Memory=3944M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4


[System 2 not-updated] 
Gambas=3.6.90
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Linux Mint 17 Qiana
Desktop=MATE
Theme=QGtk
Language=en_US.UTF-8
Memory=3944M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4


[System 1] 
Gambas=3.6.2
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Linux Mint 17 Qiana
Desktop=MATE
Theme=QGtk
Language=en_US.UTF-8
Memory=15994M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4




AlignmentTest-0.0.1.tar.gz
Description: application/gzip
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Array.Sort

2015-01-08 Thread Lewis Balentine
On 01/08/2015 07:19 AM, Tobias Boege wrote:
> Array.Sort() is a *method* :-)

The basic (pun intended) elements of all OOP languages are classes 
constructed of properties and methods.
--- you got me on that one

In GAMBAS there seem to be several class methods defined that sometimes 
require parenthesis and sometimes do not. I was trying to 
determine/define the conditions that delimit when those parenthesis are 
required using familiar BASIC terms ... as in:
 Public/Private Function  foo () as data type
 Public/Private Sub  foo ()
both of which I believe are appropriately considered methods in OOP 
languages.

I believe my second formal computer class was MBASIC on a Osborn CPM 
computer (4 inch green screen). I am trying to recall if the term 
"Function" was defined in that language but those gray cells are no 
longer responding reliably. The other option was "Go to" that eventually 
evolved into "Public/Private Sub". At the time we called those 
"procedures".  I still call them "procedures" to distinguish them from a 
"function" that by definition is supposed to return something.

Take a look at what I put in the WiKi and let me know if I should change it.
http://gambaswiki.org/wiki/comp/gb/string[]/sort
... and if someone insists I will go back and change the variables to 
Hungarian notation but personally I find it more confusing than enlighting.

Cheers,

Lewis



--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Array.Sort

2015-01-07 Thread Lewis Balentine
oops 
Last line should be:
Print "'array.max'returns index of the last item in an array: " & 
XXX.max

On 01/07/2015 11:59 PM, Lewis Balentine wrote:

> Print "'array.max'returns the number of items in an array:  " 
> & XXX.max
>
>   Quit
> End


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Array.Sort

2015-01-07 Thread Lewis Balentine

Do I have it correct now ??
The program runs and operates as expected.
My concern is more to the proper nomenclature than function.

Regards,

Lewis Balentine

'--- --- (project archive attached to message) --- ---
Private Function TestFunction() As String[]
  Return ["abcdefghij", "1234567890", "ABCDEFGHIJ"]
End

Private Sub DoPrint(XXX As String[])
  Dim S As String
  For Each S In XXX
Print S
  Next
  Print "--"
End

Public Sub Main()
  Dim XXX As New String[]
  ' NOTE:
  '   The empty set of parentheses is REQUIRED when
  '   sort is used as a function to return an array.
  ' array=array.sort()   will work
  ' array=array.sort will not work
  DoPrint(TestFunction())
  DoPrint(TestFunction().sort())
  '
  XXX = TestFunction()
  DoPrint(XXX)
  DoPrint(XXX.Sort())
  '
  XXX = TestFunction().sort()
  DoPrint(XXX)
  '
  ' NOTE:
  '   The empty set of parentheses is NOT required when
  '   sort is used as a procedure call to simply sort
  '   array without returning anything.
  ' array.sort()   will work
  ' array.sort will work
  XXX = TestFunction()
  XXX.Sort
  DoPrint(XXX)
  '
  ' array.reverse and array.pop work similarly.
  DoPrint(XXX.Reverse())
  XXX.Reverse
  DoPrint(XXX)
  XXX.Pop
  Print XXX.Pop()

  ' parentheses are not used for an array's properties
  Print "=="
  XXX = TestFunction()
  Print "'array.dim'returns the number of dimensions in an array: " 
& XXX.dim
  Print "'array.length' returns the number of items in an array:  " 
& XXX.length
  Print "'array.count'  returns the number of items in an array:  " 
& XXX.count
  Print "'array.max'returns the number of items in an array:  " 
& XXX.max


  Quit
End



ArrayExample-0.0.1.tar.gz
Description: application/gzip
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Array.Sort

2015-01-07 Thread Lewis Balentine
No ... I was not forgetting.
I have not yet learned they are required ...
... but this old dog 'will' learn the new tricks.

Thank thee again.

Lewis

On 01/07/2015 06:09 PM, T Lee Davidson wrote:
> Hi Lewis,
>
> You're forgetting, like I often do, the parentheses for the method [.Sort()].
>
>


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Array.Sort

2015-01-07 Thread Lewis Balentine
I was playing around trying to learn how to pass string arrays back and 
forth.
I then looked at the array.sort function. The prototype in the Wiki 
indicates that it returns an "string[]".

   Function Sort([Mode As Integer]) As String[]

However it seems that I can not use the returned values(s) where I would 
normally use an array. It appears to to me to operate more as a SUB than 
a FUNCTION in that it resorts the array but does not return something 
that I can use in another function or procedure. Is my interpretation of 
the prototype wrong-headed ?

Regards,

Lewis Balentine

'
Private Function TestFunction() As String[]
   Return ["TEST:abcdefghij", "TEST:1234567890", "TEST:ABCDEFGHIJ"]
End

Private Sub DoPrint(XXX As String[])
   Dim S As String
   For Each S In XXX
 Print S
   Next
   Print "--"
End


Public Sub Main()
   ' From Gambas Wiki:
  ' Function Sort([Mode As Integer]) As String[]
  ' Sort the array.
  '
   Dim XXX As String[] = ["XXX:abcdefghij", "XXX:1234567890", 
"XXX:ABCDEFGHIJ"]
   Dim S As String

   ' All of the following work as expected
   DoPrint(XXX)
   DoPrint(TestFunction())
   XXX.Sort
   DoPrint(XXX)
   XXX = TestFunction()
   XXX.Sort
   DoPrint(XXX)

   ' None of the following works: Type Mismatch, wanted string[] got 
function instead
   ' xxx = TestFunction().sort
   ' DoPrint(XXX.sort)
   ' DoPrint(TestFunction().sort)

   ' For Each S In XXX.Sort'  not an object
   '   Print S
   ' Next
   ' Print "---"

   ' For Each S In TestFunction().sort   '  not an object
   '   Print S
   ' Next

   Quit
End

' [System]
' Gambas = 3.6.2
' OperatingSystem = Linux
' Kernel = 3.13.0 - 24 - generic
' Architecture = x86_64
' Distribution = Linux Mint 17 Qiana
' Desktop = MATE
' Theme = QGtk
' Language = en_US.UTF - 8
' Memory = 15994 M
' [Libraries]
' Cairo = libcairo.so.2.11301.0
' Curl = libcurl.so.4.3.0
' DBus = libdbus - 1. so.3.7.6
' GStreamer = libgstreamer - 0.10.so.0.30.0
' GStreamer = libgstreamer - 1.0.so.0.204.0
' GTK + 3 = libgtk - 3. so.0.1000.8
' GTK += libgtk - x11 - 2.0.so.0.2400.23
' OpenGL = libGL.so.1.2.0
' Poppler = libpoppler.so.44.0.0
' Qt4 = libQtCore.so.4.8.6
' SDL = libSDL - 1.2.so.0.11.4

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Connecting DataControl to DataSource

2015-01-05 Thread Lewis Balentine
YEP --- that was the problem. I completely missed "is a container". In 
MS VB5/6 you only needed to place the Datasources on the same form  
actually not even that: you could build a connection or selection set 
and reference that.

One thing I would like to see is the ability to return the SQL Query 
actually used to obtain the "Result". This would be very helpful when 
trying to figure out why something did not work like one expected it to. 
I have used the "Subst" function to build such a string but there is 
always the nagging doubt that it is not exactly the same via some way 
Gambas handles substitutions or (more likely) I made a typo in 
duplicating the process.

Thanks for you help LEE.

Regards,

Lewis


On 01/05/2015 07:58 PM, T Lee Davidson wrote:
> On 01/05/2015 04:35 PM, Lewis Balentine wrote:
>> I must be missing something very basic in the use of form database controls.
>> I can not seem to get a data control populated ...
>> It appears to me that the data control is not linked to the DataSource.
>> What am I missing ???
>>
>> Two additional questions:
>> Is there a way to access the "Result" object of a DataSource ?
>> Is there a way to change the "DataSource" for a DataControl ?
>>
>> Regards,
>>
>> Lewis Balentine
> Hi Lewis,
>
> You didn't provide your project, so I can only guess at how you've designed 
> the DataSource and DataControl(s).
>
> But, I think I can answer your first and third questions with one answer. 
> Your third question gives me a hint that you are doing the same thing
> I first did.
>
> One thing that I missed at first is that the data control needs to be a child 
> of the data source, and, conversely the data source must be the
> parent of the data control.
>
> In other words, when you place the DataSource on the form, you then expand it 
> so it can contain (ie. be the parent of) the data controls.
>
>
> Lee
> __
>
> "Artificial Intelligence is no match for natural stupidity."
>
> --
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Connecting DataControl to DataSource

2015-01-05 Thread Lewis Balentine
I must be missing something very basic in the use of form database controls.
I can not seem to get a data control populated ...
It appears to me that the data control is not linked to the DataSource.
What am I missing ???

Two additional questions:
Is there a way to access the "Result" object of a DataSource ?
Is there a way to change the "DataSource" for a DataControl ?

Regards,

Lewis Balentine

'
Public Sub Form_Open()
   Dim I As Integer
   ' This is A SIMPLE form:
   ' It has Two controls:
   '   gb.db.form: DataSource named DataSource1
   '   gb.db.form: DataView named DataView1

   ' pvr.FindDB() finds the SQLite3 DB file and opens a connection to it 
named "pvr.PvrDb"
   pvr.FindDB()

   ' DataSource is a container that provides data from a database to all 
its children and grand-children recursively:
   ' It uses its Table And Filter properties And an Open Connection To 
make a Result object.
   ' From this Result, it fills its children controls.
   ' The database Is Defined by the Connection property.
   DataSource1.Connection = pvr.PvrDb
   DataSource1.Table = "Select StartDateTime, ChannelDigital, Status, 
ShowDuration, ShowTitle from TitanTVSchedule Order by StartDateTime, 
ChannelDigital"
   DataSource1.Filter = ""

   Debug DataSource1.Connection.Type  '
   Debug DataSource1.Connection.Host
   Debug DataSource1.Connection.Name
   Debug DataSource1.Connection.Type
   Debug DataSource1.Connection.Opened
   Debug "DataSource1 Record Count: "; DataSource1.Count
   Debug "--"

   ' This control Implements a TableView that shows the contents Of a 
database table And allows To edit it.
   ' The data Is Provided by the the first DataSource parent control.
   ' The Columns Property controls the list Of fields To display Or edit.
   DataView1.Enabled = True
   DataView1.Columns = ["StartDateTime", "ChannelDigital", "Status", 
"ShowDuration", "ShowTitle"]
   DataView1.Update

   Debug "DataView1 Parent: "; DataView1.Parent.Name
   Debug "DataView1 Column Count: "; DataView1.View.Columns.Count
   Debug "DataView1 Row Count: "; DataView1.View.Rows.Count
End

' Console Window Output:
' pvr.FindDB.409: Open: True /home/lewis/Documents/KWPVR.DB3
' FMain.Form_Open.22: sqlite
' FMain.Form_Open.23: /home/lewis/Documents
' FMain.Form_Open.24: KWPVR.DB3
' FMain.Form_Open.25: sqlite
' FMain.Form_Open.26: True
' FMain.Form_Open.27: DataSource1 Record Count: 31
' FMain.Form_Open.28: - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - - - - -
' FMain.Form_Open.37: DataView1 Parent: FMain
' FMain.Form_Open.38: DataView1 Column Count: 0
' FMain.Form_Open.39: DataView1 Row Count: 0

' [System]
' Gambas = 3.6.2
' OperatingSystem = Linux
' Kernel = 3.13.0 - 24 - generic
' Architecture = x86_64
' Distribution = Linux Mint 17 Qiana
' Desktop = MATE
' Theme = QGtk
' Language = en_US.UTF - 8
' Memory = 15994 M
' [Libraries]
' Cairo = libcairo.so.2.11301.0
' Curl = libcurl.so.4.3.0
' DBus = libdbus - 1. so.3.7.6
' GStreamer = libgstreamer - 0.10.so.0.30.0
' GStreamer = libgstreamer - 1.0.so.0.204.0
' GTK + 3 = libgtk - 3. so.0.1000.8
' GTK += libgtk - x11 - 2.0.so.0.2400.23
' OpenGL = libGL.so.1.2.0
' Poppler = libpoppler.so.44.0.0
' Qt4 = libQtCore.so.4.8.6
' SDL = libSDL - 1.2.so.0.11.4


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Wiki Observation, SQL syntax

2015-01-02 Thread Lewis Balentine
 >> where to put the missing information? <<

Did I mention before that my ignorance is eminence ?   :>)
Well I am also a senile old goat: There is a mention of how syntax for 
arrays is a bit different in Gambas, but I do not seem to be finding it 
today  oh there it is under Array Declaration (ref: 
http://gambaswiki.org/wiki/cat/arraydecl). I thought perhaps a link on 
this page would be good as well but perhaps not as it is more oriented 
toward numeric indexed arrays.

I really thing that there needs to be a good section on using the GD.DB 
components (someone started this with "How to create and use MySQL 
connection").

I think that I should refrain from making a suggestion in this regard as 
I am still working at understanding the general Lexicon and Syntax 
conventions used in Gambas. One of the things that made VB5 so popular 
was its excellent help system. In VB6 MS dumped in everything else from 
their array of languages and tools (that did more damage than good). 
Gambas is well on its way to having a good help system (I would like to 
see a Gambas Wiki search function, but there is always Google). I hope 
to be able to contribute to this effort in the future --- perhaps by 
adding examples.

Regards,

Lewis Balentine

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Wiki Observation, SQL syntax

2015-01-02 Thread Lewis Balentine
Thank you to both Benoit and Tobias for the explanations. I did figure 
it out but did not realize that a "Result" could be treated as an array. 
I tend to think of DB data as structures.

... but my real point was that when the syntax can be considered a bit 
unusual then the Wiki needs to document the use of the syntax. Otherwise 
potential new users are left without a clue. I observed this case and 
thought that it was perhaps worth mentioning so someone might at 
sometime update the information.

Cheers,

Lewis


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Wiki Observation, SQL syntax

2015-01-01 Thread Lewis Balentine
For some reason I do not seem to be able to log into the Gambas Wiki. 
That is probably a good thing considering my level of ignorance (which 
has proven to be immense). Thus I pass these observations along for 
consideration:

I have dealt with various SQL Data Bases for some two decades (primarily 
Oracle but also MS SQL, Access, etc.). When I started looking at some of 
the Gambas functions I found a syntax pattern that I was unfamiliar with.

Ref: http://gambaswiki.org/wiki/comp/gb.db/_connection/find


Function *Find* ( _Table_ As String *[* , _Request_ As String, 
_Arguments_ As , ... *]* ) As Result 



  *

_Table_

  *

_Request_

  *

_Arguments_


I assume that this form comes from a language that I am unfamiliar with 
(or perhaps an implementation of stored procedures) and thus goggled: 
SQL Request Arguments
I found a few references to MS Excel but no suitable explanation. I 
finally found the answer in the "obsolete" Gambas Wiki that is still online:

Ref: http://gambasdoc.org/help/comp/gb.db/connection/subst?v3
Creates a SQL sentence by substituting its arguments into a format string.

  * _Format_is the SQL sentence.
  * _Arguments_are the arguments to substitute.

The&1,&2... patterns inside the_Format_string are replaced by the SQL 
representation of the 1st, 2nd..._Arguments_.

These arguments are quoted according to the underlying database SQL syntax.


I also note from an example in the "obsolete" Gambas Wiki that an 
explanation mark "!" is used to delimit field names in a result.
http://gambasdoc.org/help/comp/gb.db/connection/edit?v3

I do not find any similar example in the current Gambas Wiki but perhaps 
I missed it.

Regards,

Lewis







--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] IF Not (any boolean) then

2015-01-01 Thread Lewis Balentine
 >> The error is not the NOT it's the missing ()  <<
Actually the error turns out to be  "EXTRA" (Parenthesis).
The following two lines do not produce the error:

If Not True Then Print "False" Else Print "True"
If Not TestFunk() Then Print "False" Else Print "True"

It was my mistaken impresion that the parameters of an operator(s) could ALWAYS 
be enclosed within Parenthesis as in:

X = 1 + 1
X = (1) + (1)
X = (1 + 1) * 1

Lewis Balentine

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] IF Not (any boolean) then

2015-01-01 Thread Lewis Balentine
My Apologies, I was trying to keep the message short and to the point:

' Gambas module file
' Project IfNot

Public Sub Main()
   ' The following line Prints "False"
   If TestFunk() Then Print "True" Else Print "False"
   ' The following line prints "False"
   If TestFunk() = False Then Print "False" Else Print "True"
   '*** The following line produces the error "unknown identifier: NOT" ***
   'If Not(TestFunk()) Then Print "False" Else Print "True"
   ' The following line prints "True"
   If True Then Print "True" Else Print "False"
   '*** The following line produces the error "unknown identifier: NOT" ***
   'If Not(True) Then Print "False" Else Print "True"

End

Private Function TestFunk() As Boolean
 Return False
End

' [System]
' *** Gambas = 3.6.2 ***
' OperatingSystem = Linux
' Kernel = 3.13.0 - 24 - generic
' Architecture = x86_64
' Distribution = Linux Mint 17 Qiana
' Desktop = MATE
' Theme = QGtk
' Language = en_US.UTF - 8
' Memory = 15994 M
' [Libraries]
' Cairo = libcairo.so.2.11301.0
' Curl = libcurl.so.4.3.0
' DBus = libdbus - 1. so.3.7.6
' GStreamer = libgstreamer - 0.10.so.0.30.0
' GStreamer = libgstreamer - 1.0.so.0.204.0
' GTK + 3 = libgtk - 3. so.0.1000.8
' GTK += libgtk - x11 - 2.0.so.0.2400.23
' OpenGL = libGL.so.1.2.0
' Poppler = libpoppler.so.44.0.0
' Qt4 = libQtCore.so.4.8.6
' SDL = libSDL - 1.2.so.0.11.4
'
' [System]
' *** Gambas = 3.6.90 ***
' OperatingSystem = Linux
' Kernel = 3.13.0 - 24 - generic
' Architecture = x86_64
' Distribution = Linux Mint 17 Qiana
' Desktop = MATE
' Theme = QGtk
' Language = en_US.UTF - 8
' Memory = 3944 M
' [Libraries]
' Cairo = libcairo.so.2.11301.0
' Curl = libcurl.so.4.3.0
' DBus = libdbus - 1. so.3.7.6
' GStreamer = libgstreamer - 0.10.so.0.30.0
' GStreamer = libgstreamer - 1.0.so.0.204.0
' GTK + 3 = libgtk - 3. so.0.1000.8
' GTK += libgtk - x11 - 2.0.so.0.2400.23
' OpenGL = libGL.so.1.2.0
' Poppler = libpoppler.so.44.0.0
' Qt4 = libQtCore.so.4.8.6
' SDL = libSDL - 1.2.so.0.11.4

cheers,

Lewis



On 01/01/2015 04:39 PM, Tobias Boege wrote:
> On Fri, 02 Jan 2015, adamn...@gmail.com wrote:
>> On Thu, 1 Jan 2015 23:13:20 +0100
>> Tobias Boege  wrote:
>>
>>> On Thu, 01 Jan 2015, Lewis Balentine wrote:
>>>> If I use "NOT" in an "IF" statement with any boolean (function or value)
>>>> then I get an error. example:
>>>>
>>>> If NOT (BooleanFuntion) then Do this
>>>> unknown identifier: NOT
>>>>
>>>> Am I mistaken in thinking that one should be able to use the NOT
>>>> operator in this manner ?
>>>>
>>>> I can get around this by changing the syntax to. example:
>>>> If BooleanFuntion = False then Do this
>>>>
>>> Attached is a script which works over here. If you use Not in the same way,
>>> there must be an error in your Gambas or the parts of your code which you
>>> didn't show us. (The latter being a common outcome of not sending the whole
>>> script/project ;-))
>>>
>>> Regards,
>>> Tobi
>>>
>>> -- 
>>> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>> Hey Tobi!
>>
>> Didn't we do this one a few weeks ago?
>>
>> The error is not the NOT it's the missing () 
>>
>> b :-)
> And I insist that it would be easier to spot if there was a whole concrete
> (yet minimal) script to look at, not abstracting from important syntactical
> details like parentheses or whether BooleanFunction above was actually a
> Function returning a Boolean or an expression producing a Boolean. Well
> whatever, see you next time, I guess :-)
>
> Regards,
> Tobi
>


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] IF Not (any boolean) then

2015-01-01 Thread Lewis Balentine
If I use "NOT" in an "IF" statement with any boolean (function or value) 
then I get an error. example:

If NOT (BooleanFuntion) then Do this
unknown identifier: NOT

Am I mistaken in thinking that one should be able to use the NOT 
operator in this manner ?

I can get around this by changing the syntax to. example:
If BooleanFuntion = False then Do this

Regards,

Lewis

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems on mail list

2014-12-29 Thread Lewis Balentine

Surely you want to "enhance" it before you print it ...

On 12/29/2014 12:02 PM, Tobias Boege wrote:

On Sun, 28 Dec 2014, B Bruen wrote:

On Sat, 27 Dec 2014 18:37:05 +0100
Beno?t Minisini  wrote:


Le 27/12/2014 13:44, Gian a ?crit :

This morning I received the email sent on 25 by Wolfgang.
My answer of 11:29 today 27 not appears.
What happens to the mail list?
Hello
Gianluigi


The mailing-list is managed by the Sourceforge servers, and we can't do
anything if something goes wrong, except praying.

--
Beno?t Minisini


Hail Mary full of grace,
Deliver us from this terrible place,
There is no mail, there is no news
And no-one solves my Gambas blues.

We keep the faith, we hold the light,
Please get us out of this terrible plight.
My events don't fire, my handlers fold
silently, no errors told.

We hold the 'Forge in reverence
and look each hour in expectation
of clues, and even Tobi's sense
but yet there seems to be stagnation.

Mary, we do implore
that you knock upon their door,
kick their a*s*, make them move
and hopefully then things improve.

Amen

(apologies  but I was on a roll)

Looking forward to Gambas2015  !!! :_)

Bruce


Wow! This goes straight to the printer.

Regards,
Tobi





prayer.pdf
Description: Adobe PDF document
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Install from Ubuntu repo - several issues

2014-12-21 Thread Lewis Balentine
Thank you Willy. Those instructions helped me as well.
Lewis

On 12/12/2014 08:22 AM, Willy Raets wrote:
> On vr, 2014-12-12 at 05:54 -0800, LVDave wrote:
>> Having used to use MSVisualBasic many moons ago, I wanted to see how close
>> Gambas was to VB. Since I'm on Ubuntu 14.04, I installed Gambas from the
>> Ubuntu repository. Everything installed with no errors, but when I attempt
>> to open any one of the sample projects, I get a dialog box saying "this
>> project seems to be already opened, opening the same project twice can lead
>> to data loss"...If I go ahead and "reopen" the sample, it appears to load
>> ok, but then if I try to run it, I get a dialog box saying "the program has
>> returned the value of 1"... As I said this occurs with all of the sample
>> programs..
>>
>> What am I doing wrong??
> As far as I know Ubuntu 14.04 official repository has a very outdated
> Gambas 3.1.1.
>
> Since Gambas 3.1.1, many bugs have been fixed and the latest stable
> version is Gambas 3.6.2
>
> I suggest you first remove the current install (if it is Gambas 3.1.1)
> and next install the most recent stable Gambas 3.6.2 from the
> Gambas-team PPA.
>
> The instructions to install latest stable from binaries (PPA) are in the
> Gambas wiki:
> http://gambaswiki.org/wiki/install/ubuntu#t2
>
> If after all this you still have problems with the examples just let us
> know.
>
>


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] File & Directory Functions: PWD, cd

2014-12-14 Thread Lewis Balentine
Private WorkDir As String

Public Sub Main()
WorkDir = Application.Dir
   ' for development and change path to our sample directory
   ' comment out next line for actual runtime program
   WorkDir = "/mnt/Data/videos"
  ...
End

Thank you gentlemen


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] File & Directory Functions: PWD, cd

2014-12-14 Thread Lewis Balentine
>> spawns a new process (the shell) which changes its directory (using the cd 
>> built-in) to /another/directory and then dies. <<
That is what I expected but I wanted to verify it to before I asked the 
question.

>> If you want to change the CWD of your process nevertheless, I guess you can 
>> use Extern[1] and access the chdir() function in the C
library. <<
I suspect that might be a bit beyond my level of competence at this point.

>> There is no concept of a current working directory in Gambas <<
>> A cleaner solution is to use absolute paths throughout. <<
That is tad inconvenient for what I am trying to do. I want to write a console 
based application to process a number of files in the directory from which the 
application is run with no concept of what that directory might be at design 
time. I was going to use the 'cd' command to change to a target directory for 
development/testing --- then comment it out afterwards.

>> The CWD from process startup time is found in Application.Dir. <<
I think that can be used as an alternative solution to my problem.

Thank you Tobias.

Lewis



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] File & Directory Functions: PWD, cd

2014-12-14 Thread Lewis Balentine
I can find out what the current directory is with:
 Print Application.Env["PWD"]

However there does not seem to be anything to change the present working 
directory within the "File & Directory Functions".
I did try using the shell function. It did not seem to have the desired 
effect.
   Print Application.Env["PWD"]
   Shell ("cd /mnt/Data/videos")
   Wait 0.1
   Print Application.Env["PWD"]
--
 /home/lewis
 /home/lewis

So I guess that I have missed something obvious again.
How does one change the current directory in a Gambas console based 
program ?

Thank you,

Lewis

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] What is the Gambas equivalent of Inkey ?

2014-12-06 Thread Lewis Balentine
For a console application I want to issue a prompt:
"Press any key to continue ..."
or
"Press 'X' to exit or 'C' to continue:"
and then wait for the user to press a key.

I can find no equivalent for the Basic "inkey" function. I have tried 
using wait/read but it seems one must press the "enter" key.
Private Function InKey(Prompt As String) As Byte
   Dim n As Byte
   If Prompt <> "" Then Print Prompt
   n = 0
   While n = 0
 Wait 0.01
 ' n = Read As Byte
 n = Read 1
   Wend
   Return n
End

Suggestions ?

Lewis



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Try not catching XmlDocument Error

2014-12-05 Thread Lewis Balentine
I can not. I assume that I would have to download, build/compile and 
install that particular or later version. I am just a month into the 
land of Linux and less than half of that into Gambas. I have not 
advanced that far yet (still on baby steps).

I worked around the problem. As of about 6 hours ago I have my first 
Gambas application running (if somewhat crudely).

Lewis

On 12/05/2014 09:21 PM, Adrien Prokopowicz wrote:
> Le Fri, 05 Dec 2014 11:43:04 +0100, Lewis Balentine  a
> écrit:
>
>> The problem is that the ".xml" file in question is malformed. It happens
>> to have some lines after the end of the root element end tag. I was
>> trying to add  code to handle the exception however Gambas terminates
>> before entering the "If Error" code. This behavior is consistent.
>>
>> Error message: terminate called after throwing an instance of
>> 'XMLParseException*'
>>
>> Begin Sample code:---
>> Private Sub ProcessOneTitanFile(TitanFileName As String)
>> Dim TitanXML As New XmlDocument
>>
>> Print TitanFileName' needed to find offending file.
>> Try TitanXML.Open(TitanFileName)
>> If Error Then
>>   Print "*** FATAL ERROR *** SUB ProcessOneTitanFile."
>>   Print "*** FATAL ERROR *** trying to open XML file."
>>   Quit
>> Endif
>> ' other code follows
>> End
>> End Sample code:---
>>
>> regards,
>>
>> Lewis Balentine
>> [...]
> Hello Lewis,
>
> Revision #6711 should fix this problem. Can you confirm ?
>
> Regards,


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.settings comments deleted

2014-12-05 Thread Lewis Balentine
*.conf appears to be similar to *.ini files found for decades on the the 
ms windows platform. I have always preferred them in that environment 
rather than the newfangled and nearly unmanageable windows registry. 
They allow one to modify the operation of a program without having to go 
change the source code. It is handy to be able to modify these 
configuration files  with a plane text editor to meet requirements of a 
change in the environment (i.e. that critical shared network directory 
has been moved to another location). After number of years not touching 
a particular ini/conf file it may be useful to have a few comment in the 
file to refresh one memory cells. Another unusual feature of the conf 
files is that gb.setting reorders the order of the slots ... 
interestingly enough it maintains the order of the keys under the slots.

One needs to be adaptable. In the case in question I have inserted a few 
remarks as :
[0-kvpr]
remark0 = "all comment lines are stripped from this file by the application"
remark1 = "these directory paths must be terminated with a forward slash 
'/'."
...
[1-job control]
remark0 = "job 001 is a template, do not delete it."
...

Problem (at least mine) solved :-)

regards,

Lewis


On 12/05/2014 08:36 AM, Benoît Minisini wrote:
> Le 05/12/2014 15:18, Tobias Boege a écrit :
>> On Fri, 05 Dec 2014, Beno?t Minisini wrote:
>>> Le 05/12/2014 12:07, Lewis Balentine a ?crit :
>>>> When settings are written back to the ".conf" file all comments/remarks
>>>> are stripped from the file.
>>>> Should not the documentation include a warning to this effect?
>>> Yes.
>>>
>>>> Better yet would be to keep those comments/remarks intact.
>>> It's not really possible.
>>>
>> I didn't even know that comments were allowed. The wiki states it, yes, but
>> the class interface doesn't offer it.
>>
>> How about a Settings.Comments As Collection property which can associate to
>> a (valid) key in the Settings a few lines to put before that item in the
>> settings file? This can be parsed correctly and later written to the file in
>> order again. One may even imagine that the empty key can receive a comment
>> which is put at the beginning of the comment file.
>>
>> Regards,
>> Tobi
>>
> Pfff. I would say that if you need comments to edit a settings file by
> hand, you shouldn't do that. :-)
>


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gb.settings comments deleted

2014-12-05 Thread Lewis Balentine
When settings are written back to the ".conf" file all comments/remarks 
are stripped from the file.
Should not the documentation include a warning to this effect?
Better yet would be to keep those comments/remarks intact.

example incoming:
[slot]
; remark
# remark
; comment
Value0ne =1
ValueTwo =2
ValueThree =3
# end of file

example outgoing:
[slot]
Value0ne =1
ValueTwo =2
ValueThree =3

regards,

Lewis

[System]
Gambas=3.6.2
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Linux Mint 17 Qiana
Desktop=MATE
Theme=QGtk
Language=en_US.UTF-8
Memory=15994M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   >