Re: [Gambas-user] Database not working to select records, but fields/tables identified (small correction)

2011-06-30 Thread Caveat
I swapped the order of the lines here: While res.Available res.MoveNext Print "Field1: " & res["Field1"] Wend to do the Print then MoveNext, as it would have caused me to 'lose' my first line of data. As I'm not getting any results at all, it doesn't actually make a difference right now...(a

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread Stephen Bungay
Typo in the Finally section... "Exists(sFolderSpec)" should read "Exist(sFolderSpec)". On 06/30/2011 11:58 PM, Stephen Bungay wrote: > Hi Fabien& Tobias; > > Thanks for taking the time to reply and putting those SUBs together. > Another way to do this is to simply execute a "mkdir -p

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread Stephen Bungay
Hi Fabien & Tobias; Thanks for taking the time to reply and putting those SUBs together. Another way to do this is to simply execute a "mkdir -p " using the command shell, but now that the problem exists I want to figure out why the recursive routine is not behaving as expected. Fabi

[Gambas-user] Database not working to select records, but fields/tables identified

2011-06-30 Thread Caveat
Hi, I'm trying to get database access to an ODBC datasource (have been trying for a few days now). I have the simplest Access (.mdb) database in the world: one table called people, with an id, a first name, a last name, and a phone number. There is no password on the database. I can see data in

Re: [Gambas-user] Probable bug with "_unknown" method when used for properties

2011-06-30 Thread Fabien Bodard
Le 30 juin 2011 16:10, Benoît Minisini a écrit : >> Benoit, >> >>    I'd be happy to provide you with the project, but I don't think it will >> do much good without the data files (which are not small).  Is it >> permissible to send a 4MB attachment thru the mailing list? >> >> gwalborn > > If you

Re: [Gambas-user] Probable bug with "_unknown" method when used for properties

2011-06-30 Thread Fabien Bodard
2011/6/30 Gary D Walborn : > Benoit, > >   I'd be happy to provide you with the project, but I don't think it will > do much good without the data files (which are not small).  Is it > permissible to send a 4MB attachment thru the mailing list? > > gwalborn hum no ! we're currently working on a sha

Re: [Gambas-user] Probable bug with "_unknown" method when used for properties

2011-06-30 Thread Benoît Minisini
> Benoit, > >I'd be happy to provide you with the project, but I don't think it will > do much good without the data files (which are not small). Is it > permissible to send a 4MB attachment thru the mailing list? > > gwalborn If you can, just create a small project that reproduce the probl

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread Fabien Bodard
private sub CreateDirTree(sDir as string) dim s as string dim stmpDir as string = "/" if sdir begins "/" then sdir = right(sdir,-1) For each s in split(sDir, "/") stmpDir &= s if exist(stmpdir) then continue mkdir stmpdir next catch Print "The directory " & stmpdir & "can'

[Gambas-user] Probable bug with "_unknown" method when used for properties

2011-06-30 Thread Gary D Walborn
Benoit, I'd be happy to provide you with the project, but I don't think it will do much good without the data files (which are not small). Is it permissible to send a 4MB attachment thru the mailing list? gwalborn -- Gary D. Walborn gwalb...@gmail.com --

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread Fabien Bodard
The FINALLY part is not mandatory. If there is a catch part in the function, the FINALLY part must precede it. http://gambasdoc.org/help/lang/finally The second call will be in the catch part not in finally. 2011/6/30 Stephen Bungay : > Hi folks! > > Gambas 2.99 > Fedora 14 > >   Using mkdir wit

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread tobias
hi, > Hi folks! > > Gambas 2.99 > Fedora 14 > >Using mkdir with "catch" and "finally" to create a recursive SUB to > build a directory structure. >The harness consists of FormMain with one big-friendly button on it, > pretty simple. Here is all of the code; > > ' Gambas class file >

Re: [Gambas-user] Please help me!

2011-06-30 Thread Fabien Bodard
Le 30 juin 2011 14:00, Benoît Minisini a écrit : >> Yes, Benoit, >> still even if change the synthax to: >> >> Public Sub PrintID() >> Dim i As Integer >> Dim tagok As String[] >> samsung = New Printer As "samsung" >> If samsung.Configure() Then Return >> samsung.Count = 1 >> samsung.Print >> >> E

[Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread Stephen Bungay
Hi folks! Gambas 2.99 Fedora 14 Using mkdir with "catch" and "finally" to create a recursive SUB to build a directory structure. The harness consists of FormMain with one big-friendly button on it, pretty simple. Here is all of the code; ' Gambas class file Public Sub _new() End Publi

Re: [Gambas-user] Please help me!

2011-06-30 Thread Benoît Minisini
> Yes, Benoit, > still even if change the synthax to: > > Public Sub PrintID() > Dim i As Integer > Dim tagok As String[] > samsung = New Printer As "samsung" > If samsung.Configure() Then Return > samsung.Count = 1 > samsung.Print > > End > > Public Sub samsung_Begin() > > End > > Public Sub

Re: [Gambas-user] Please help me!

2011-06-30 Thread M. Cs.
Yes, Benoit, still even if change the synthax to: Public Sub PrintID() Dim i As Integer Dim tagok As String[] samsung = New Printer As "samsung" If samsung.Configure() Then Return samsung.Count = 1 samsung.Print End Public Sub samsung_Begin() End Public Sub samsung_Draw() Dim i As Integer Dim

Re: [Gambas-user] Please help me!

2011-06-30 Thread Benoît Minisini
> Public samsung As Printer > > Public Sub PrintID() > samsung = New Printer --> samsung = New Printer As "samsung" In Gambas, if you don't specify an event name, you don't get events. Regards, -- Benoît Minisini --

[Gambas-user] Please help me!

2011-06-30 Thread M. Cs.
Public samsung As Printer Public Sub PrintID() samsung = New Printer If samsung.Configure() Then Return samsung.Count = 1 samsung.Print End Public Sub samsung_Begin() End Public Sub samsung_Draw() Dim i As Integer Dim tagok As String[] tagok = Split(datae[curr], ";")' gets data from a csv sheet

Re: [Gambas-user] Probable bug with "_unknown" method when used for properties

2011-06-30 Thread Benoît Minisini
> Benoit, > >Here is more detail on the problem... What I'm attempting to do is > read/write CISAM files from Gambas3. I am using the external VBISAM > library "libvbisam.so". I have a VBISAM class and a driver program. Here > is the VBISAM Class: > > --

[Gambas-user] Probable bug with "_unknown" method when used for properties

2011-06-30 Thread Gary D Walborn
Benoit, Here is more detail on the problem... What I'm attempting to do is read/write CISAM files from Gambas3. I am using the external VBISAM library "libvbisam.so". I have a VBISAM class and a driver program. Here is the VBISAM Class: -Begin VBI

Re: [Gambas-user] gb3: sorting an array-like structure

2011-06-30 Thread Benoît Minisini
> On 05/24/2011 02:37 PM, Matti wrote: > > Hi Kevin, > > > > this sorting problem is (at least to me) still unsolved. > > I gave up and used a lousy workaround, reading the 2-dim array into a > > 1-dim string array like "field1/field2", then sorting this and reading > > the fields backward again.

Re: [Gambas-user] Modules not recognized

2011-06-30 Thread M. Cs.
O.K. I've discovered that the modules should be added to the sources branch of the project! 2011/6/30, M. Cs. : > Hmmm, I see the examples have no modules. Does it mean that in G3 the > modules are not working yet? > > > 2011/6/30, M. Cs. : >> I've created a module called Paper, and a PUBLIC SUB D

Re: [Gambas-user] Modules not recognized

2011-06-30 Thread M. Cs.
Hmmm, I see the examples have no modules. Does it mean that in G3 the modules are not working yet? 2011/6/30, M. Cs. : > I've created a module called Paper, and a PUBLIC SUB DoPrint() on it, > and when I try to invoke the module with > > PUBLIC SUB myButton_Click() > Paper.DoPrint > END > > from

[Gambas-user] Modules not recognized

2011-06-30 Thread M. Cs.
I've created a module called Paper, and a PUBLIC SUB DoPrint() on it, and when I try to invoke the module with PUBLIC SUB myButton_Click() Paper.DoPrint END from FMain, I'm getting error "Unknown identifier Paper on FMain..." Men, is this still Gambas??? This was the standard way of handling th

Re: [Gambas-user] Seg fault, rev 3903, odbc db selecting... progress!

2011-06-30 Thread Caveat
Thank you so much Ricardo... now I don't get the signal 11 any more... no time today as IRL I have to go out on an emergency fix job for a client, but I'll get back to it later. I'll keep you posted but it looks good for starting to get somewhere at last...the connect worked! Thanks again and bes

Re: [Gambas-user] Seg fault, rev 3903, odbc db selecting... how to...

2011-06-30 Thread Ricardo Díaz Martín
Caveat, After my last post, I was trying to connect to mdb file using ODBC in Ubuntu 11.04. I can connet using isql with no problems (connection is ok and I can exec some basics "select"). You got a mistake in the code above. Try: PRIVATE myDB as NEW Connection ... WITH myDB .Type = "odbc"

Re: [Gambas-user] Dinamic lines

2011-06-30 Thread M. Cs.
Let me give a detailed explanation: In example Chart there are two forms. The first one is for collecting the chart data, so it isn't very interesting. I'll list you the second class, which is reponsible for the chart-drawing: Public total As Integer Public value As Float[] Public Sub btnClose_Cl