Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-06 Thread Bruce Bruen
On Mon, 2012-05-07 at 01:20 +0200, Benoît Minisini wrote: > The autotools packager should work anyway, even if a component with no > exported class seems to not be really useful. :-) > OK, (but I wouldn't really consider this worth fixing) Source archive for a "no exports" component attached. H

Re: [Gambas-user] Gambas 3 arrays usage

2012-05-06 Thread Bruce Bruen
Oops. There was no racial slur intended there. B In fact I'm particularly fond of the "belle cuisine française" especially dishes like "escargots grillés au beurre avec des champignons, les échalotes, le piment, l'ail et du fromage de lait de chèvre dans les cendres". ... damn I just knew that g

[Gambas-user] Packaging - rpmbuild

2012-05-06 Thread Bruce Bruen
Me again! :-) Houston , we have a problem! I'm not too sure how to characterise this but, I'll start along these lines: 1) I'm fairly sure that rpmbuild (and friends) depends on some pretty stable autotools stuff in the source archive. For this reason I have been harping on about getting the au

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-05 Thread Bruce Bruen
(New sub-thread) ".info" has disappeared If a project has its type set to "Component" now, when it is compiled (or Make Executable) there is no .info file created in the project directory any more. Is this by design? (Because the autotools install target is still looking for it and fails. I c

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-04 Thread Bruce Bruen
On Sat, 2012-05-05 at 03:59 +0200, Benoît Minisini wrote: > Le 05/05/2012 03:42, Bruce Bruen a écrit : > > On Sat, 2012-05-05 at 02:45 +0200, Benoît Minisini wrote: > >> Le 04/05/2012 23:34, Benoît Minisini a écrit : > >>> > >>> ... > >>> >

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-04 Thread Bruce Bruen
Thanks, Works fine now. Bruce On Fri, 2012-05-04 at 23:17 +0200, Benoît Minisini wrote: > Le 02/05/2012 06:54, Bruce Bruen a écrit : > > Hi folks! > > > > (I'm getting pretty excited about the packager now.) > > > > > > Benoît, > > > > Pleas

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-04 Thread Bruce Bruen
On Fri, 2012-05-04 at 23:19 +0200, Benoît Minisini wrote: > Le 04/05/2012 15:25, Bruce Bruen a écrit : > > Subtopic autotools > > > > autotools now works like a dream. We have been distributing stuff via > > autotools for several days now and have only come acros

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-04 Thread Bruce Bruen
On Sat, 2012-05-05 at 02:45 +0200, Benoît Minisini wrote: > Le 04/05/2012 23:34, Benoît Minisini a écrit : > > > > I don't like any of those solution at the moment. > > > > And if I define a compilation constant that will tell the compiler if we > > are making an executable or not? That way, you wi

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-04 Thread Bruce Bruen
Subtopic autotools autotools now works like a dream. We have been distributing stuff via autotools for several days now and have only come across the following problem. "make uninstall" (as root) appears to work but in fact doesn't. Given that we have installed "sysinfos-0.0.2.tar.gz" via the u

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-01 Thread Bruce Bruen
Hi folks! (I'm getting pretty excited about the packager now.) Benoît, Please consider this little change for the autotools packager code in the IDE. We use a lot of common images in our projects. Corporate identity etc etc blah blah... Rather than have copies of all these in the projects we

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-01 Thread Bruce Bruen
Oh I forgot! A new problem. Spaces in the vendor name cause fails in the rpm builder. This is not a high priority issue, but it would be nice if spaces in the "Vendor name" field in the wizard were converted to underscores before it was used in the rpm build. But then again, it's probably only

Re: [Gambas-user] Two problems, might be local

2012-05-01 Thread Bruce Bruen
On Tue, 2012-05-01 at 02:49 +0200, Benoît Minisini wrote: > Le 01/05/2012 02:03, Bruce Bruen a écrit : > > Final comments for now. > > > >... > > > > To check this out you'd need a project with a form with a DateChooser > > already in it. But because

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-01 Thread Bruce Bruen
On Tue, 2012-05-01 at 12:22 +0200, Benoît Minisini wrote: in reply to my > > I tried using the Mandriva and Fedora RPM based packaging, which > > allowed me to create proper looking distribution packages, but ... > > > > When I tested the installation locally I run into the following > > problem. T

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-01 Thread Bruce Bruen
On Tue, 2012-05-01 at 12:22 +0200, Benoît Minisini wrote: > In reply to my: > > Not sure about this as far as the autotools packager is concerned. > > The icon.png is certainly in the gzip file (but is this because > > autotools is a "source" level package?) > > autotools is not reliable at th

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-05-01 Thread Bruce Bruen
On Tue, 2012-05-01 at 12:22 +0200, Benoît Minisini wrote: > A lot of answers to a lot of stuff, so I'm going to break it up into several > posts. > Le 29/04/2012 06:45, Bruce Bruen a écrit : > > > > SUGGESTION: Libraries should not need to have a startup class.

Re: [Gambas-user] Two problems, might be local

2012-04-30 Thread Bruce Bruen
Final comments for now. 1) Is the previous method I posted that causes the IDE crash reproduceable? 2) in the IDE Project.module, in the LoadFile function, towards the bottom of the function is the following code: Files[sPath] = hForm If hForm Then bError = hForm.LoadFile()

Re: [Gambas-user] Two problems, might be local

2012-04-30 Thread Bruce Bruen
Aha! Got the location of the "Bad event handler" (error message attached) And it's the DateChooser control that does it. Reproduce: 1 Create new graphical project 2 Open the main form 3 Drag a date chooser onto it. Bruce <>---

[Gambas-user] Two problems, might be local

2012-04-30 Thread Bruce Bruen
Since today I have had the following happen - see the screenshot. 1) The first time I try to "Make Executable" in the IDE I get that blue balloon. 2) Also, as soon as a change is made to a code line that pops up the "mini" help, then strange things occur. For example, if I type "App" then the hel

