[Gambas-user] Eval Gambas2

2011-01-05 Thread Ron
Hi,

I'm trying to implement some sort of basic scripting with the use of 
Eval() inside my project.

It works for a lot of math, formatting and comparison commands and works 
quite nicely.

But I need the IF THEN to work too.

IIf ( Test AS Boolean , TrueExpression , FalseExpression , 
FalseExpression ) or
If ( Test AS Boolean , TrueExpression , FalseExpression )

Works,  but evaluates both TrueExpression and FalseExpression regardless 
of test (as explained in docs)

Is there a way to get
IF Test THEN TrueExpression
to work inside Eval() ?

Regards,
Ron_2nd.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Eval Gambas2

2011-01-05 Thread Benoît Minisini
 Hi,
 
 I'm trying to implement some sort of basic scripting with the use of
 Eval() inside my project.
 
 It works for a lot of math, formatting and comparison commands and works
 quite nicely.
 
 But I need the IF THEN to work too.
 
 IIf ( Test AS Boolean , TrueExpression , FalseExpression ,
 FalseExpression ) or
 If ( Test AS Boolean , TrueExpression , FalseExpression )
 
 Works,  but evaluates both TrueExpression and FalseExpression regardless
 of test (as explained in docs)
 
 Is there a way to get
 IF Test THEN TrueExpression
 to work inside Eval() ?
 
 Regards,
 Ron_2nd.
 

No way. Eval() only evaluates expressions.

-- 
Benoît Minisini

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Eval Gambas2

2011-01-05 Thread Ron
On 5-1-2011 10:23, Benoît Minisini wrote:
 Hi,

 I'm trying to implement some sort of basic scripting with the use of
 Eval() inside my project.

 It works for a lot of math, formatting and comparison commands and works
 quite nicely.

 But I need the IF THEN to work too.

 IIf ( Test AS Boolean , TrueExpression , FalseExpression ,
 FalseExpression ) or
 If ( Test AS Boolean , TrueExpression , FalseExpression )

 Works,  but evaluates both TrueExpression and FalseExpression regardless
 of test (as explained in docs)

 Is there a way to get
 IF Test THEN TrueExpression
 to work inside Eval() ?

 Regards,
 Ron_2nd.

 No way. Eval() only evaluates expressions.


Ok clear ;-)

Got some sort of work around so I can use IIf the way I want, instead of

If(Dev_26_Value = On, Twitter.PostTweet(TV is On!), 
Twitter.PostTweet(TV is Off!))

do:

Twitter.PostTweet(If(Dev_26_Value = On,TV is On!, TV is Off!))

Shorter anyway...

Regards,
Ron_2nd.

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] KeyPress event with grid view

2011-01-05 Thread Phạm Quang Dương
Thank for reply,

Here is my form. I tried remove all code and run the fresh form but
nothing happens.

2011/1/4 Benoît Minisini gam...@users.sourceforge.net

  Hi and Happy new year !
 
  With a grid view on a form I can get KeyPress event. It's fine.
  But with a grid view contained in a vsplit view, no KeyPress event. I
 tried
  KeyPress whit VSplit view, same result.
  Is it a bug or I forgot setting something?
  Gambas 2.22 on Fedora 14 GNOME.

 Can you make a little project example that shows the problem?

 Thanks in advance.

 --
 Benoît Minisini


 --
 Learn how Oracle Real Application Clusters (RAC) One Node allows customers
 to consolidate database storage, standardize their database environment,
 and,
 should the need arise, upgrade to a full multi-node Oracle RAC database
 without downtime or disruption
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



demoKeyPress-0.0.1.tar.gz
Description: GNU Zip compressed data
--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] OOT: Email filtering for gambas issue

2011-01-05 Thread Jussi Lahtinen
?
Every message from gambas mailing list has [Gambas-user] in subject line..?

Jussi
On Wed, Jan 5, 2011 at 04:25, MSulchan Darmawan bleke...@gmail.com wrote:

 Dear all,

 I did by filtering From header, but I saw someone accidently hit reply
 and send the email to mailing list instead of replying in google code.
 By doing that, the filter missed it.

 So I prefer to filter using Subject header, but maybe it is easier if
 there is special subject tag, such as [gb-issue] maybe ? :D

 How do you safely filter email from gambas issue ?
 Thanks in advance.

 --
 Cheers,
 [-Sulchan-]
 claws-mail 3.7.8cvs1 @ lucid lynx 10.04 LTS


 --
 Learn how Oracle Real Application Clusters (RAC) One Node allows customers
 to consolidate database storage, standardize their database environment,
 and,
 should the need arise, upgrade to a full multi-node Oracle RAC database
 without downtime or disruption
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] New MaskBox control

2011-01-05 Thread Benoît Minisini
Hi,

As an intermediate goal before rewriting the ValueBox control, I have 
implemented a MaskBox control, that is a TextBox with a mask.

How does it work ?

By setting the mask property, you define which characters are non-editable 
separators, and which characters can be entered by the user

At the moment, the following mask characters are implemented:

'9' : any digit.
'0' : any digit, with '0' as default
'6' : any hexdecimal character
'A' : any letter ('A'-'Z' and 'a'-'z')
'?' : any character.

Every other character is a separator. If you want to use a mask character as 
separator, use the '\' escape character.

Examples:

To enter a date, set Mask to 00/00/.
To enter an IP address,set Mask to 999.999.999.999
To enter a french currency, set Mask to 999 999 990,00 €

Make remarks and enjoy it!

Regards,

-- 
Benoît Minisini

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New MaskBox control

2011-01-05 Thread Benoît Minisini
   To enter a french currency, set Mask to 999 999 990,00 €
 

Forget that example, it does not work well at the moment...

-- 
Benoît Minisini

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New MaskBox control

2011-01-05 Thread Michael
Benoit,
Great Idea. I have installed version 3447 and confirmed this with svn 
-info but I cannot find the MaskBox in the toolbox. This may be my lack 
of Linux. I have installed with:
cd trunk
svn update
./reconf
./configure -C
make

When I look at the properties of file /usr/local/bin/gbx3 it has a 
modified date of 2nd Dec 2010. Is this correct? Is there a step in the 
installation that I have missed?

Regards
Michael


On 06/01/11 04:12, Benoît Minisini wrote:
 Hi,

 As an intermediate goal before rewriting the ValueBox control, I have
 implemented a MaskBox control, that is a TextBox with a mask.

 How does it work ?

 By setting the mask property, you define which characters are non-editable
 separators, and which characters can be entered by the user

 At the moment, the following mask characters are implemented:

 '9' : any digit.
 '0' : any digit, with '0' as default
 '6' : any hexdecimal character
 'A' : any letter ('A'-'Z' and 'a'-'z')
 '?' : any character.

 Every other character is a separator. If you want to use a mask character as
 separator, use the '\' escape character.

 Examples:

   To enter a date, set Mask to 00/00/.
   To enter an IP address,set Mask to 999.999.999.999
   To enter a french currency, set Mask to 999 999 990,00 €

 Make remarks and enjoy it!

 Regards,


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Did anyone have a script to record webcame picture in video files

2011-01-05 Thread firman


I'm newbe in programing language, can u give me a way to use mencoder in my
project Mr. Benoit, please?



