Re: [Gambas-user] Primary Key missing?

2010-11-25 Thread Benoît Minisini
> hello, > > prooving my sqlite code, i have several buttons on a form, whose subs > should do the same work in different ways (one just using Exec() method, > the other does all work with the gambas objects (editing fields etc.)). > > after this code: > > Button2_Click: > >DIM hResult AS R

Re: [Gambas-user] Primary Key missing?

2010-11-25 Thread Jorge Carrión
Try with sqliteman (Ubuntu repositories). It's a graphic environment good enough for that operations... For edit a record in terminal you have to use alter table command... Good Luck. 2010/11/25 tobias > hello, > > prooving my sqlite code, i have several buttons on a form, whose subs > should

Re: [Gambas-user] DateBox/DateChoose - numbers on calendar all the same

2010-11-25 Thread richard terry
On Friday 26 November 2010 02:45:23 Ricardo Díaz Martín wrote: seems fixed in the latest update richard > I got the same problem with calendar control. Now I'm updating gambas3 from > svn. I'm going to try new version if the bug is fixed. > > Regards, > Ricardo Díaz > > > > 2010/11/23 richard

Re: [Gambas-user] Fresh machine, fresh gambas - won't run

2010-11-25 Thread Benoît Minisini
> Hi LIst > > Any ideas on this. > > Downloade fresh svn on fresh machine, compiled ok > > When try and run gambas get message: > > no project file in /usr/local/bin/gambas3 > > and nothing happens > > Any help appreciated > > richard > Need more info! Full output of the compilation and in

[Gambas-user] Fresh machine, fresh gambas - won't run

2010-11-25 Thread richard terry
Hi LIst Any ideas on this. Downloade fresh svn on fresh machine, compiled ok When try and run gambas get message: no project file in /usr/local/bin/gambas3 and nothing happens Any help appreciated richard -- Increas

[Gambas-user] Primary Key missing?

2010-11-25 Thread tobias
hello, prooving my sqlite code, i have several buttons on a form, whose subs should do the same work in different ways (one just using Exec() method, the other does all work with the gambas objects (editing fields etc.)). after this code: Button2_Click: DIM hResult AS Result hConnectio

Re: [Gambas-user] Result object, again

2010-11-25 Thread tobias
Benoît Minisini schrieb: >> good evening all, >> i have another question about my eternal punishment: the result object :-) >> >> caveat answered to a former question about results in general: >> >If you got into the habit of reading all the >> >records you've selected into memory (or even if the

Re: [Gambas-user] Rnd Wiki