Re: [Gambas-user] About library and component packaging in Gambas 3

2012-04-28 Thread Bruce Bruen
Hi Benoit, A few comments inline... regards Bruce On Sat, 2012-04-28 at 15:26 +0200, Benoît Minisini wrote: > Hi, > > I'm continue in fixing problems in library and component packaging. Here > are the last news... > > Since revision #4687, there is now a project type option in the project >

[Gambas-user] Custom controls based on radiobutton question

2012-04-25 Thread Bruce Bruen
I am trying to create a customised radiobutton control. The problem I have is this. The native radiobutton control behaves according to the specification in that if more than one exists in the same parent then they automatically effect a mutually exclusive true value. In other words, setting one

Re: [Gambas-user] Can't see array contents in the debugger any more?

2012-04-25 Thread Bruce Bruen
On Tue, 2012-04-24 at 14:15 +0200, Benoît Minisini wrote: > Le 14/04/2012 11:58, Bruce Bruen a écrit : > > On Fri, 2012-04-13 at 18:17 +0930, Bruce Bruen wrote: > >> Some days ago I updated to rev4607, since then I can't see the contents > >> of arrays in the debugg

Re: [Gambas-user] Gambas3 on Slackware

2012-04-23 Thread Bruce Bruen
On Mon, 2012-04-23 at 23:30 +, Dr Infoblock wrote: > Sorry about incorrect error report, but Gamas 3.1.1 take ages to open on > Slackware 13.37 x86_64. > I had this symptom some months ago. I finally found that it was caused in my case by a bunch of con

[Gambas-user] Rev 4651 compile error with gb.xml

2012-04-21 Thread Bruce Bruen
reconfig-all completed OK configure -C completed OK make went well until the xml components ... Making all in gb.libxml make[2]: Entering directory `/home/bb/trunk/gb.libxml' make all-recursive make[3]: Entering directory `/home/bb/trunk/gb.libxml' Making all in src make[4]: Entering directory `/

[Gambas-user] Can't see array contents in the debugger any more?

2012-04-13 Thread Bruce Bruen
Some days ago I updated to rev4607, since then I can't see the contents of arrays in the debugger. It displays the array class instead. Any input please? regards Bruce -- For Developers, A Lot Can Happen In A Second. B

Re: [Gambas-user] Gambas3 & andLinux on WinXP

2012-04-12 Thread Bruce Bruen
On Thu, 2012-04-12 at 12:58 +0200, Rolf-Werner Eilert wrote: > Am 09.04.2012 12:09, schrieb Randall Morgan: > > I've used virtualbox from Sun Micro for my Windows Vista and 7 laptops to > > run Linux. Makes it simple and takes up only a little more space. > > > > Though it's slightly off-topic her

Re: [Gambas-user] About Visual Studio Express

2012-04-03 Thread Bruce Bruen
On Tue, 2012-04-03 at 10:09 +0100, jm wrote: > On Wed, 2012-03-28 at 15:40 +0300, Demosthenes Koptsis wrote: > > These days i started to test Visual Studio Express 2010 to compare it > > with Gambas3. > > > > Does anyone have any experience with VB Studio Express ? > > > > Are there any characte

Re: [Gambas-user] (no subject)

