Re: [Gambas-user] type mismatch: wanted integer, got string instead

2009-08-25 Thread Fabien Bodard
2009/8/25 MSulchan Darmawan bleke...@gmail.com: Pada Mon, 24 Aug 2009 23:00:07 -0600 Dimitris Anogiatis dos...@gmail.com 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

Re: [Gambas-user] type mismatch: wanted integer, got string instead

2009-08-25 Thread Rolf-Werner Eilert
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 of

Re: [Gambas-user] type mismatch: wanted integer, got string instead

2009-08-25 Thread Dimitris Anogiatis
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

Re: [Gambas-user] type mismatch: wanted integer, got string instead

2009-08-25 Thread Dimitris Anogiatis
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 dos...@gmail.comwrote: MSulchan, in

Re: [Gambas-user] How to set a slider value?

2009-08-25 Thread Aleksandrs Livshics
On Monday 24 August 2009 17:33:39 Fabien Bodard wrote: 2009/8/24 Aleksandrs Livshics alek...@mpe.lv: 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

Re: [Gambas-user] type mismatch: wanted integer, got string instead

2009-08-25 Thread MSulchan Darmawan
Pada Tue, 25 Aug 2009 00:50:52 -0600 Dimitris Anogiatis dos...@gmail.com menulis: I hope this helps a bit more Great... this is more reasonable... I'll try it first... Thank you guys... -- Cheers, [-Sulchan-] Terbang dengan claws-mail 3.7.2 Mendarat di hardy heron 8.04.3 LTS signature.asc

Re: [Gambas-user] How to set a slider value?

2009-08-25 Thread Fabien Bodard
you don't understand the stop event function.. stop event stop the event propagation...(so the widjet stop to act) but not the current sub execution ! if you want to stop the sub too you need to add a 'return' keyword ! if ok then stop event return endif nevertheless send me a short

Re: [Gambas-user] How to set a slider value?

2009-08-25 Thread Fabien Bodard
nevertheless it seem to be a bad idea... can't you prefer a default button ? to set the value ?... just put it at the right of the widget 2009/8/25 Fabien Bodard gambas...@gmail.com: you don't understand the stop event function.. stop event stop the event propagation...(so the widjet stop

Re: [Gambas-user] webcam weirdness

2009-08-25 Thread Ron_1st
On Tuesday 25 August 2009, 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

Re: [Gambas-user] How to set a slider value?

2009-08-25 Thread Aleksandrs Livshics
On Tuesday 25 August 2009 12:25:08 Fabien Bodard wrote: you don't understand the stop event function.. stop event stop the event propagation...(so the widjet stop to act) but not the current sub execution ! if you want to stop the sub too you need to add a 'return' keyword ! if ok then

Re: [Gambas-user] How to set a slider value?

2009-08-25 Thread Aleksandrs Livshics
I have just found that it works (without stop event) but only if i double click inside the slider, but NOT on it's moving part ! Aleks On Tuesday 25 August 2009 12:33:19 Fabien Bodard wrote: nevertheless it seem to be a bad idea... can't you prefer a default button ? to set the value ?... just

Re: [Gambas-user] How to set a slider value?

2009-08-25 Thread Stefano Palmeri
Il martedì 25 agosto 2009 11:43:05 Aleksandrs Livshics ha scritto: On Tuesday 25 August 2009 12:25:08 Fabien Bodard wrote: you don't understand the stop event function.. stop event stop the event propagation...(so the widjet stop to act) but not the current sub execution ! if you want

Re: [Gambas-user] webcam weirdness

2009-08-25 Thread Benoît Minisini
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

Re: [Gambas-user] How to set a slider value?

2009-08-25 Thread Benoît Minisini
you don't understand the stop event function.. stop event stop the event propagation...(so the widjet stop to act) but not the current sub execution ! if you want to stop the sub too you need to add a 'return' keyword ! if ok then stop event return endif nevertheless send me a

Re: [Gambas-user] How to set a slider value?

2009-08-25 Thread Fabien Bodard
Le 25 août 2009 14:07, Benoît Minisinigam...@users.sourceforge.net a écrit : you don't understand the stop event function.. stop event stop the event propagation...(so the widjet stop to act) but not the current sub execution ! if you want to stop the sub too you need to add a 'return'

[Gambas-user] howto set starting path for dirview?

2009-08-25 Thread Ivan Williams
Greetings I am wring a small app that utilizes dirview. As long as the directories are contained within the user home directory the app can be utilized properly but if the user mounts a external drive the app cannot changedir to the external drive because it is mounted under the /media

[Gambas-user] solved dirview set path problem - sorry for bothering you

2009-08-25 Thread Ivan Williams
Greetings Solved my own problem with the default path problem - I was not in the form load area when I set the path - sorry for bothering you fine folks. Ivan I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough Without ever having felt sorry for

Re: [Gambas-user] Need help / call for volunteers

2009-08-25 Thread Joshua Higgins
Forgot to attach :-) -- joshua higgins -- report-ng Description: Binary data -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and

Re: [Gambas-user] Need help / call for volunteers

2009-08-25 Thread Joshua Higgins
Included fix for FreeBSD ram detection. -- joshua higgins -- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus

Re: [Gambas-user] Need help / call for volunteers

2009-08-25 Thread richard terry
On Wednesday 26 August 2009 04:24:25 Joshua Higgins wrote: Forgot to attach :-) -- Output from my ARCH linux box. [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.30-ARCH DistributionVendor=generic-undetected Arch Linux \r (\n) (\l) [System]

Re: [Gambas-user] webcam weirdness

2009-08-25 Thread Dr. Diesel
2009/8/25 Benoît Minisini gam...@users.sourceforge.net 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.

Re: [Gambas-user] webcam weirdness

2009-08-25 Thread Benoît Minisini
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 running

Re: [Gambas-user] type mismatch: wanted integer, got string instead (solved)

2009-08-25 Thread MSulchan Darmawan
Pada Tue, 25 Aug 2009 04:29:32 -0600 Dimitris Anogiatis dos...@gmail.com menulis: give it a try MSulchan and tell me if it works for you Thank you Dimitris, after a little try and error, I change the code into like this : IF IsNull(Val(sRain)) = FALSE THEN IF InStr(LCase(sRain),

Re: [Gambas-user] webcam weirdness

2009-08-25 Thread Steven James Drinnan
For which version 2 or 3? Steven On Tue, 2009-08-25 at 20:30 -0400, Dr. Diesel wrote: 2009/8/25 Benoît Minisini gam...@users.sourceforge.net Not sure what to include with this, please ask for additional info. Attached is a pict of some webcam weirdness with no error messages

Re: [Gambas-user] type mismatch: wanted integer, got string instead (solved)

2009-08-25 Thread Dimitris Anogiatis
You're welcome MSulchan :) I'm glad you solved that problem and I'm glad I helped :) Keep up the good work :) Regards Dimitris On Tue, Aug 25, 2009 at 8:01 PM, MSulchan Darmawan bleke...@gmail.comwrote: Pada Tue, 25 Aug 2009 04:29:32 -0600 Dimitris Anogiatis dos...@gmail.com menulis: