Re: [Gambas-user] Your energy

2010-09-02 Thread Jussi Lahtinen
True, maybe Benoit means twins in English! Jussi On Thu, Sep 2, 2010 at 00:19, Dag Jarle Johansen wrote: > Hola, Benoit. > > this is no mail because of things not happening - this is a mail of > admiretance, > I was a little silent in the last months, because I have to write some > stuff in PHP

Re: [Gambas-user] Create Event

2010-09-03 Thread Jussi Lahtinen
"If you forget to specify the Name part, your object will never raise events!" http://gambasdoc.org/help/lang/new Jussi On Fri, Sep 3, 2010 at 09:49, Reynaldi Jansen wrote: > Hello again. > > I have a form and textarea with tabstrip as parent... > Then i create textarea1_cursor event in the fir

Re: [Gambas-user] To wish list...

2010-09-04 Thread Jussi Lahtinen
OK, doesn't matter, I'll do it other way. Thanks for trying! Jussi 2010/9/4 Benoît Minisini : >> On 26/08/10 03:30, Jussi Lahtinen wrote: >> > Hi! >> > I would like to have TimeLeft property to timer object. >> > It is only missing thing whi

Re: [Gambas-user] How to get the focus back?

2010-09-07 Thread Jussi Lahtinen
I tested your code with Gambas 3 revision 3119 @ Ubuntu 10.04 64bit. And I couldn't reproduce the problem. FText.form doesn't lost focus after error message. However TextBox1 on it does, but that is correct behaviour (TextBox1.SetFocus is commented out). Jussi On Tue, Sep 7, 2010 at 21:59, Matti

Re: [Gambas-user] Bugs - Gambas3

2010-09-07 Thread Jussi Lahtinen
Strange icons, see attachment. Gambas 3 revision 3196 @ Ubuntu 10.04. Jussi On Tue, Sep 7, 2010 at 20:38, Fabien Bodard wrote: > so it need to work ... try the last revision please > > 2010/9/7 craf : > >>-Mensaje original- > >>De: Fabien Bodard > >>Reply-to: mailing list for gambas u

Re: [Gambas-user] Bugs - Gambas3

2010-09-08 Thread Jussi Lahtinen
Out.txt rejected as too big, so new try... Jussi On Wed, Sep 8, 2010 at 15:31, Jussi Lahtinen wrote: > Here: > > warning: unable to load Qt translation: en_GB.utf8 > Stock.AddPath.80: gnome:/usr/share/icons/Human/&2x&2!&1 > Stock.AddPath.80: gnome:/usr/sha

Re: [Gambas-user] Bugs - Gambas3

2010-09-08 Thread Jussi Lahtinen
No change... Jussi 2010/9/8 Benoît Minisini > > Out.txt rejected as too big, so new try... > > > > Jussi > > > > Thanks. > > Is it better with the very last revision? > > -- > Benoît Minisini > > > -- > This SF.net Dev

[Gambas-user] Gambas3 libraries

2010-09-08 Thread Jussi Lahtinen
Hi! Is it possible to run libraries in different thread so that they would raise only events, without making delays in normal code execution? Jussi -- This SF.net Dev2Dev email is sponsored by: Show off your parallel prog

Re: [Gambas-user] Ubuntu 9.04 - I have error while compiling gambas 3

2010-09-09 Thread Jussi Lahtinen
Instead of "./configure" try "./configure -C". Jussi On Thu, Sep 9, 2010 at 18:30, Daniel Rojas wrote: > Hi all, I'm tryinh to compile gamba3, revision 3203. I do this: > > $ mkdir gambas3 > $ cd gambas3 > $ mkdir trunk > $ svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gamb

Re: [Gambas-user] Ubuntu 9.04 - I have error while compiling gambas 3