2012-03-20 Thread Bruce Bruen
On Tue, 2012-03-20 at 10:03 +0100, Mathias Maes wrote: > Hello, > > Gambas is great, but there is one small thing why it isn't widly used. No > cross-platform. > Well, I know only a little bit of the inner workings of Gambas, but: > > I've been looking to a lot of event-driven Basic dialects, and

Re: [Gambas-user] gambas and components

2012-03-19 Thread Bruce Bruen
On Mon, 2012-03-19 at 22:42 +1030, GMail wrote: > On Mon, 2012-03-19 at 11:43 +0100, Karl Reinl wrote: > > Salut, > > > > my question is for gambas2 and later for gambas3 > > > > I have an app, which uses gambas (home made) components. > > > > What does these components know about the app. > >

Re: [Gambas-user] gb3: how to check if event is pending execution before it triggers

2012-03-17 Thread Bruce Bruen
On Sat, 2012-03-17 at 02:04 -0400, Kevin Fishburne wrote: > Is there a way to check if an event is going to trigger in advance? Not in the known universe. It would be nice though, Lotto numbers, stock price changes etc etc :-) > My startup procedure (GUI.Main) allows two event procedures to trig

Re: [Gambas-user] IIf syntax

2012-03-16 Thread Bruce Bruen
On Fri, 2012-03-16 at 22:42 +0100, Benoît Minisini wrote: > Le 16/03/2012 22:21, Emil Lenngren a écrit : > > Yeah, I alreadyd did that ^^ > > It says "a" is an integer even though it should be a string... > > I think it is not really meant that you should be able to pass functions > > into IIf... >

Re: [Gambas-user] Um, any reason for this?

2012-03-06 Thread Bruce Bruen
On Tue, 2012-03-06 at 11:44 +0100, Benoît Minisini wrote: > Le 06/03/2012 10:47, Bruce Bruen a écrit : > > "" symbol lookup error: /usr/lib/libQtSql.so.4: undefined > > symbol: _ZN14QObjectPrivateD2Ev > > > > All new database using apps exit with code 127 a

[Gambas-user] Um, any reason for this?

2012-03-06 Thread Bruce Bruen
"" symbol lookup error: /usr/lib/libQtSql.so.4: undefined symbol: _ZN14QObjectPrivateD2Ev All new database using apps exit with code 127 and that message Um, using postgresql in these apps. Er, not using any gb.dbform libraries. ? I'm on r4534 file /usr/lib/libQtSql.so.4 /usr/lib/lib

Re: [Gambas-user] Bug? Gambas3

2012-03-05 Thread Bruce Bruen
h. Not that I can see. Could you be a bit more informative. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, Share

Re: [Gambas-user] String array empty after SUB (Gambas 2)

2012-02-23 Thread Bruce Bruen
On Thu, 2012-02-23 at 09:09 +0100, Rolf-Werner Eilert wrote: > That was it, Jussi, thanks a lot! > > Here we can see what it is good for to know about OOP :-) > > Regards > > Rolf > > Am 22.02.2012 18:49, schrieb Jussi Lahtinen: > > Just quick thought... maybe this "felder = feld.Copy()" gives

[Gambas-user] Expander control - two questions

2012-02-16 Thread Bruce Bruen
Hi folks, 1) Is it possible to change the height of the header of the expander, i.e. the bit that remains visible when it is collapsed? At the moment, it is too high for one line and too short for two. 2) Is it possible to change the height of the expanded view depending on the size of its' conte

Re: [Gambas-user] Gambas bug?

2012-02-10 Thread Bruce Bruen
On Fri, 2012-02-10 at 21:59 -0300, Fabián Flores Vadell wrote: > 2012/2/10 Emil Lenngren > Interesting, I have a similar problem, perhaps the same but maybe slightly different. I have a base class that is CREATE PRIVATE, it cannot be instantiated directly by a client application. It contains

Re: [Gambas-user] gb3: converting structures to classes

2012-02-07 Thread Bruce Bruen
On Tue, 2012-02-07 at 04:07 -0800, Randall Morgan wrote: > Actually, a Structure is a methodless class. zrr! ... and you can inherit from, override and make static attributes from a struct too? Please, lets keep things realistic here. --

Re: [Gambas-user] Date to string MMddyyyyHHmmss

2012-02-07 Thread Bruce Bruen
On Tue, 2012-02-07 at 00:24 -0800, abbat wrote: > How to get a Date without any separators, splash and dots? > > In VB.NET I can get it by: > Dim T = Now.ToString("MMddHHmmss") > > I get "02062012192533" > > In "HOW TO" I could not find such exemple. > > Thanks abbat, The answers to many o