2010-11-25 Thread Demosthenes Koptsis
I wrote something that i think describes better the Rnd(). If you like it you can use or modify it for the wiki. Float = Rnd ( [ Min [ , Max ] ) Compute a pseudo-random floating point number between a lower Min limit value

Re: [Gambas-user] Rnd Wiki

2010-11-25 Thread Demosthenes Koptsis
hm... i think i have got it. The function accepts two parameters Rnd ( [ Min [ , Max ] ) the Min param and the Max param. if we pass only one param it takes as first argument, so it is the Min argument BUT BUT BUT... it uses it as Max value, as upper limit, because the lower limit by default i

Re: [Gambas-user] DateBox/DateChoose - numbers on calendar all the same

2010-11-25 Thread Ricardo Díaz Martín
Works fine in 3321. Regards, Ricardo Díaz 2010/11/25 Ricardo Díaz Martín > I got the same problem with calendar control. Now I'm updating gambas3 from > svn. I'm going to try new version if the bug is fixed. > > Regards, > Ricardo Díaz > > > > 2010/11/23 richard terry > > Hi List >> >> ?Just m

Re: [Gambas-user] DateBox/DateChoose - numbers on calendar all the same

2010-11-25 Thread Ricardo Díaz Martín
I got the same problem with calendar control. Now I'm updating gambas3 from svn. I'm going to try new version if the bug is fixed. Regards, Ricardo Díaz 2010/11/23 richard terry > Hi List > > ?Just my machine, but for some reason in my last update there all the days > of > the mont h are '31'

Re: [Gambas-user] Rnd Wiki

2010-11-25 Thread Demosthenes Koptsis
On Thu, 2010-11-25 at 14:26 +0100, Fabien Bodard wrote: > if i wrote that like a function ... > > rnd(min as float, max as float) > > the variable named min don't change his name > > i think benoit should take others name than min/max i am not confused about min, max, i understand that these ar

Re: [Gambas-user] Rnd Wiki

2010-11-25 Thread Fabien Bodard
if i wrote that like a function ... rnd(min as float, max as float) the variable named min don't change his name i think benoit should take others name than min/max val1/val2 ? Float = Rnd ( [ Val1 [ , Val2 ] ) * If no parameters is specified, returns a pseudo-random number in the interva

[Gambas-user] Question about read/write file performance

2010-11-25 Thread Phạm Quang Dương
Hi, Maybe this is a basic question. I have 2 scripts like this: Code 1: Dim buff as *Byte* sizeOfFile = Stat("aBigFile").Size hFile = Open "aBigFile" for read For i = 1 to sizeOfFile Read hFile, buff Next Close hFile Code 2: Dim buff as *Byte* Dim bigBuff as *Float* sizeOfFile = Stat("aBigFile

Re: [Gambas-user] Rnd Wiki

2010-11-25 Thread Demosthenes Koptsis
Yes the first argument is the Min and the second is the Max. But if i pass one argument PRINT Rnd(2) this is equal PRINT Rnd(0, 2) so one argument is the Max parameter and the range is [0, 2] where 2=Max in example that is said ' Between 0 and 2 PRINT Rnd(2) so * If only one parameter is

Re: [Gambas-user] Rnd Wiki

2010-11-25 Thread Benoît Minisini
> For one parameter you still have > > * If only one parameter is specified, returns a pseudo-random in the > interval [ 0 , Min [. > > i think is > > * If only one parameter is specified, returns a pseudo-random in the > interval [ 0 , Max [. > > and something else what does it mean > 0, Max [

Re: [Gambas-user] Rnd Wiki

2010-11-25 Thread Demosthenes Koptsis
For one parameter you still have * If only one parameter is specified, returns a pseudo-random in the interval [ 0 , Min [. i think is * If only one parameter is specified, returns a pseudo-random in the interval [ 0 , Max [. and something else what does it mean 0, Max [. ? isn't it [0, Max]

Re: [Gambas-user] Rnd Wiki

2010-11-25 Thread Benoît Minisini
> In wiki the page http://gambasdoc.org/help/lang/rnd?show > > i think in these parts is hard read. > > * If no parameters is specified, returns a pseudo-random number in the > interval [ 0 , 1 [. > * If the one parameter is specified, returns a pseudo-random in the > interval [ 0 , Min [

[Gambas-user] Rnd Wiki

2010-11-25 Thread Demosthenes Koptsis
In wiki the page http://gambasdoc.org/help/lang/rnd?show i think in these parts is hard read. * If no parameters is specified, returns a pseudo-random number in the interval [ 0 , 1 [. * If the one parameter is specified, returns a pseudo-random in the interval [ 0 , Min [. * If the two

Re: [Gambas-user] Displaying Mouse.Wait while running a SHELL Command

2010-11-25 Thread Benoît Minisini
> I use > > INC Application.Busy > > and > > DEC Application.Busy > > in my applications on Debian Lenny (with LXDE) > and Gambas 2.21 and it works just fine. > > Regards, > Dimitris > > On Wed, Nov 24, 2010 at 9:23 PM, vikram wrote: > > > Setting FMain.Mouse and calling WAIT is useless. App

Re: [Gambas-user] Result object, again

2010-11-25 Thread Benoît Minisini
> 2010/11/25 Benoît Minisini : > >> good evening all, > >> i have another question about my eternal punishment: the result object > >> :-) > >> > >> caveat answered to a former question about results in general: > >> >If you got into the habit of reading all the > >> >records you've selected int

Re: [Gambas-user] isNull()

2010-11-25 Thread Benoît Minisini
> On Thu, 25 Nov 2010 10:01:42 am Benoît Minisini wrote: > > > I use IsNull extensively, is that going to be removed? > > > > > > richard > > > > No. I use it extensively too. > > > > Here is the result of my thought: > > > > - You can know the datatype of a variant with the TypeOf() function.

Re: [Gambas-user] isNull()

2010-11-25 Thread Bruce Bruen
On Thu, 25 Nov 2010 10:01:42 am Benoît Minisini wrote: > > I use IsNull extensively, is that going to be removed? > > > > richard > > No. I use it extensively too. > > Here is the result of my thought: > > - You can know the datatype of a variant with the TypeOf() function. You > don't have to

Re: [Gambas-user] isNull()

2010-11-25 Thread Fabien Bodard
Le 25 novembre 2010 00:31, Benoît Minisini a écrit : >> I use IsNull extensively, is that going to be removed? >> >> richard >> > > No. I use it extensively too. > > Here is the result of my thought: > > - You can know the datatype of a variant with the TypeOf() function. You don't > have to use t