2010-09-09 Thread Jussi Lahtinen
; realy don't know. My PC is a little old, and it can't run a newer version > of > Ubuntu. > > :-( > > > Daniel Quintero desde la Ciudad de México > > > On Thu, Sep 9, 2010 at 1:35 PM, Jussi Lahtinen >wrote: > > > Instead of "./configure&qu

Re: [Gambas-user] Ubuntu 9.04 - I have error while compiling gambas 3

2010-09-09 Thread Jussi Lahtinen
(./configure -C) > output.txt 2>&1 Jussi On Fri, Sep 10, 2010 at 00:22, Jussi Lahtinen wrote: > I think you should send whole output of "./configure -C". > > Jussi > > > > On Thu, Sep 9, 2010 at 23:51, Daniel Rojas wrote: > >> Hi Jussi,

Re: [Gambas-user] An easy way to document a Gambas program?

2010-09-14 Thread Jussi Lahtinen
Nice, just learned this! Very useful! Is it possible to do multi lined help lines? Now they are concatenated without newlines: ''Line1 ''Line2 --> Line1 Line2 Jussi On Tue, Sep 14, 2010 at 18:03, Fabien Bodard wrote: > hum... there is a way to document you class in code with the ' ' > > 'hi is

Re: [Gambas-user] An easy way to document a Gambas program?

2010-09-14 Thread Jussi Lahtinen
VENT= for an event. > '' - =TYPE_KEYWORD= for a language keyword. > '' - =TYPE_SPECIAL= for a special method. > > Public Sub InitWebViewWith(hWebView As WebView, iType As Integer, > sSymbol As String, Optional sClass As String, Optional sMore As > String, Optional hEdit

Re: [Gambas-user] Testing Gambas 2.99

2010-09-17 Thread Jussi Lahtinen
Colorbutton bug confirmed with Gambas 3 rev 3199, Ubuntu 10.04 64bit. Only GTK+ is affected. Jussi On Fri, Sep 17, 2010 at 17:27, craf wrote: > -Mensaje original- > De: craf > Reply-to: mailing list for gambas users > > Para: mailing list for gambas users > Asunto: Re: [Gambas-user]

Re: [Gambas-user] Suggestions 4 new keywords

2010-09-17 Thread Jussi Lahtinen
Z means set of integers... Jussi On Fri, Sep 17, 2010 at 09:33, Rolf-Werner Eilert wrote: >>> >>> http://old.nabble.com/Ideas4Gambas-to28782834.html >> > > What does the "Z" stand for? > >   A = {Z; x > -3; x < 5} =~ {-2,-1,0,1,2,3,4} > > Just because I'm interested in the syntax ;-) > > Regard

[Gambas-user] Gambas 3 difficulties

2010-09-21 Thread Jussi Lahtinen
Hi! I just noticed some behaviour of message.question. If you hit ESC or close it (x), it answers always last button index. Example message.question("?","a","b") would answer 2. Nothing wrong with that, I just wasn't aware of it, and now I have to change those all. But replace feature doesn't work

[Gambas-user] Bug with Gambas3 search window

2010-09-21 Thread Jussi Lahtinen
Way to reproduce bug. 1. Open any project. 2. Write line that has no other instance in that project. 3. Search that line with browse feature. 4. Delete that line. 5. Move search window. Result, IDE crashes: " This application has raised as unexpected error and must abort. [21] Out of bounds FSear

Re: [Gambas-user] How to open a form in modal mode?

2010-09-22 Thread Jussi Lahtinen
Never seen that problem... can you send project source to demonstrate this problem? Jussi 2010/9/22 Phạm Quang Dương > I know that this question is basic. But when I try this from Form1 > > Form2.OpenDialog() > > or > > Form2.OpenModal() > > Some controls on Form2 doesn't work properly, e.g I

Re: [Gambas-user] Bug with Gambas3 search window

2010-09-22 Thread Jussi Lahtinen
I didn't notice that there is new revision. Today I tested rev 3233, and it worked correctly. Thanks! Jussi 2010/9/22 Benoît Minisini > > Way to reproduce bug. > > > > 1. Open any project. > > 2. Write line that has no other instance in that project. > > 3. Search that line with browse feature

Re: [Gambas-user] Question about date conversion in Gambas v2

2010-09-27 Thread Jussi Lahtinen
Or use shell with "date +%s". Jussi 2010/9/27 Benoît Minisini > > Hi Benoit, > > > > I have just a question about the possibility to convert in Gambas v2 a > > variable in format Date to a value of this date in number of seconds like > > in Unix command ? > > > > In my projet i need to use dat

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
I looked your example just for interest. It doesn't seem to work with Ubuntu 10.04 64bit. There are two issues, maybe something with my system... This is first time I used "*su*" (normally I use sudo) on this computer, and it doesn't work... *su -c 'whoami'* gives; *su: Authentication failure* Ho

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
, you will get error message from gambas "System error. Bad file descriptor". Error is given from line: *PRINT #hProcess, TextBox1.Text* Jussi On Sun, Oct 3, 2010 at 18:18, Stefano Palmeri wrote: > Il domenica 3 ottobre 2010 15:04:15 Jussi Lahtinen ha scritto: > > I looked your ex

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
It is attached to first mail from Stefano. Jussi 2010/10/3 Benoît Minisini > > Il domenica 3 ottobre 2010 18:46:38 Jussi Lahtinen ha scritto: > > > No, with Ubuntu 10.04 it does not work. > > > Textbox.Text is "", because shell is executed before textbox is

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
OK, here it is. Jussi 2010/10/3 Benoît Minisini > > It is attached to first mail from Stefano. > > > > Jussi > > > > I didn't receive the first mail from Stefano, strange... > > -- > Benoît Minisini > > > -- > Virtuali

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
Works as excepted, no surprises here. Problem is how to make shell wait for input. Jussi Please, try the following code and tell us if it works for you: > > > PRIVATE $hprocess AS Process > > PUBLIC SUB Form_Open() > DIM pwd AS String > > pwd = InputBox("Type your root password", "Root privilege

[Gambas-user] Serialization

2010-10-03 Thread Jussi Lahtinen
Hi! I spotted these lines from svn log: [INTERPRETER] * NEW: The READ instruction can read arrays and collections with 'AS Object' as well as 'AS Variant'. [INTERPRETER] * NEW: WRITE and READ instructions can handle collections and arrays. Call that "serialization". Can you give me example

Re: [Gambas-user] Textbox - Valuebox

2010-10-04 Thread Jussi Lahtinen
NewTextBox.SetFocus() ? Jussi On Mon, Oct 4, 2010 at 15:55, Biro Zoltan wrote: > Thank you very much Johny! > > BUT! > > I can evaluate the key pressed with keypress event, but I cannot make > the cursor to leave this textbox and to move to the next textbox. > > My example: > > PUBLIC SUB fact

Re: [Gambas-user] Gambas app run as root

2010-10-05 Thread Jussi Lahtinen
I recompiled Gambas2 and it still doesn't work. So, I run this project with gdb and I find something very worrying. I edited that project so that line; *hProcess = SHELL "su -c 'ls /root'" FOR INPUT OUTPUT* is now: *hProcess = SHELL "sudo whoami" FOR INPUT OUTPUT* ~/Desktop/su$ gbc2 -agpmt ~/Desk

Re: [Gambas-user] Gambas app run as root

2010-10-05 Thread Jussi Lahtinen
run under gdb or valgrind!!? Jussi On Tue, Oct 5, 2010 at 20:34, Jussi Lahtinen wrote: > I recompiled Gambas2 and it still doesn't work. > > So, I run this project with gdb and I find something very worrying. > I edited that project so that line; > > *hProcess = SHE

Re: [Gambas-user] Error after project is compiled

2010-10-08 Thread Jussi Lahtinen
I have used these commands to clear old installation. *sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3* In fact I have this on script for compiling Gambas: *#!/bin/sh sudo rm -f /usr/

Re: [Gambas-user] Error after project is compiled

2010-10-08 Thread Jussi Lahtinen
Maybe you mix up Jussi and Jason... I posted this just as a tip. Jussi 2010/10/8 Benoît Minisini > > I have used these commands to clear old installation. > > *sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 > > /usr/local/bin/gbi3 > > sudo rm -rf /usr/local/lib/gambas3

Re: [Gambas-user] Gambas and Mobiles, Symbian

2010-10-14 Thread Jussi Lahtinen
http://gambasdoc.org/help/doc/distro?en&view Jussi On Thu, Oct 14, 2010 at 13:04, user wrote: > Hi, > > i wander if it is possible to run Gambas projects to mobiles with > symbian S60 like nokia mobiles? > > > > -- > B

[Gambas-user] Under construction or bug?

2010-10-14 Thread Jussi Lahtinen
Help line feature seems not to work correctly with recent revision. If I type: Dim test as someclass test.somevariabl... I always get "No help found". Gambas 3 rev 3265 @Ubuntu 10.04 64bit Jussi -- Beautiful is writing

[Gambas-user] Bug with Dialog

2010-10-14 Thread Jussi Lahtinen
Hi! Way to reproduce the problem: Code: Dialog.SaveFile() Click Cancel, execution hangs. Bug applies only to Qt4. Gambas 3 rev 3265 @ Ubuntu 10.04 64bit Jussi -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe

Re: [Gambas-user] Under construction or bug?

2010-10-15 Thread Jussi Lahtinen
e test as someclass > > test.somevariabl... > > 2010/10/14 Jussi Lahtinen : > > Help line feature seems not to work correctly with recent revision. > > If I type: > > Dim test as someclass > > > > test.somevariabl... I always get "No help f

[Gambas-user] IDE crash with browse

2010-10-15 Thread Jussi Lahtinen
Hi! Way to reproduce the problem: 1. Open search window 2. type some word for search 3. click browse 4. press arrow key to right or left Reason: If gvwFind is not in focus, it has no current row, ie gvwFind.Row = -1. Crash when; hFind = $aBrowse[gvwFind.Row] @ Public Sub gvwFind_Select() Suggesti

Re: [Gambas-user] IDE crash with browse

2010-10-15 Thread Jussi Lahtinen
gvwFind.Column = 2 would be more convenient as search string can be found multiple times from same line. Jussi On Fri, Oct 15, 2010 at 18:01, Jussi Lahtinen wrote: > Hi! > Way to reproduce the problem: > 1. Open search window > 2. type some word for search > 3. click browse &

Re: [Gambas-user] Search window behavior in Gambas3

2010-10-16 Thread Jussi Lahtinen
I think this is good idea. Or maybe Ctrl + F should have flip-flop behaviour to hide/show search window. Jussi On Sat, Oct 16, 2010 at 13:20, Ron wrote: > I find the behavior of the new search/replace window in Gambas3 a bit > annoying sorry. > > Either it's to small and not easy to enlarge by

Re: [Gambas-user] Form with parameters

2010-10-18 Thread Jussi Lahtinen
Dim MyForm as New SomeForm MyForm.MyVariable1 = Something MyForm.MyVariable2 = SomethingElse ... MyFrom.Showmodal() Jussi On Mon, Oct 18, 2010 at 17:21, Biro Zoltan wrote: > HI, > > Can I make forms with parameters passed from the main form? > > Normally I use the form like this: > > PUB

Re: [Gambas-user] Beep?

2010-10-19 Thread Jussi Lahtinen
Some distributions seems to have "beep" command also. If so, then SHELL "beep". Jussi 2010/10/19 Benoît Minisini > > SHELL "echo -e \"\\007\" >/dev/tty10" > > > > I think I got that from this forum. > > > > bbb888 wrote: > > > Pretty simple? > > > > > > How can I make the computer go "beep"

[Gambas-user] Bug with transparent pictures

2010-10-25 Thread Jussi Lahtinen
Hi! See attachments. Gambas3 rev 3268 @ Ubuntu 10.04 64bit Jussi DrawingAreaBug-0.0.1.tar.gz Description: GNU Zip compressed data <>-- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create n

Re: [Gambas-user] Bug with transparent pictures

2010-10-25 Thread Jussi Lahtinen
I tried to add line (tmp is picture): tmp.Fill(Color.Transparent) But result is not much better, all I get is white background, not transparent. Jussi 2010/10/25 Benoît Minisini > > Hi! > > See attachments. > > > > Gambas3 rev 3268 @ Ubuntu 10.04 64bit > > Jussi > > This is not a bug. Pictur

Re: [Gambas-user] Bug with transparent pictures

2010-10-25 Thread Jussi Lahtinen
Hmmm I don't understand. I don't need alpha mask, just transparent mask. I need to draw completely opaque text on picture (and arrow). Jussi 2010/10/25 Benoît Minisini > > I tried to add line (tmp is picture): > > tmp.Fill(Color.Transparent) > > > > But result is not much better, all I get

Re: [Gambas-user] Bug with transparent pictures

2010-10-26 Thread Jussi Lahtinen
; Well i don't know why your are using a picture to draw on a drawing > area... but i suspect there a a reason to that :) > > it work well for me. on the same revision on ubuntu 10.10 64 > > 2010/10/25 Jussi Lahtinen : > > Hmmm I don't understand. I don't nee

Re: [Gambas-user] Under construction or bug?

2010-11-02 Thread Jussi Lahtinen
Class: *''This is test variable* *Public* Test *As* Integer *''This is test variable* *''This is test variable* Form: *Public Sub *Form_Open*()* *Dim* aa *As New* Class1 aa*.* <--- When I write this far, I expect to see "This is test variable" in help window, instead of "No help found.". *End*

Re: [Gambas-user] Under construction or bug?

2010-11-02 Thread Jussi Lahtinen
Source attached, if needed for some reason. Jussi On Tue, Nov 2, 2010 at 19:49, Jussi Lahtinen wrote: > Class: > *''This is test variable* > *Public* Test *As* Integer *''This is test variable* > *''This is test variable* > > Form: > *Public

[Gambas-user] .gambas folder?

2010-11-03 Thread Jussi Lahtinen
Hi! I'm writing backup script that excludes gambas executable, but exclude option doesn't make difference between .gambas folder and *.gambas files. So, what is .gambas folder for? For debugging symbols? Jussi -- Achieve I

Re: [Gambas-user] .gambas folder?

2010-11-03 Thread Jussi Lahtinen
Ok, so no need to back up them, thanks! Jussi 2010/11/3 Benoît Minisini > > Hi! > > I'm writing backup script that excludes gambas executable, but exclude > > option doesn't make difference between .gambas folder and *.gambas files. > > So, what is .gambas folder for? For debugging symbols? >

Re: [Gambas-user] how to apply a revision

2010-11-05 Thread Jussi Lahtinen
I'm not sure I understand right... but. You probably want to download whole source of development version. Read from here what you need and how to compile: http://gambas.sourceforge.net/en/download.html http://gambasdoc.org/help/install?view&en Jussi On Fri, Nov 5, 2010 at 16:38, Daniel Vanhee w

Re: [Gambas-user] how to apply a revision

2010-11-05 Thread Jussi Lahtinen
Hmmm... why do you need it? Bug? Jussi On Fri, Nov 5, 2010 at 16:38, Daniel Vanhee wrote: > I am using Gambas2.2.21.0 and had to download a revision (CDialog.cpp). > Can anyone explain me how I have to apply that revision > > Regards. > > ---

Re: [Gambas-user] IDE crash with browse

2010-11-07 Thread Jussi Lahtinen
. > > > > Jussi > > > > On Fri, Oct 15, 2010 at 18:01, Jussi Lahtinen > wrote: > > > Hi! > > > Way to reproduce the problem: > > > 1. Open search window > > > 2. type some word for search > > > 3. click browse > > > 4.

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread Jussi Lahtinen
?? There is Mod. http://gambasdoc.org/help/lang/mod Jussi On Mon, Nov 8, 2010 at 18:30, user wrote: > Hi to all, > > i want to ask why there is not a modulus operator like % for example? > > > > -- > The Next 800 Comp

Re: [Gambas-user] MOD arithetic operator

2010-11-09 Thread Jussi Lahtinen
Sorry about nitpicking... but modulo, integer division, addition, subtraction are operators. MOD, %, DIV, + , - are called operator symbols, or just symbols. Jussi On Tue, Nov 9, 2010 at 14:05, user wrote: > > In my opinion that is correct choice. > > > >Because if you remove DIV aka / operat

Re: [Gambas-user] string operator ==

2010-11-09 Thread Jussi Lahtinen
That is bug... However I cannot reproduce it with Gambas 2.21 or with Gambas 3 rev 3281. @ Ubuntu 10.04 64bit Are you sure you got it correct? Jussi On Tue, Nov 9, 2010 at 14:46, Demosthenes Koptsis wrote: > Hi, > > i dont understand the following result. > > PRINT "abc" == "ab" 'true > PRIN

Re: [Gambas-user] string operator ==

2010-11-10 Thread Jussi Lahtinen
There is other similar bug or non-convinient feature. IF NOT 1 = 2 THEN PRINT "This is never printed" ENDIF IF NOT 1 = 1 THEN PRINT "This is also never printed" ENDIF IF NOT (1 = 2) THEN PRINT "This however works" ENDIF Tested with Gambas 2.21 and with Gambas 3 rev 3281. @ Ubuntu 10.04 64bit Ju

Re: [Gambas-user] string operator ==

2010-11-10 Thread Jussi Lahtinen
OK, makes sense. Though there should be warning in documentation (to "NOT" section and to "Differences From Visual Basic"). And maybe compiler warning? Jussi 2010/11/10 Benoît Minisini > > There is other similar bug or non-convinient feature. > > > > IF NOT 1 = 2 THEN > > PRINT "This is never

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-12 Thread Jussi Lahtinen
> I will look at the log, but I don't understand what you did *exactly* to > get > the crash. > That is why I wrote "elusive"... I can't figure out what exactly causes this crash. But copy&paste this to IDE console; ? bin(rol(1073741784+ shl(9,2) + shr(24,3),X ),32) Then replace X with some rando

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-12 Thread Jussi Lahtinen
, so this is seems to be precision problem. Is this OK? Jussi On Fri, Nov 12, 2010 at 17:18, Jussi Lahtinen wrote: > > I will look at the log, but I don't understand what you did *exactly* to >> get >> the crash. >> > > That is why I wrote "elusive&qu

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-12 Thread Jussi Lahtinen
I'll send my whole project to you later. According to documentation this should yield True. ? IsBlank(" \\t") I got always False... BTW. I'll check all math functions against wolfram|Alpha, so sometimes I'm not sure where to put limit of acceptable accuracy. Jussi 2010/11/12 Benoît Minisini

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-12 Thread Jussi Lahtinen
> > I'll send my whole project to you later. > > > > According to documentation this should yield True. > > ? IsBlank(" \\t") > > I got always False... > > It's a typo mistake. Read: IsBlank(" \t") > OK. > > > > BTW. I'll check all math functions against wolfram|Alpha, > > so sometimes I'm not s

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-13 Thread Jussi Lahtinen
More... Dim TestSingle As Single Dim pp As Pointer TestSingle = 33.1 pp = VarPtr(TestSingle) SinglePtr(pp) = 33.1 is False! Gives -2... Jussi On Fri, Nov 12, 2010 at 23:44, Jussi Lahtinen wrote: > > > I'll send my whole project to you later. >> > >> >

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-14 Thread Jussi Lahtinen
More... ? Week("07/24/2005") 30 Should be 29. Jussi On Sat, Nov 13, 2010 at 19:36, Jussi Lahtinen wrote: > More... > > Dim TestSingle As Single > Dim pp As Pointer > > TestSingle = 33.1 > pp = VarPtr(TestSingle) > > SinglePtr(pp) = 33.1 is False! Gives

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-14 Thread Jussi Lahtinen
vate Function TestErrorManagment(iWhich As Integer) As Integer Dim iError As Integer If iWhich = 1 Then iError = 1 / 0 Else iError = 20 Endif Finally Inc iError Return iError Catch iError = 3 End Jussi On Sun, Nov 14, 2010 at 15:02, Jussi Lahtinen wrote: > More... > > ? Week("07

[Gambas-user] GambasTester 0.9.9

2010-11-15 Thread Jussi Lahtinen
Hi! My quick&dirty side project for Gambas 3 is now ready to be share. It makes some seemingly stupid and some, actually stupid tests, to confirm that current revision works. It is far from perfect, but better than nothing. I hope people keep on improving this. There are still few untested commands

Re: [Gambas-user] GambasTester 0.9.9

2010-11-15 Thread Jussi Lahtinen
OK, these are not the errors I meant... These are obviously my errors. I fixed Format$ to be compared against Str$(). There might be other similar errors too... Jussi 2010/11/15 Benoît Minisini > > If Format$(Pi, "#.##") <> 3.14 Then > > Return 85 > > Endif > > > > this test can be true only

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-16 Thread Jussi Lahtinen
But then I don't understand why "Finally" exist... At least that test function is equal without it. Is there proper usage for it, or is it for historical etc reasons? BTW. You didn't get errors from any date commands? Nor crash from line 1038 of mTest? I'll send logs about that crash later. Jussi

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-17 Thread Jussi Lahtinen
> > But then I don't understand why "Finally" exist... > > At least that test function is equal without it. > > Is there proper usage for it, or is it for historical etc reasons? > > > > Finally exists so that you can have some code that is always executed at > the > end of the function, even if th

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-17 Thread Jussi Lahtinen
> This fails randomly: > > If DateDiff(Now, DateAdd(Date(Now), gb.Day, 2), gb.Day) <> 2 Then > Return 160 > Endif > > Though, today with new revision (3299) I haven't be able to reproduce it. > I'll look it more closely later. > OK, now it fails again. If DateDiff(Now, DateAdd(Date(Now), gb.Day,

Re: [Gambas-user] GambasTester 0.9.9

2010-11-17 Thread Jussi Lahtinen
More errors fixed from GambasTester, and now self test ignores comment lines. Jussi On Mon, Nov 15, 2010 at 23:02, Jussi Lahtinen wrote: > OK, these are not the errors I meant... These are obviously my errors. > I fixed Format$ to be compared against Str$(). > > There might be o

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Jussi Lahtinen
> PRINT "Bin(-9):"; Bin(-9) > PRINT "Bin(Lsl(-9, 1)):"; Bin(Lsl(-9, 1)) > PRINT "Bin(Lsr(-9, 1)):"; Bin(Lsr(-9, 1)) > > Bin(-9) > :0111 > > Bin(Lsl(-9,1)):11101110 > Bin(L

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Jussi Lahtinen
Argh... no. Try this: ? bin(Lsr(-9,1),32) 0011 Jussi On Sat, Nov 20, 2010 at 17:55, Jussi Lahtinen wrote: > > PRINT "Bin(-9):"; Bin(-9) >> PRINT "Bin(Lsl(-9, 1)):"; Bin(Lsl(-9, 1)) >> PRINT "Bin(

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Jussi Lahtinen
because lsr processes 32 bits of the short -9 and not 64 bits of the > long binary number? > Yes, -9 is considered as short. Try: ? bin(lsr(clng(-9),1), 64) 0011 Jussi -

[Gambas-user] Bug with IsNumber

2010-12-13 Thread Jussi Lahtinen
Hi! With Gambas 3 revision 3361 @ Ubuntu 10.04 64bit, IsNumber(False) returns False. Is this new behaviour correct? Jussi -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your co

Re: [Gambas-user] Bug with IsNumber

2010-12-13 Thread Jussi Lahtinen
IsNumber(Value As Variant) As Boolean... Then why variant? Jussi 2010/12/13 Benoît Minisini > > Hi! > > With Gambas 3 revision 3361 @ Ubuntu 10.04 64bit, > > IsNumber(False) returns False. > > > > Is this new behaviour correct? > > > > Jussi > > Yes. Now IsNumber() takes a string and returns i

[Gambas-user] Bug with IsInteger?

2010-12-16 Thread Jussi Lahtinen
? IsInteger("12 + 5.4") True Gambas 3 rev 3371 @ Ubuntu 10.04 64bit Jussi -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and e

Re: [Gambas-user] Preprocessor in the Gambas 3 compiler

2010-12-18 Thread Jussi Lahtinen
Nice! But now I have to consider doing only one version that handles both 32 and 64 bit architecture... Jussi 2010/12/18 Benoît Minisini > > The "#If" test is a *preprocessor expression* that compare a > *preprocessor > > ---> "compares". > > -- > Benoît Minisini > > >

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

2010-12-18 Thread Jussi Lahtinen
It is easier to help if you send your whole project. I can't see any handling for CatProcess. Jussi On Sat, Dec 18, 2010 at 02:11, firman wrote: > > > I Almost done my project about monitoring camera using webcam with gambas > 3... the picture or streaming video can displayed on picturebox but

Re: [Gambas-user] Bug with IsInteger?

2010-12-18 Thread Jussi Lahtinen
Now I'm on Ubuntu 10.10 64bit with Gambas 3 rev 3371. LANG=C gbx3 -e 'IsInteger("12 + 5.4")' Yields; False. Jussi 2010/12/18 Benoît Minisini > > ? IsInteger("12 + 5.4") > > True > > > > Gambas 3 rev 3371 @ Ubuntu 10.04 64bit > > > > Jussi > > I get False there. > > 1) Try to run that: > > $

Re: [Gambas-user] Bug with IsInteger?

2010-12-18 Thread Jussi Lahtinen
But with IDE console; ? IsInteger("12 + 5.4") True Jussi On Sat, Dec 18, 2010 at 19:40, Jussi Lahtinen wrote: > Now I'm on Ubuntu 10.10 64bit with Gambas 3 rev 3371. > > > LANG=C gbx3 -e 'IsInteger("12 + 5.4")' > Yields; False. > > Jus

Re: [Gambas-user] Bug with IsInteger?

2010-12-19 Thread Jussi Lahtinen
LANG=C gbx3 -e 'IsInteger("12 + 5.4")' Gives; False In IDE console: ? IsInteger("12 + 5.4") True Are you sure that you have compiled and installed the correct version? > > gbr3 --version Gives always 2.99.0... But "svn info" says sources are at revision 3377. I just recompiled them and now gbx3

Re: [Gambas-user] Bug with IsInteger?

2010-12-19 Thread Jussi Lahtinen
Also this: $ gbx3 -e 'IsInteger("12 + 5.4")' Gives; True What LANG=C exactly does? Jussi On Sun, Dec 19, 2010 at 18:57, Jussi Lahtinen wrote: > > LANG=C gbx3 -e 'IsInteger("12 + 5.4")' > Gives; False > > In IDE console: > ? IsI

Re: [Gambas-user] Bug with IsInteger?

2010-12-19 Thread Jussi Lahtinen
$ echo $LANG en_GB.utf8 $ echo $LC_ALL So, LC_ALL doesn't seem to contain anything. Jussi 2010/12/19 Benoît Minisini > > Also this: > > $ gbx3 -e 'IsInteger("12 + 5.4")' > > > > Gives; True > > > > > > What LANG=C exactly does? > > > > Jussi > > > > It tells programs to run with the "C" (i.e

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

2010-12-20 Thread Jussi Lahtinen
Project --> Make --> Source archive And put the script in that tar ball also. Jussi On Mon, Dec 20, 2010 at 08:32, firman wrote: > > okay i'll send u entire project, but which one do u need, Files project in > package program or just All script in main form?? >

[Gambas-user] Bug with IsDate?

2010-12-20 Thread Jussi Lahtinen
Hi! I don't quite understand how this should work... IsDate(Now) returns False, and IsDate(Str(Now)) returns True. I don't understand why IsXXX functions accept anything else than string. Help window says 'IsDate(Value As Variant) As Boolean' and below it it continues 'IsDate( String ) As Boolean

Re: [Gambas-user] Bug with IsDate?

2010-12-20 Thread Jussi Lahtinen
Question still valid, but I think there is problem with localization. ? IsDate(Cstr(Now)) False ? IsDate(Str(Now)) True Jussi On Mon, Dec 20, 2010 at 21:00, Jussi Lahtinen wrote: > Hi! > I don't quite understand how this should work... > > IsDate(Now) returns False, a

Re: [Gambas-user] Bug with IsDate?

2010-12-20 Thread Jussi Lahtinen
> The wiki has been recently updated, but your IDE only update its > documentation > cache once a week. > Is there way to force IDE to update cache? To wish list? But, I'm still not sure I quite understand. If IsDate() takes only string, why I don't get "Type mismatch: wanted string got date ins

[Gambas-user] IsFloat

2010-12-20 Thread Jussi Lahtinen
Hi! Is this correct; ? IsFloat("123") False 123 should be safe value for float, even if it can be stored to integer. With consistent logic IsLong("1") should answer False, so I think this is bug. Gambas 3 rev 3384 @ Ubuntu 10.10 64bit Jussi -

Re: [Gambas-user] IsFloat

2010-12-21 Thread Jussi Lahtinen
I was wondering if some (definitely not all!) of IsXXX functions should have different names, example SafeForXXX or similar? That would describe their new functionality better. Example, IsNull really tells if value Is Null or not (so IsNull is good name), but IsFloat tells only if value is safe to

Re: [Gambas-user] IsFloat

2010-12-21 Thread Jussi Lahtinen
Also that would prevent mix up with IsXXX functions when moving from Gambas 2 to 3. Jussi On Tue, Dec 21, 2010 at 19:18, Jussi Lahtinen wrote: > I was wondering if some (definitely not all!) of IsXXX functions should > have different names, example SafeForXXX or similar? > That would

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

2010-12-22 Thread Jussi Lahtinen
to install it in > >>>> ubuntu > >>>> 10.10 and any problem there. When i openned gambas3 there was nothing > >>>> menus.. but the project can openned. So i use os windows for put the > >>>> source > >>>> archive usin

[Gambas-user] Week function and localization

2010-12-22 Thread Jussi Lahtinen
? Week(Date(2005, 7, 24)) 30 Calendar says 29, however this doesn't seem to be this simple... See end of this page, section 'weeks', week number options. http://www.timeanddate.com/calendar/custommenu.html?year=2005&country=9&wno=5&holm=1&df=1 Seems that there are several ways how week numbers ar

Re: [Gambas-user] Week function and localization

2010-12-22 Thread Jussi Lahtinen
How did I missed them... Jussi 2010/12/22 Benoît Minisini > > ? Week(Date(2005, 7, 24)) > > 30 > > Calendar says 29, however this doesn't seem to be this simple... > > > > See end of this page, section 'weeks', week number options. > > > http://www.timeanddate.com/calendar/custommenu.html?year

Re: [Gambas-user] Type Mismatch error with max neg long int as constant

2010-12-22 Thread Jussi Lahtinen
Very similar problem... Public Const LowestInteger As Integer = -2147483648 Yields; "Out of range" Gambas 3 rev 3389 @ Ubuntu 10.10 Jussi 2010/11/27 Benoît Minisini > > > > In Gambas2, I get a type mismatch error...but no error if ends in a 7 > > > > > > > > PUBLIC CONST LOWESTLONG AS Long

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

2010-12-26 Thread Jussi Lahtinen
No... tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors Jussi On Fri, Dec 24, 2010 at 10:11, firman wrote: > > > i've tried to open my file using right click than select using archieve > mounting after that use exp

Re: [Gambas-user] Porting Gambas 2 projects to Gambas 3

2010-12-26 Thread Jussi Lahtinen
"Gambas is an interpreted language, with no "just-in-time" or other compilation at all." I think this should be: "Gambas is an interpreted language, with no "just-in-time" or other compiler optimizations at all." Juss

Re: [Gambas-user] Some new features in Gambas 3

2010-12-28 Thread Jussi Lahtinen
> 2) A new set of native functions named Mk$() to create a string from > the > memory representation of a value. For example, MkShort$(1234) returns > Chr$(210) & Chr$(4) (on a little endian machine). > I'm updating GambasTester to handle new commands and features. And I don't quite understand th

Re: [Gambas-user] Bug in gb2 and gb3 in float

2010-12-29 Thread Jussi Lahtinen
http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems http://en.wikipedia.org/wiki/Floating_point#Minimizing_the_effect_of_accuracy_problems Benoit, maybe you can add datatype 'decimal' in wish list? Jussi On Wed, Dec 29, 2010 at 20:09, Wellington de Souza Pinto < wspi...@click21.com.

Re: [Gambas-user] Some new features in Gambas 3

2011-01-03 Thread Jussi Lahtinen
I think native functions should be for general use only. And I don't think MkXXX$() functions now represents good practice to be used as now intended. If your software runs on linux (what else?), you probably still need to write these functions by your self to correct endianess accordingly to sende

[Gambas-user] Inconsistency with floating point notation.

2011-01-03 Thread Jussi Lahtinen
Little problem with floating points... as you can see (below) -2E-16 is non zero, but if you write same value with other notation (-0.0002) it will be interpreted as zero. If -0.000166533453693773 > -2E-16 Then Debug "First is bigger." Endif If -0.0001665334536

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 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 cod

  1   2   3   4   5   6   7   8   9   10   >