Re: [Gambas-user] Issue 123

2012-02-02 Thread Bruce Bruen
Hi Benoît, This is driving the 3 of us crazy. Hint, hint. :-) Bruce -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual St

Re: [Gambas-user] web cam question

2012-01-29 Thread Bruce Bruen
On Mon, 2012-01-30 at 13:57 +1100, richard terry wrote: > HI List, > > I'm using an Ipevo2 web cam in my app. > > on the barrel of this webcam is a little button which, in windows, if clicked > > takes a shot > windows software. > > I wondered if anyone would now how to access clicking this bu

[Gambas-user] Re Issue 169 - a few comments

2011-12-27 Thread Bruce Bruen
Hi emil.len...@gmail.com I have some thoughts on this. Static Public Const c As Integer Any (public) const could be defineable as being "static" by nature (all instances share the same value). The Static keyword for Const is not required and is not in the systax defined in the help for "Constant

Re: [Gambas-user] Gambas-user Digest, Vol 67, Issue 16

2011-12-18 Thread Bruce Bruen
On Sun, 2011-12-18 at 17:20 -0600, Randy Millner wrote: > I can't seem to locate Corba and a couple of others, perhaps there are > some other naming convention > in use?, or more likey the 64bit pclinuxos development team hasn't > gotten around to packaging everything, yet. Randy, CORBA == T

Re: [Gambas-user] Hopefully, an optimisation for gb.db.postgresql

2011-12-13 Thread Bruce Bruen
By the way, here is the log from my test harness for an "Update" cycle (which changes a single column in a 46 column table and then undoes that change). The relevant lines are those marked "<< Connection.Edit" Bruce > Using repo gb.db.postgresql Main.c T

Re: [Gambas-user] One control with Expand, one not (Gambas2)

2011-12-12 Thread Bruce Bruen
On Mon, 2011-12-12 at 12:29 +0100, Rolf-Werner Eilert wrote: > Hope you can help here. > > I have a Tab control in my main Form. The Form is divided by an HSplit, > the Tab control sits on the right. In one of the tabs, there is a > GridView. This GridView shall expand with all the others. All

[Gambas-user] Hopefully, an optimisation for gb.db.postgresql

2011-12-12 Thread Bruce Bruen
Hi Benoit, I was tracing through the postgresql library trying to figure out why some tables would add, update or delete single rows in milliseconds and others took "seconds". I found that the table_init function in gb.db.postgresql Main.c is calling the field_info function for each and every colu

Re: [Gambas-user] Passing ... parameters

2011-12-09 Thread Bruce Bruen
Fabian and Jussi, Thanks guys, this is now so close it hurts! On Fri, 2011-12-09 at 20:04 +0200, Jussi Lahtinen wrote: > Perhaps you need something like this: > > Public Function F1(...) As Integer > > Return F2(Param.All) > > End > That (Param.All) appears to be the big part of the solu

[Gambas-user] Passing ... parameters

2011-12-08 Thread Bruce Bruen
Hi folks, I'm looking for a way to pass all the ... parameters in a function call on to another function. In other words, I have a situation where I want to pass all the extra parameters, but I don't know/care how many there are, viz Public Function F1(sType as String,...) as Boolean If sTyp

Re: [Gambas-user] Question - how to just run part of ones larger program

2011-11-21 Thread Bruce Bruen
On Tue, 2011-11-22 at 08:13 +1100, richard terry wrote: > Not sure I know how to phrase this question. > > My program is rather large. > > The secretarial staff wanted me to 'split off' the appointments module, so > they > can just run it side/by/side with the rest of the medical program, ie i

Re: [Gambas-user] GB3 Custom controls

2011-11-14 Thread Bruce Bruen
On Sun, 2011-11-13 at 20:40 +0100, Fabien Bodard wrote: > Oups ... too complex... this is the better way without observer > Not at all! (I'm using the observer method as this will be a custom control. As far as I can see I need that so the CC can see its' own events.) But thank you! I found w

Re: [Gambas-user] GB3 Custom controls

2011-11-13 Thread Bruce Bruen
Hi Fabien, Thanks for your input, responses inline regards Bruce On Sun, 2011-11-13 at 08:07 +0100, Fabien Bodard wrote: > 2011/11/13 Bruce Bruen : > > On Sun, 2011-11-13 at 03:01 +0100, Benoît Minisini wrote: > > > >> Hi Bruce, > >> > >> I took at a

[Gambas-user] Setting a controls Font back to "Normal" in a frame

2011-11-08 Thread Bruce Bruen
Setting the font property in a Frame control changes the fonts of all the contained controls. ARRGH! I just want to make the frame title bold. However, try what I may, I can't find a way to set the contained controls back to the Normal mode. I can underline them, change the Font itself, the

Re: [Gambas-user] GB3 Custom controls

2011-11-08 Thread Bruce Bruen
On Tue, 2011-11-08 at 15:41 -0800, Randall Morgan wrote: > I think that should be an upper case "C" which may be why it is being > ignored. *nix is case sensitive. > Oops, I wasn't being clear enough. > > Oh, by the way in install the "-c" option appears to be ignored these > > days. Maybe ju

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Tue, 2011-11-08 at 10:35 +1030, Bruce Bruen wrote: > FORGET THIS ONE! I found my problem - I had included phCCDemo as a > library in the project I was using to see if the new component was > available. No, I spoke too soon... :-( Tried with a new project and the Paddys-Hi

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Tue, 2011-11-08 at 10:27 +1030, Bruce Bruen wrote: > On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > > You must make a binary package of your component project. Normally > > this > > package should install the component in the same place as the other &

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > You must make a binary package of your component project. Normally > this > package should install the component in the same place as the other > components located in the Gambas 3 source code, and should become as > usable as them. >

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > b) the gb problem of having to reload the project if a new CC > class > > is added still seems to exist. > > What are you talking about exactly? Please give some details. Sorry, I am wrong on this one. Make executable does relo

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > 5) It would be really, really, really nice if all controls had a > > AcceptFocus property (IDE visible) so things like Picture boxes can > be > > skipped in custom navigation code > > Normally PictureBox is a read-only control, so it s

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > 4) It would be really, really nice if IsContainer was a RO property > > exposed by all controls > > To know if a control is a container, use the "IS" operator: > >If MyControl Is Container Then ... > > The difference is when a co

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > 2) (Related) Don't use the _DrawWith constant without care as it > will > > crash the IDE if the form is left open. > > _DrawWith works only if you specify a control used by the IDE project > (it must be in gb.qt4, gb.qt4.ext, gb.form

Re: [Gambas-user] GB3 Custom controls

2011-11-07 Thread Bruce Bruen
On Mon, 2011-11-07 at 21:26 +0100, Benoît Minisini wrote: > > 1) Declaring one of the hidden constants with the value set to the > > default causes problems, e.g. _IsContainer=False > > Mmm. What are you talking about exactly ? Sorry, my mistake. It's _IsMultiContainer=False. In the IDE using

[Gambas-user] Virtuality of TextArea.Selection

2011-11-05 Thread Bruce Bruen
Damn and blast! How do I "devirtualize" it? The TextArea.Selection is exactly the structure that I want to pass off to another class. The other class needs to know the start (mandatory, I need to handle the beginning of the string) , length (handy) and obviously the text. Do I have to create a cla

Re: [Gambas-user] File date (and time) / Gambas2

2011-11-04 Thread Bruce Bruen
On Fri, 2011-11-04 at 12:03 +0100, Rolf-Werner Eilert wrote: > Hi folks, > > I know I solved this somewhere in my projects a long time ago, but I > don't remember how... :-) So could you help me: How to find out a file's > date and time? > > I would expect a File.Date or something, but there i

Re: [Gambas-user] gb3: changing the active font

2011-11-01 Thread Bruce Bruen
On Wed, 2011-11-02 at 01:47 -0400, Kevin Fishburne wrote: > I'm using SDL and OpenGL. Normal routines for drawing fonts in a > DrawingArea work fine; I didn't have to change my code after > switching > from GTK/Qt. This code works: > >' Draw dialogue buffer. >Draw.Font.Size = sheight /

Re: [Gambas-user] gb3: changing the active font

2011-11-01 Thread Bruce Bruen
On Wed, 2011-11-02 at 00:47 -0400, Kevin Fishburne wrote: > I'm looking through the docs trying to find out how to change the active > font but am not having much luck. Anyone know how to do it? I can change > the size and color, but not the font being used. > The active font of a what? To se

Re: [Gambas-user] integer array in struct ?

2011-10-26 Thread Bruce Bruen
On Tue, 2011-10-25 at 15:49 +0200, wally wrote: > Bruce, > > may you explain theis please: > > > Print testit.ia.Bounds > > output: > (Integer[] 0x8161644) > > wally > > It's the address of the bounds object (don't know why i put it in there - must be getting senile too.) Bruce ---

Re: [Gambas-user] User timezone - could I ask a favour?

2011-10-26 Thread Bruce Bruen
On Tue, 2011-10-25 at 21:51 +0300, Jussi Lahtinen wrote: > Next time please make it ready to run project! > > I'm not sure this is correct: "Europe/Mariehamn". > I don't live in Mariehamn, but there is only one timezone in Finland! > Confusion... but then it should be Helsinki which is our capit

Re: [Gambas-user] User timezone - could I ask a favour?

2011-10-25 Thread Bruce Bruen
On Tue, 2011-10-25 at 12:06 +0200, Johny Provoost wrote: > OK, I get Europe/Brussels and that's correct > Gambas 2.21 > Ubuntu 11.04 with gnome2 > > Greetings, > Johny Provoost > Thanks Johny! Any other takers? Especially where it doesn't work! Bruce

Re: [Gambas-user] integer array in struct ?

2011-10-25 Thread Bruce Bruen
On the other hand, the following piece of garbage is also correct. Better minds than I will have to tell you what's in the array. ' Gambas module file Public Struct axis i As Integer f As Float ia As Integer[] End Struct Public Sub Main() Dim testit As New Axis Dim x As Integer Dim y As I

Re: [Gambas-user] integer array in struct ?

2011-10-25 Thread Bruce Bruen
On Tue, 2011-10-25 at 08:25 +0200, wally wrote: > Public Struct axis > i As Integer > f As Float > ia As Integer[] > End Struct etc ' Gambas module file Public Struct axis i As Integer f As Float ia As Integer[] End Struct Public Sub Main() Dim testit As New Axis Dim x As Inte

[Gambas-user] User timezone - could I ask a favour?

2011-10-24 Thread Bruce Bruen
Hi all, According to my web research the module below is the "best" way to obtain the user's timezone name (or "Olson name" if you prefer). This is because distros implement timezoning in different ways. It works fine for me using using the test harnesses I can devise for my (non-standard) distr

Re: [Gambas-user] 2D-Array ?

2011-10-22 Thread Bruce Bruen
On Sun, 2011-10-23 at 05:27 +0200, wally wrote: > Hi, > > more important as the following question itself, is where may i find the > answer myself without this mailinglist ? > I always have problems to find sufficient documentation on gambas :( > Where to search for it ? > How to search the maili

Re: [Gambas-user] Does gambas3 have the guts to make it?

2011-10-17 Thread Bruce Bruen
On Mon, 2011-10-17 at 09:49 +0200, Benoît Minisini wrote: > Anyway, I didn't understand everything: what is "ETL"? What are ETL > tools? What are their names? E(xport),T(ransform),L(oad) A mystic art involving moving a truckload or two of data between a source database and a nice clean new d

[Gambas-user] Does gambas3 have the guts to make it?

2011-10-17 Thread Bruce Bruen
Well you may have noticed a little drop off in my bug reports lately. I have just finished a little ETL exercise of a reasonable sized database (7.5million rows over 28 tables, heavily "foreign-keyed", postgresql 8.3 backends on both sides). It took me a few days longer than I thought it would be

Re: [Gambas-user] Collection key

2011-10-13 Thread Bruce Bruen
On Wed, 2011-10-12 at 23:03 +0300, Jussi Lahtinen wrote: > Hmmm... OK so the change would be then: > > static int find_string(CARRAY *_object, int mode, const char *value, int > len_value, int start) > > > > Still I think I'll give up this for today. > > Jussi Sage advice Jussi, I think

Re: [Gambas-user] gb3 database error handling

2011-10-10 Thread Bruce Bruen
On Tue, 2011-10-11 at 01:58 +0200, Benoît Minisini wrote: > > In the first line we see that db.Error=0 instead of the driver error > > code, I would have expected 1022 (mysql error: "Error: 1022 SQLSTATE: > > 23000 (ER_DUP_KEY) Message: Can't write; duplicate key in table '%s'). > > I don't know

Re: [Gambas-user] gb3 database error handling

2011-10-10 Thread Bruce Bruen
On Tue, 2011-10-11 at 01:58 +0200, Benoît Minisini wrote: > You have no Error.Backtrace because you are not inside an error > handler, but > inside normal code. Use System.Backtrace instead. Aha! Me=Duuumb! Thanks Bruce -

[Gambas-user] gb3 database error handling

2011-10-10 Thread Bruce Bruen
Hi Benoît, I don't raise these as bugs because they are only annoyances and don't (specifically) stop things from working. I have this code (which works fine when things are fine) but has a few quirks when a database error occurs. I made a simple test that just calls this and tries to add the sa

Re: [Gambas-user] gb3: unable to compile on Debian Wheezy (testing)

2011-10-06 Thread Bruce Bruen
On Thu, 2011-10-06 at 21:11 +1030, Bruce Bruen wrote: > On Thu, 2011-10-06 at 01:20 -0400, Kevin Fishburne wrote: > > > On 10/05/2011 06:20 AM, doriano.bleng...@fastwebnet.it wrote: > > > Bruce Bruen ha scritto: > > >> On Wed, 2011-10-05 at 01:19 -0400, Kevin F

Re: [Gambas-user] gb3: unable to compile on Debian Wheezy (testing)

2011-10-06 Thread Bruce Bruen
On Thu, 2011-10-06 at 01:20 -0400, Kevin Fishburne wrote: > On 10/05/2011 06:20 AM, doriano.bleng...@fastwebnet.it wrote: > > Bruce Bruen ha scritto: > >> On Wed, 2011-10-05 at 01:19 -0400, Kevin Fishburne wrote: > >>> Hopefully the Debian or Mint team will g

Re: [Gambas-user] gb3: unable to compile on Debian Wheezy (testing)

2011-10-05 Thread Bruce Bruen
On Wed, 2011-10-05 at 01:19 -0400, Kevin Fishburne wrote: > > In the interest of getting work done and facing the future of desktop > environments, I came to a painful decision and have switched to Kubuntu > 11.10. I decided that Debian Wheezy was insufficiently maintained for > stability and t

Re: [Gambas-user] Surrogate keys and database insertions

2011-10-04 Thread Bruce Bruen
On Mon, 2011-09-26 at 14:46 +0200, Benoît Minisini wrote: > > On Mon, 2011-09-26 at 14:03 +0200, Benoît Minisini wrote: > > > This feature is missing, mainly because there is no standard way to do > > > that in SQL, and I don't know if there is a function for that in all SQL > > > DBMS. > > > > I

Re: [Gambas-user] Issue 117

2011-10-01 Thread Bruce Bruen
On Sun, 2011-10-02 at 01:58 +0200, Benoît Minisini wrote: > > Hi Benoit, > > > > Yep, I was already thinking of writing up this stuff. It is a fairly > > big topic though! I have only begun to organise my thoughts and make > > notes. The attached mind map gives some idea. > > > > I think the

Re: [Gambas-user] Database manager - gambas2 vs gambas3 - questions

2011-10-01 Thread Bruce Bruen
On Sat, 2011-10-01 at 23:58 +0200, Benoît Minisini wrote: > > On Tue, 2011-09-27 at 12:37 +0930, Bruce Bruen wrote: > > > 1) In gambas2, I could get the database manager to "Make gambas code" > > > which was very handy, I can't find this feature in gambas3.

Re: [Gambas-user] Database manager - gambas2 vs gambas3 - questions

2011-09-26 Thread Bruce Bruen
On Tue, 2011-09-27 at 12:37 +0930, Bruce Bruen wrote: > 1) In gambas2, I could get the database manager to "Make gambas code" > which was very handy, I can't find this feature in gambas3. Is it > removed? > 2) In the gambas2 database manager I can expand the height

[Gambas-user] Database manager - gambas2 vs gambas3 - questions

2011-09-26 Thread Bruce Bruen
1) In gambas2, I could get the database manager to "Make gambas code" which was very handy, I can't find this feature in gambas3. Is it removed? 2) In the gambas2 database manager I can expand the height of a row in the data view, I can't seem to do this in the gambas3 version. Is this intention

Re: [Gambas-user] Surrogate keys and database insertions

2011-09-26 Thread Bruce Bruen
On Mon, 2011-09-26 at 14:03 +0200, Benoît Minisini wrote: > This feature is missing, mainly because there is no standard way to do that > in > SQL, and I don't know if there is a function for that in all SQL DBMS. I was afraid of that. I'll do some research. I know it is possible in postgresql

Re: [Gambas-user] ran in problems with gambas2 and rev 4131

2011-09-26 Thread Bruce Bruen
On Mon, 2011-09-26 at 12:21 +0200, Charlie Reinl wrote: > Salut Benoît, > > updated my gambas2 by svn yesterday, and ran in that problem. > see attachments, back to rev 4130 all is OK. > > > -- > All the data continuous

Re: [Gambas-user] code normaliser