Benoît Minisini wrote:
 
 OK Mr. Fabien.. I have a project for make a cctv monitoring system, then
 i
 used webcam for simulation my project. When i tried to make program using
 gambas3, the program has working but one button could not work.. that was
 record button, files record can create but zero (0 bytes).. I need to
 record video picture from webcam 1 to 4 in avi, mpg or any other video
 format. So i need help for solve my problem... and now i send u again
 source archive that i had make from gambas3... if u or anybody have a
 good
 script or source for solving my problem, i hope...
 http://old.nabble.com/file/p30552084/TACAMCCTVrev2-0.0.1.tar.gz
 TACAMCCTVrev2-0.0.1.tar.gz
 
 
 Maybe I will say something stupid, but did you google linux how to record 
 webcam?
 
 Hint: the answer is the mencoder program.
 
 -- 
 Benoît Minisini
 
 --
 Learn how Oracle Real Application Clusters (RAC) One Node allows customers
 to consolidate database storage, standardize their database environment,
 and, 
 should the need arise, upgrade to a full multi-node Oracle RAC database 
 without downtime or disruption
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://old.nabble.com/Did-anyone-have-a-script-to-record-webcame-picture-in-video-files-tp30442622p30602748.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Difference in SpinBox behavior between gb.gtk gb.qt

2011-01-05 Thread vikram
Hi,

The SpinBox control when used in an application using the gb.gtk component 
allows the user to input values that are larger than it's MaxValue property. 
Say the MaxValue for a SpinBox is 100, the user can enter 999 and click the 
button to move to the next form, the SpinBox now automatically changes the 
value to 100. This is good because junk values won't get saved, but the problem 
is that there is no way of extracting the value with SpinBox.Value to show the 
user an error message that the value he wanted(999) is not valid!

If on the other hand the application uses the gb.qt component the user cannot 
enter any value greater than 100, the SpinBox control wouldn't let him! Is 
there anyway the same can be achieved in applications using the gb.gtk 
component?

Regards,
Vikram Nair




  

SpinBoxIssue2GTK.tar.gz
Description: GNU Zip compressed data


SpinBoxIssue2TQ.tar.gz
Description: GNU Zip compressed data
--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] OOT: Email filtering for gambas issue

2011-01-05 Thread Ricardo Díaz Martín
Yes

2011/1/5 Jussi Lahtinen jussi.lahti...@gmail.com

 ?
 Every message from gambas mailing list has [Gambas-user] in subject line..?

 Jussi
 On Wed, Jan 5, 2011 at 04:25, MSulchan Darmawan bleke...@gmail.com
 wrote:

  Dear all,
 
  I did by filtering From header, but I saw someone accidently hit reply
  and send the email to mailing list instead of replying in google code.
  By doing that, the filter missed it.
 
  So I prefer to filter using Subject header, but maybe it is easier if
  there is special subject tag, such as [gb-issue] maybe ? :D
 
  How do you safely filter email from gambas issue ?
  Thanks in advance.
 
  --
  Cheers,
  [-Sulchan-]
  claws-mail 3.7.8cvs1 @ lucid lynx 10.04 LTS
 
 
 
 --
  Learn how Oracle Real Application Clusters (RAC) One Node allows
 customers
  to consolidate database storage, standardize their database environment,
  and,
  should the need arise, upgrade to a full multi-node Oracle RAC database
  without downtime or disruption
  http://p.sf.net/sfu/oracle-sfdevnl
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

 --
 Learn how Oracle Real Application Clusters (RAC) One Node allows customers
 to consolidate database storage, standardize their database environment,
 and,
 should the need arise, upgrade to a full multi-node Oracle RAC database
 without downtime or disruption
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] OOT: Email filtering for gambas issue

2011-01-05 Thread MSulchan Darmawan
On Wed, 5 Jan 2011 17:37:11 +0200
Jussi Lahtinen jussi.lahti...@gmail.com wrote:

 ?
 Every message from gambas mailing list has [Gambas-user] in subject
 line..?

I see now Benoît using google code for gambas bug ticket, what I want
to do is to filter the ticket appart from mailing list. So I propose
[gb-issue] if it is possible to set it on google code :D

-- 
Cheers,
[-Sulchan-]
claws-mail 3.7.8cvs1 @ lucid lynx 10.04 LTS


signature.asc
Description: PGP signature
--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user