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
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
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
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
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
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
> 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
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'
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
--
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
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
>
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
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
> 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
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
> 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
--
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
> 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:
>
> --
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
> 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.
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
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
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
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
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"
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
26 matches
Mail list logo