2011-09-25 Thread Bruce Bruen
On Sun, 2011-09-25 at 23:58 +0200, tobias wrote: > hi, > > i just finished a little project (finished means working, not secure. it > actually is a bit quick'n'dirty because i'm tired) called "code > normaliser" that takes a norms file and a source file/directory and > applies these norms to t

Re: [Gambas-user] What replaces Desktop.Scale in gambas3?

2011-09-25 Thread Bruce Bruen
mns.Count - 1 gvwList.Columns[idc].Width = aMaxW[idc] + 7 Next End See the last bit. I had to bump the computed value by 7 (for both gtk and qt4) to stop the last letter being chopped. regards Bruce On Sun, 2011-09-25 at 18:53 +0200, Fabien Bodard

[Gambas-user] Surrogate keys and database insertions

2011-09-24 Thread Bruce Bruen
(This drove me bananas in gambas2.) Is there now (in gambas 3) a way to get the key of the row just inserted into the database when the key is a surrogate key e.g. a SQLite "serial"? For example, in the following, the "items" table has a surrogate key called "id" which is a simple serial. Private

[Gambas-user] What replaces Desktop.Scale in gambas3?

2011-09-24 Thread Bruce Bruen
I'm trying to set a gridview column width to the maximum length of the strings in the column. I can find the maximum width in terms of the length of the string easily but what do I multiply that by to get the desired cloumn width? I have searched through the wiki but I just cant seem to find what

Re: [Gambas-user] Help with RegExp

2011-09-23 Thread Bruce Bruen
On Sat, 2011-09-24 at 01:16 +0200, Benoît Minisini wrote: > Otherwise there is a Gambas syntax analyzer in the gb.eval component if you > need... > What!!!??? You mean all this code I've written to reverse engineer a class into an XMI file already . :-) Oh, wait. The eval stuff only w

Re: [Gambas-user] Help with RegExp

2011-09-23 Thread Bruce Bruen
On Sat, 2011-09-24 at 00:14 +0200, tobias wrote: > hi, > > i have a problem with regular expressions: i'm not very good in using them. > i want to determine the comment string in a gambas comment with gb.pcre > and been sitting down for 3 hours now, totally frustrated... > i thought, i have to s

Re: [Gambas-user] Gambas3 @ Mint LMDE

2011-09-21 Thread Bruce Bruen
On Wed, 2011-09-21 at 12:02 +0200, Benoît Minisini wrote: > > the errors i get are > > > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > > make[4]: *** [gb.sdl.la] Error 1 > > make[4]: Leaving

Re: [Gambas-user] Gambas3 @ Mint LMDE

2011-09-21 Thread Bruce Bruen
-gnu/libfreetype.so.6 -> libfreetype.so.6.6.2 > > -rw-r--r-- 1 root root 628440 Jun 23 > 00:58 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2 > > > > On Wed, 2011-09-21 at 18:09 +0930, Bruce Bruen wrote: > > On Wed, 2011-09-21 at 11:21 +0300, Demosthenes Koptsi

Re: [Gambas-user] Gambas3 @ Mint LMDE

2011-09-21 Thread Bruce Bruen
On Wed, 2011-09-21 at 11:21 +0300, Demosthenes Koptsis wrote: > i did a > locate libfreetype > > and yes i think i ahve > > /usr/lib/vlc/plugins/misc/libfreetype_plugin.so > /usr/lib/x86_64-linux-gnu/libfreetype.a > /usr/lib/x86_64-linux-gnu/libfreetype.la > /usr/lib/x86_64-linux-gnu/libfreetyp

Re: [Gambas-user] Gambas3 @ Mint LMDE

2011-09-20 Thread Bruce Bruen
On Wed, 2011-09-21 at 08:42 +0300, Demosthenes Koptsis wrote: > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > make[4]: *** [gb.sdl.la] Error 1 > make[4]: Leaving directory > `/home/user/Downloa

Re: [Gambas-user] Gambas3 @ Mint LMDE

2011-09-20 Thread Bruce Bruen
On Wed, 2011-09-21 at 08:42 +0300, Demosthenes Koptsis wrote: > > /bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory > libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive > make[4]: *** [gb.sdl.la] Error 1 > make[4]: Leaving directory > `/home/user/Downloa

Re: [Gambas-user] Gambas3 control components _Arrangement "incorrectly overridden"

2011-09-20 Thread Bruce Bruen
On Tue, 2011-09-20 at 21:13 +0200, Benoît Minisini wrote: > > Another migration problem. I'm not having a good day. :-( > > > > I don't know if this is a bug or whether I'm just not looking at the > > code and/or the help correctly. > > > > I am migrating a bunch of specialised controls from ga

[Gambas-user] Gambas3 control components _Arrangement "incorrectly overridden"

2011-09-19 Thread Bruce Bruen
Another migration problem. I'm not having a good day. :-( I don't know if this is a bug or whether I'm just not looking at the code and/or the help correctly. I am migrating a bunch of specialised controls from gambas2 to gambas3. Much of it is working wonderfully but this one has got me beat.

  1   2   >