one small correction in this line
if sRain = "x" then iRain = 0.4 'or anything else you want to make it
it should be
if sRain = "x" then iRain = 40 'or anything else you want to make it
On Tue, Aug 25, 2009 at 12:50 AM, Dimitris Anogiatis wrote:
> MSulchan,
>
> in http://www.gambasdoc.org/help/
MSulchan,
in http://www.gambasdoc.org/help/cat/datatypes you will find a breakdown of
the available data types
supported by Gambas2 and in http://www.gambasdoc.org/help/cat/conv the
available data conversion
functions. In this section of Gambasdoc
http://www.gambasdoc.org/help/cat/type you will
Why don't you just convert the characters into numbers before converting
the values?
> Unfortunately, the possible values are more then that, it's just a
> sample.
> The values are amount of rainfall data, so it has numbers (0 to 400)
> also with floating number 0.5, 1.7, and so on.
> The field o
2009/8/25 MSulchan Darmawan :
> Pada Mon, 24 Aug 2009 23:00:07 -0600
> Dimitris Anogiatis menulis:
>
>> this way iRain would always have an integer and you wouldn't have to
>> worry about
>> the mismatch error... assuming "0", "1", "2", "x", "-" and NULL are
>> the only values
>> used in your data
Pada Mon, 24 Aug 2009 23:00:07 -0600
Dimitris Anogiatis menulis:
> this way iRain would always have an integer and you wouldn't have to
> worry about
> the mismatch error... assuming "0", "1", "2", "x", "-" and NULL are
> the only values
> used in your database.
Thanks Dimitris and JY,
Unfortun
MSulchan Darmawan a écrit :
> Dear sir,
>
> I have the following code :
>
> DIM sRain AS String
> DIM iRain AS Integer
> DIM iPos AS Integer
> DIM iYear AS String
> DIM iMonth AS String
>
> modMain.Connect
> hRes = modMain.$Con.Exec("SELECT * FROM table")
>
> FOR EACH hRes
>
>
Hey MSulchan,
if you're trying to convert either "x", "-", or NULL
to an integer you're correctly going to get a mismatch error
basically the mismatch error is a way of saying
"I can't convert "x" into an integer, I don't know what number to convert
"x" to"
what I would personally use instead of
Dear sir,
I have the following code :
DIM sRain AS String
DIM iRain AS Integer
DIM iPos AS Integer
DIM iYear AS String
DIM iMonth AS String
modMain.Connect
hRes = modMain.$Con.Exec("SELECT * FROM table")
FOR EACH hRes
iPos = hRes!id
iYear = hRes!yr
iMonth = hRes!mn
Steven James Drinnan a écrit :
> Try
>
> for 32bit systems
>
> LD_PRELOAD='/usr/lib/libv4l/v4l1compat.so' gambas2
>
YES Steven, that's working :)
JY
--
A woman was in love with fourteen soldiers. It was clearly platoonic.
Try
for 32bit systems
LD_PRELOAD='/usr/lib/libv4l/v4l1compat.so' gambas2
for 64bit systems
LD_PRELOAD='/usr/lib64/libv4l/v4l1compat.so' gambas2
You can do the same for any application that you make with gambas.
Steven Drinnan
On Tue, 2009-08-25 at 02:05 +0200, Jean-Yves F. Barbier wrote:
Ron_1st a écrit :
...
> The pwc driver returns a v4l2 installation.
> The gb.v4l component can't handle v4l2 complet/correct but only v4l1 ATM
normally no: ie: camstream uses the v4L1 compatibility mode that I compiled
into my kernel (but may be the program spcifically "ask" for that mode, which
On Tuesday 25 August 2009, Jean-Yves F. Barbier wrote:
> Dr. Diesel a écrit :
> > Not sure what to include with this, please ask for additional info.
> > Attached is a pict of some webcam weirdness with no error messages
> > generated. Doesn't appear to be a webcam issue as the image looks fine wi
Dr. Diesel a écrit :
> Not sure what to include with this, please ask for additional info.
> Attached is a pict of some webcam weirdness with no error messages
> generated. Doesn't appear to be a webcam issue as the image looks fine with
> Cheese Webcam Booth.
>
> This was taken with gambas v3 SV
Benoît Minisini a écrit :
>> Charlie Reinl a écrit :
>> ...
>>
At the moment, I choose the second solution, except that I don't know
exactly how to implement the independant versioning system. Must think
about it more...
Regards,
>>> Hey ? and Dr. House ? ;)
>> He's cheatin
Benoît Minisini a écrit :
...
>> Hey ? and Dr. House ? ;)
>>
>
> Inside Season 2 at the moment...
I really love season 5, especially the "koh-lantha episode" :)
(and original sound is far better than the fr one)
--
There are no answers, only cross-references.
-- Weiner
> Not sure what to include with this, please ask for additional info.
> Attached is a pict of some webcam weirdness with no error messages
> generated. Doesn't appear to be a webcam issue as the image looks fine
> with Cheese Webcam Booth.
>
> This was taken with gambas v3 SVN as of yesterday runn
> Am Montag, den 24.08.2009, 23:24 +0200 schrieb Benoît Minisini:
> > > 2009/8/24 Benoît Minisini
> > >
> > > > Hi,
> > > >
> > > > In Gambas 3 IDE, you can now modify the contents of local variables,
> > > > global variables, and any field in debugger watch windows. While
> > > > debugging of cou
> Charlie Reinl a écrit :
> ...
>
> >> At the moment, I choose the second solution, except that I don't know
> >> exactly how to implement the independant versioning system. Must think
> >> about it more...
> >>
> >> Regards,
> >
> > Hey ? and Dr. House ? ;)
>
> He's cheating Charlie: the day he ta
Charlie Reinl a écrit :
...
>> At the moment, I choose the second solution, except that I don't know
>> exactly
>> how to implement the independant versioning system. Must think about it
>> more...
>>
>> Regards,
>>
> Hey ? and Dr. House ? ;)
He's cheating Charlie: the day he talked about House
Am Montag, den 24.08.2009, 23:24 +0200 schrieb Benoît Minisini:
> > 2009/8/24 Benoît Minisini
> >
> > > Hi,
> > >
> > > In Gambas 3 IDE, you can now modify the contents of local variables,
> > > global variables, and any field in debugger watch windows. While
> > > debugging of course...
> > >
> >
> 2009/8/24 Benoît Minisini
>
> > Hi,
> >
> > In Gambas 3 IDE, you can now modify the contents of local variables,
> > global variables, and any field in debugger watch windows. While
> > debugging of course...
> >
> > This feature is fresh, so you may have crashes!
> >
> > Regards,
> >
> > --
> >
Joshua Higgins a écrit :
> Okay, so this version of the script with the additions by Fabien seems to be
> fairly stable.
>
> Also now includes system total ram.
>
> Now outputs to gambas_report.log instead of report2.log.
Works good with Debian sid:
===
[OperatingSystem]
Am Montag, den 24.08.2009, 22:09 +0100 schrieb Joshua Higgins:
> Okay, so this version of the script with the additions by Fabien seems to be
> fairly stable.
>
> Also now includes system total ram.
>
> Now outputs to gambas_report.log instead of report2.log.
looks OK.
[OperatingSystem]
Operati
2009/8/24 Benoît Minisini
> Hi,
>
> In Gambas 3 IDE, you can now modify the contents of local variables, global
> variables, and any field in debugger watch windows. While debugging of
> course...
>
> This feature is fresh, so you may have crashes!
>
> Regards,
>
> --
> Benoît
You sir, are the
Okay, so this version of the script with the additions by Fabien seems to be
fairly stable.
Also now includes system total ram.
Now outputs to gambas_report.log instead of report2.log.
--
joshua higgins
>>--
report-ng
Description: Binary data
--
Am Montag, den 24.08.2009, 22:04 +0200 schrieb Fabien Bodard:
> could you try with the file i send ?
>
> 2009/8/24 Charlie Reinl :
> > ---8<--
> >> Please test this if you can...
> >
> > here path not found
> >
> > e...@scenic:~$ which gbx3
> > /usr/local/bin/g
2009/8/24 David Villalobos Cambronero :
> Well, I think you're closer than me. So you can finish the job.
i've just corrected two line you know ... i'm not really good at the sh game :)
finish it please as i've not more time than you
regards
>
> Regards
>
>
> --
> David
>
>
>
> - Original
Well, I think you're closer than me. So you can finish the job.
Regards
--
David
- Original Message
From: Joshua Higgins
To: mailing list for gambas users
Sent: Monday, August 24, 2009 1:48:17 PM
Subject: Re: [Gambas-user] Need help / call for volunteers
>
> it work well here too
could you try with the file i send ?
2009/8/24 Charlie Reinl :
> ---8<--
>> Please test this if you can...
>
> here path not found
>
> e...@scenic:~$ which gbx3
> /usr/local/bin/gbx3
>
> [OperatingSystem]
>
> OperatingSystem=Linux
> KernelRelease=2.6.24-24-gene
---8<--
> Please test this if you can...
here path not found
e...@scenic:~$ which gbx3
/usr/local/bin/gbx3
[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.24-24-generic
CPUArchitecture=i686
DistributionVendor=ubuntu
DistributionRelease="Ubuntu 8.04
without the blank line
2009/8/24 Joshua Higgins :
>>
>> it work well here too... just ... you have a blank line after
>> "[OperatingSystem]"
>>
>
> At the moment, I'm unsure whether to keep updating and attaching this script
> until we know the status of David's script and how far he is along...
>
This is a little modification to get the true gambas path ... in every
distrib :)
GAMBASPATH=$(which gbx 2>/dev/null)
GAMBAS2PATH=$(which gbx2 2>/dev/null)
GAMBAS3PATH=$(which gbx3 2>/dev/null)
2009/8/24 Fabien Bodard :
> fab...@ubuntu:~$ sh report-ng
> System Report for Gambas
> Found distro
>
> it work well here too... just ... you have a blank line after
> "[OperatingSystem]"
>
At the moment, I'm unsure whether to keep updating and attaching this script
until we know the status of David's script and how far he is along...
However the blank line is by accident... nothing should be t
fab...@ubuntu:~$ sh report-ng
System Report for Gambas
Found distro information at /etc/lsb-release!
Detected distro: ubuntu
Saved to report2.log
Done.
fab...@ubuntu:~$ cat report
report2.log report-ng
fab...@ubuntu:~$ cat report2.log
[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.28-1
Joshua Higgins a écrit :
...
> Please test this if you can...
Seems to work ok under Debian sid:
==
[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.25.4
CPUArchitecture=i686
DistributionVendor=debian
DistributionRelease=squeeze/sid
[Gambas]
Gambas1=Not
On Mon, Aug 24, 2009 at 3:17 PM, M0E Lnx wrote:
> that works here
> =
> vluser:$ cat report2.log
> [OperatingSystem]
>
> OperatingSystem=Linux
> KernelRelease=2.6.27.29
> CPUArchitecture=i686
> DistributionVendor=vector
> DistributionRelease=Vector Linux 6.0 SOHO Alpha 1.16
>
> [G
that works here
=
vluser:$ cat report2.log
[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.27.29
CPUArchitecture=i686
DistributionVendor=vector
DistributionRelease=Vector Linux 6.0 SOHO Alpha 1.16
[Gambas]
Gambas1=Not Installed
Gambas2=2.15.2
Gambas2Path=/usr/bin/gbx2
Ga
OK, So I've thought about this It seems that its not feasible to expect
only one /etc/*-release or any file describing the distribution. As M0E Lnx
said, most derivatives will have more than one. Detecting using the * symbol
is also too unreliable, and cannot handle multiple matches easily.
I'
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gentoo:
[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.27-gentoo-r8
CPUArchitecture=i686
Distribution=Gentoo Base System release 1.12.11.1
[Gambas]
Gambas1=gbx-1.0.19
Gambas2=2.13.0
Gambas3=
M.
Joshua Higgins escribió:
> I've adapted Da
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gentoo:
[OperativeSystem]
OperativeSystem="Linux"
KernelRelease="2.6.27-gentoo-r8"
Distribution=""
[Hardwate]
[Gambas]
Gambas="gbx-1.0.19"
Gambas2="2.13.0"
Gambas3=""
Nice work! M.
David Villalobos Cambronero escribió:
> Hi, this is my first try!
Change distro is not the answer Detect it is the answer.
I know for afact other distros that are derived from something else have 2 also.
maybe you should take a look at this detection script from os-prober
http://nopaste.com/p/ayiMYbr8cb
--
M0E Lnx a écrit :
> I think most slackware derivates have 2 also..
> I know ubuntu has a ubuntu and a debian identifier as well
>
> this is not unique to vectorlinux
PLS answer against the good node, otherwise this heavy thread will fast
look like crap.
--
-
Just to let everyone know, I'm working on reliably detecting the distro...
2009/8/24 M0E Lnx
> I think most slackware derivates have 2 also..
> I know ubuntu has a ubuntu and a debian identifier as well
>
> this is not unique to vectorlinux
>
>
> -
M0E Lnx a écrit :
> As I said before, vector has both, /etc/vector-version and
> /etc/slackware-version
bad vektor, change vektor.
it seems it is the only distro that has a doublon as /etc/*-version ...
make sure it is native and don't come from a change/upgrade
--
---
I think most slackware derivates have 2 also..
I know ubuntu has a ubuntu and a debian identifier as well
this is not unique to vectorlinux
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
t
As I said before, vector has both, /etc/vector-version and
/etc/slackware-version
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployme
David Villalobos Cambronero a écrit :
> Thanks Joshua, I'll add your code ASAP, just let me finish some small changes.
>
> Can we try this, specially on vector Linux? Please.
>
> I now adding ./reconf-all, etc are pending, just be paitient.
PB under Debian:
sed: impossible de l
The same for any other distro?
Regards
--
David
- Original Message
From: M0E Lnx
To: mailing list for gambas users
Sent: Monday, August 24, 2009 11:50:53 AM
Subject: Re: [Gambas-user] Need help / call for volunteers
Still not good on Vector
==
vluser:$ cat report.log
Joshua Higgins a écrit :
> M0E Lnx, can you try this?
>
> 2009/8/24 M0E Lnx
>
>> and the overall output is not good...
>>
>> your quotes are throwin the whole thing off I think
...
V2 is also ok for Debian
--
--
Let
M0E Lnx: I think that there are two /etc/*-version files for Vector, and my
script only expects there to be 1.
2009/8/24 M0E Lnx
> Still not good on Vector
>
> ==
> vluser:$ cat report.log
> [OperatingSystem]
> OperatingSystem="Linux"
> KernelRelease="2.6.27.29"
>
> [Distribution]
>
Benoît Minisini a écrit :
...
> /usr/bin/gbx* are symbolic links that points at where Gambas is installed, so
> it would be cool to use it to get the Gambas installation path.
ls -Al /usr/bin/gbx*
--
--
Let Crystal R
Salut,
about, sysinfo.sh
the infos about distros, worked at the time I'v used them, today only
for Ubuntu I can confirm that.
the gambas2/3 Revision is not puled out from svn, so it my be not the
one who is finally/successfully installed on the box.
It would be useful to know from Benoit, whi
Still not good on Vector
==
vluser:$ cat report.log
[OperatingSystem]
OperatingSystem="Linux"
KernelRelease="2.6.27.29"
[Distribution]
ID=""
RELEASE=""
CODENAME=""
DESCRIPTION=
[Hardware]
Architecture="2.6.27.29"
[Gambas]
Gambas=""
Gambas2="2.15.2"
Gambas3=""
==
Ok, I'll check that.
Regards
--
David
- Original Message
From: Benoît Minisini
To: mailing list for gambas users
Sent: Monday, August 24, 2009 11:43:20 AM
Subject: Re: [Gambas-user] Need help / call for volunteers
> and the overall output is not good...
>
> your quotes are throwi
On Mon, Aug 24, 2009 at 1:44 PM, Joshua Higgins
wrote:
> M0E Lnx, can you try this?
>
> 2009/8/24 M0E Lnx
>
> > and the overall output is not good...
> >
> > your quotes are throwin the whole thing off I think
> >
> > ==
> > #!/bin/bash
> >
> > # System Report
> > # GPL'd
> > # Based
Hmmm I run it from Desktop, did I do something wrong?
@Ubuntu 9.04 64bit
[: 35: -a: unexpected operator
[: 35: -a: unexpected operator
[: 35: -a: unexpected operator
[: 35: -a: unexpected operator
report2: 39: gbx: not found (I haven't install Gambas1)
Report2.log
[OperatingSystem]
Oper
Joshua Higgins a écrit :
> I've adapted David's original script, adding more distro detection and cpu
> architecture identification.
Debian sid
==
[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.25.4
CPUArchitecture=i686
Distribution=squeeze/sid
[Gambas]
Gambas1=
Gambas2=2.15.
M0E Lnx, can you try this?
2009/8/24 M0E Lnx
> and the overall output is not good...
>
> your quotes are throwin the whole thing off I think
>
> ==
> #!/bin/bash
>
> # System Report
> # GPL'd
> # Based on David Villalobos Cambronero's original report script
>
> # Collect the data for
> and the overall output is not good...
>
> your quotes are throwin the whole thing off I think
>
> ==
> #!/bin/bash
>
> # System Report
> # GPL'd
> # Based on David Villalobos Cambronero's original report script
>
> # Collect the data for OS
>
> OutputFile='report2.log';
>
>
> OS="`una
Can you post the contents of /etc/slackware-version??
--
joshua higgins
>>--
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and dep
Thanks Joshua, I'll add your code ASAP, just let me finish some small changes.
Can we try this, specially on vector Linux? Please.
I now adding ./reconf-all, etc are pending, just be paitient.
Regards
--
David
- Original Message
From: Joshua Higgins
To: mailing list for gambas us
and the overall output is not good...
your quotes are throwin the whole thing off I think
==
#!/bin/bash
# System Report
# GPL'd
# Based on David Villalobos Cambronero's original report script
# Collect the data for OS
OutputFile='report2.log';
OS="`uname`"
KERNEL="`uname -r`"
AR
I get an error says
report2: line 23: [: /etc/slackware-version: binary operator expected
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and
I've adapted David's original script, adding more distro detection and cpu
architecture identification.
Attached, writes log to report2.log
--
joshua higgins
>>--
report2
Description: Binary data
--
Let Crysta
David Villalobos Cambronero a écrit :
> Hi, this is my first try!! any comment
About Debian: there's also a /etc/debian_version
JY
--
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial
I see where it detected my gambas version
But there is no OS information reported
-
root:$ cat report.log
[OperativeSystem]
OperativeSystem="Linux"
KernelRelease="2.6.27.29"
Distribution=""
[Hardwate]
[Gambas]
Gambas=""
Gambas2="2.15.2"
Gambas3=""
---
M0E Lnx a écrit :
> Ohh, I guess it needs gambas3
>
> I'm still using gambas2 here. Wanted to try it on VectorLinux
take a look @ the script Moe, it covers v.1, v.2 & v.3
--
I marvel at the strength of human weakness.
--
Ohh, I guess it needs gambas3
I'm still using gambas2 here. Wanted to try it on VectorLinux
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration a
David Villalobos Cambronero a écrit :
> Hi, this is my first try!! any comment
...
Debian SID
===
[OperativeSystem]
OperativeSystem="Linux"
KernelRelease="2.6.25.4"
Distribution="Debian GNU/Linux squeeze/sid \n \l" ==>>> head -n1 /etc/issue |
cut -d '\' -f 1
And Suse 11.0 :
[OperativeSystem]
OperativeSystem="Linux"
KernelRelease="2.6.25.20-0.4-pae"
Distribution=""
[Hardwate]
[Gambas]
Gambas=""
Gambas2="2.8.1"
Gambas3=""
Steven
Le lundi 24 août 2009 à 12:48 -0400, Dr. Diesel a écrit :
> On Mon, Aug 24, 2009 at 12:35 PM, David Villalobos Cambron
> Hi, this is my first try!! any comment
>
> Regards
>
>
> --
> David
>
>
You must fix the english terms (Operat*ing* system, Hardw*are*, etc.)
You must handle distributions that do not use /etc/issue (ex: vector linux,
see the prevous mails in this thread).
Regards,
--
Benoît
-
On Mon, Aug 24, 2009 at 12:35 PM, David Villalobos Cambronero <
david_villalobo...@yahoo.com> wrote:
> Hi, this is my first try!! any comment
>
> Regards
>
>
> --
> David
Looks good on the Fedora 10 side.
[gar...@localhost Download]$ ./report
./report: line 35: gbx: command not found
./report:
Hi, this is my first try!! any comment
Regards
--
David
- Original Message
From: David Villalobos Cambronero
To: mailing list for gambas users
Sent: Monday, August 24, 2009 9:39:19 AM
Subject: Re: [Gambas-user] Need help / call for volunteers
Ok, I'll take it.
Regards
--
David
Ok, I'll take it.
Regards
--
David
- Original Message
From: Benoît Minisini
To: mailing list for gambas users
Sent: Monday, August 24, 2009 9:29:50 AM
Subject: Re: [Gambas-user] Need help / call for volunteers
> Hi, at the and, any volunteers?
>
> Regards
>
>
> --
> David
>
Cha
> Hi, at the and, any volunteers?
>
> Regards
>
>
> --
> David
>
Charlie's script seems to be a good start.
Any volunteer to take it, work on it and send it to me so that I put it inside
the source tree?
It would be cool if this script actually outputs a file with that format:
[x]
Field1=
I think I'm too new to Linux to be useful... but I'm very willing to
do testing, if that helps.
Jussi
On Mon, Aug 24, 2009 at 18:02, David Villalobos
Cambronero wrote:
> Hi, at the and, any volunteers?
>
> Regards
>
>
> --
> David
>
>
>
> - Original Message
> From: M0E Lnx
> To: ma
Hi, at the and, any volunteers?
Regards
--
David
- Original Message
From: M0E Lnx
To: mailing list for gambas users
Sent: Tuesday, August 18, 2009 9:06:41 PM
Subject: Re: [Gambas-user] Need help / call for volunteers
For vectorlinux, you want the result of
# cat /etc/vector-vers
2009/8/24 Aleksandrs Livshics :
> Dear Gambas users,
> I am new to Gambas and my question may be silly,
> however I cannot find how to set a slider value in the
> code. (Not the initial value, this is easy)
> I want to specify some event (like double click on a slider)
> to force it to jump to a pr
Using the Slider's _menu event, for right click, instead of _DblClick works
as expected.
2009/8/24 Aleksandrs Livshics
> Dear Gambas users,
> I am new to Gambas and my question may be silly,
> however I cannot find how to set a slider value in the
> code. (Not the initial value, this is easy)
>
Hi,
In Gambas 3 IDE, you can now modify the contents of local variables, global
variables, and any field in debugger watch windows. While debugging of
course...
This feature is fresh, so you may have crashes!
Regards,
--
Benoît
---
Dear Gambas users,
I am new to Gambas and my question may be silly,
however I cannot find how to set a slider value in the
code. (Not the initial value, this is easy)
I want to specify some event (like double click on a slider)
to force it to jump to a predefined position/value.
If I write Dbl_cl
Benoît Minisini ha scritto:
>> Benoît Minisini a écrit :
>>
Fabien Bodard a écrit :
> it seem that the click event is send after the .value setting... but
> the MouseUp before.
>
> why did you not use the click event ?
>
I don't use it bec
82 matches
Mail list logo