[Gambas-user] To wish list; optional compiler warning

2011-09-08 Thread Jussi Lahtinen
Hi! Quick thought; it would be nice to have compiler warning if byref is missing from function/sub call. I know using byref is optional, but so far I have only forgot to add it. Example: Private Sub Test(Byref x As Integer) ... And you can call it; Test(i) Or; Test(Byref i) Jussi

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-08 Thread Jussi Lahtinen
By having to specify ByRef in the caller, you can't forget that the function will modify your variable (forgetting that leads to hard-to-fix bugs) and it help readers of your code. Sorry, I don't understand what you mean, can you elaborate? I mean I forgot to write Test(Byref i), instead I

Re: [Gambas-user] Error in example: WebCam 1.0.4

2011-08-31 Thread Jussi Lahtinen
Last time I was bit too hurry to test this through and give enough details, sorry! My camera could be found from /dev/video0. For some reason IDE can't pause execution, so I'm not sure what happens. It just seem to freeze to search for device. However, last messages are: gambas v4l2: Device is

Re: [Gambas-user] Error in example: WebCam 1.0.4

2011-08-30 Thread Jussi Lahtinen
MyWebCam example says (and works); Device is V4L2! and WebCam example doesn't find it at all..? Still something wrong... Jussi 2011/8/30 Benoît Minisini gam...@users.sourceforge.net 'Form.Close' is incorrectly overridden in class 'FDevice' Gambas 3 rev 4052 @ Ubuntu 11.04 64bit

Re: [Gambas-user] Bug

2011-08-26 Thread Jussi Lahtinen
certainly not very useful but why should the compiler stop you setting something to null? What if there's a line of code between, should it then be legal? regards, Caveat On Fri, 2011-08-26 at 02:35 +0300, Jussi Lahtinen wrote: I think this shouldn't be legal: Dim a As New Class1

Re: [Gambas-user] Bug

2011-08-26 Thread Jussi Lahtinen
It is not setting a different object reference to the same variable, it is removing the object reference from the variable. a is a pointer to an instance of a newly instantiated Class1 object. Setting a to null is perfectly valid. a then no longer points to an instance. Therefore the

Re: [Gambas-user] Signal 11

2011-08-26 Thread Jussi Lahtinen
I'm on gnome..? Jussi 2011/8/26 Benoît Minisini gam...@users.sourceforge.net I did: 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 sudo make clean Then: (

Re: [Gambas-user] Signal 11

2011-08-26 Thread Jussi Lahtinen
gnome 2.32.1 metacity 2.30.3 Theme is clearlooks classic for controls and clearlooks for window borders... What else you need to know? Jussi 2011/8/27 Benoît Minisini gam...@users.sourceforge.net I'm on gnome..? Jussi Please give me more details about your desktop, your window

[Gambas-user] Bug

2011-08-25 Thread Jussi Lahtinen
I think this shouldn't be legal: Dim a As New Class1 a = Null But there is no error message. Gambas 3 rev 4039 @ Ubuntu 11.04 64bit Jussi -- EMC VNX: the world's simplest storage, starting under $10K The only unified

Re: [Gambas-user] write to file question

2011-08-17 Thread Jussi Lahtinen
Or, put Open outside of the loop. Jussi On Wed, Aug 17, 2011 at 16:43, Jesus ea7...@ea7dfh.com wrote: El 15/08/11 14:03, wally escribió: Hi, i try to write data to a new file in the following way: Public hFile As File 'because i need to write in a serial_read_event

Re: [Gambas-user] write to file question

2011-08-16 Thread Jussi Lahtinen
What is your Gambas version and operating system? Can you send demonstration project? Code in your mail seems to be OK, so I think the problem is somewhere else. Jussi On Mon, Aug 15, 2011 at 15:03, wally wa...@voosen.eu wrote: Hi, i try to write data to a new file in the following way:

Re: [Gambas-user] write to file question

2011-08-16 Thread Jussi Lahtinen
Maybe you need to flush some stream before closing? Jussi On Tue, Aug 16, 2011 at 19:31, Jussi Lahtinen jussi.lahti...@gmail.comwrote: What is your Gambas version and operating system? Can you send demonstration project? Code in your mail seems to be OK, so I think the problem is somewhere

Re: [Gambas-user] mailinglist digest question

2011-08-16 Thread Jussi Lahtinen
Try to keep original subject line, and delete all unnecessary text from reply. I find using digests not so convenient... I highly recommend to use gmail and to do separated folders for mailing lists. Jussi On Tue, Aug 16, 2011 at 19:54, wally wa...@voosen.eu wrote: How can i reply to single

[Gambas-user] Annyoing bug with search feature

2011-08-14 Thread Jussi Lahtinen
Gambas 3 rev 4009 @ Ubuntu 11.04 64bit Way to reproduce: 1. Open search window. 2. Pick word to search that can be found from multiple files, example; Dim, Function, etc. 3. Set search in source files and click browse. 4. Chose first instance. 5. Edit the word that was searched for. ---

Re: [Gambas-user] Callback

2011-08-12 Thread Jussi Lahtinen
I was experimenting with the code and simply this works : Public sub main() calll(twotimes(3)) end Public Sub twotimes(a As Integer) As Integer Print a a *= 2 Print a Return a End Public Sub calll(cb As Pointer) Print should be printed twice End Hmmm... no it doesn't, I

Re: [Gambas-user] Callback

2011-08-11 Thread Jussi Lahtinen
Or, see code: To class named Twotimes: Static Public Function _call(x As Integer) As Integer Return x * 2 End Then somewhere else: ''This is the function that accepts callbacks. Public Function testing(x As Integer, ofunc As Object) As Integer Return ofunc(x) End ''Here is how to call

Re: [Gambas-user] Callback

2011-08-10 Thread Jussi Lahtinen
You need wrapper only between C++ and Gambas, C with Gambas is fine!! Callback functions are passed as pointer, but I have only passed gambas written functions to external functions. Not sure what you are doing is legitimate... Gambas should first recognize callback pointer as function. Benoit?

Re: [Gambas-user] Possible bug in g3 ide

2011-07-31 Thread Jussi Lahtinen
Does it always happen with same project? Can you take screenshot of it? I haven't see it happen in any Ubuntu, what is your operating system? Debian? Arch Linux? OpenSUSE? Red Hat? Or..? Do your project use GTK+ or Qt? Jussi On Sun, Jul 31, 2011 at 10:11, Andrea Bertini and.bert...@gmail.com

Re: [Gambas-user] Possible bug in g3 ide

2011-07-30 Thread Jussi Lahtinen
Operating system? Revision? How to reproduce this bug? Can you attach project to demonstrate this? Jussi On Sat, Jul 30, 2011 at 17:53, Andrea Bertini and.bert...@gmail.com wrote: I can report a bug g3: in some cases if you close the program and reopen the program, some controls (buttons,

Re: [Gambas-user] possible bug

2011-07-29 Thread Jussi Lahtinen
Confirmed with Gambas 3 rev 3952 @ Ubuntu 11.04 64bit. Jussi 2011/7/29 Fabián Flores Vadell fabianfloresvad...@gmail.com Hi everybody. I get the following message error: This application has raised an unexpected error and must abort. [6] Type mismatch: wanted FEditor, got FForm

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-07-01 Thread Jussi Lahtinen
File.Path? You mean File.Dir? Jussi On Fri, Jul 1, 2011 at 17:36, nando nand...@nothingsimple.com wrote: In a true multi-user multi-tasking environment the following is good except it is missing one thing: The TRY must be added because during the IF test and the MKDIR, it might have been

Re: [Gambas-user] External Variables

2011-06-27 Thread Jussi Lahtinen
If you use Gambas 3, look at GSLSpline example. It uses external object, but you can use external variables in similar way. gsl_interp_cspline = Pointer@(System.GetExternSymbol(libgsl:0, gsl_interp_cspline)) Jussi On Mon, Jun 27, 2011 at 13:12, tobias tobiasb...@web.de wrote: hi, i have a

Re: [Gambas-user] Bug with border property.

2011-06-26 Thread Jussi Lahtinen
metacity 2.30.3 Jussi 2011/6/25 Benoît Minisini gam...@users.sourceforge.net Hi! Borderless windows doesn't work (borders are showing) when combined to 'Mask = True'. Problem is only with Qt4, with GTK+ everything is OK. Gambas 3 rev 3888 @ Ubuntu 11.04 64bit Jussi I habe no

[Gambas-user] To wish list: Select with multiple variables

2011-06-20 Thread Jussi Lahtinen
I think I'm having short circuit in my brain, so this might be stupid suggestion... But I would like to see feature illustrated by following example: Select Case bVar1; bVar2; bVar3; iVar Case True; True; True; 1 To 10 'Do something Case False; True; True; 11 To 20 'Do

Re: [Gambas-user] Class name bug.

2011-06-20 Thread Jussi Lahtinen
No, I can confirm this is bug. Autocompletion list do have both, but it forces to use upper case version. If you select lower case version, it will be changed automatically to upper case version. Gambas 3 rev 3888 @ Ubuntu 11.04 Jussi On Mon, Jun 20, 2011 at 22:47, Fabien Bodard

Re: [Gambas-user] Gambas Calculator

2011-06-19 Thread Jussi Lahtinen
Problem solved. Default value for variable a is 0,5 which returns NULL with Val(). ? * val(0,5) * ** While 0.5 gives answer as expected. ? * val(0.5) * *0.5* Gambas 3 rev 3888 @ Ubuntu 11.04 64bit Jussi On Sun, Jun 5, 2011 at 23:36, Jussi Lahtinen jussi.lahti...@gmail.comwrote

Re: [Gambas-user] Object beginer, how to create objects on a form

2011-06-18 Thread Jussi Lahtinen
Add some size for it, example: hTextBox1.Width = 100 hTextBox1.Height = 100 Jussi On Sat, Jun 18, 2011 at 17:00, Demosthenes Koptsis demosthen...@gmail.comwrote: Hi, i try to implement some examples about object creation. i have this example - Public Sub

[Gambas-user] Bug with border property.

2011-06-13 Thread Jussi Lahtinen
Hi! Borderless windows doesn't work (borders are showing) when combined to 'Mask = True'. Problem is only with Qt4, with GTK+ everything is OK. Gambas 3 rev 3888 @ Ubuntu 11.04 64bit Jussi -- EditLive Enterprise is the

Re: [Gambas-user] Problems with gbs

2011-06-12 Thread Jussi Lahtinen
Works perfectly now! Jussi 2011/6/11 Benoît Minisini gam...@users.sourceforge.net This problem is now solved. I'm going to do distribution update, and because of that I temporarily change my fstab: /tmpext4relatime,nosuid,noexec0 2 -- /tmp

Re: [Gambas-user] Extra gb.newline ?

2011-06-10 Thread Jussi Lahtinen
Yes, you are right, gedit will add newline automatically. That was unexpected. Thanks! Jussi On Thu, Jun 9, 2011 at 23:32, tobias tobiasb...@web.de wrote: hi, without having seen the code - i think it's all ok with your code - i'd say that the problem is in creation of the text file.

Re: [Gambas-user] Extra gb.newline ?

2011-06-10 Thread Jussi Lahtinen
On Fri, Jun 10, 2011 at 17:57, Rolf-Werner Eilert eilert-sprac...@t-online.de wrote: By the way, seeing through your code, why do you try to open the file for write create first and then use file.save? What would be the disadvantage of using TRY file.save alone? Yeah, I could use 'Try

Re: [Gambas-user] Multiline question

2011-06-10 Thread Jussi Lahtinen
What do you need exactly? Sometimes you can short lines with With, and math can be done in multiple steps. ii = 2 + 4 * f(1 + 2) + ... -- x = 1 + 2 ii = 4 * f(x) ii += 2 + ... Or: sString = 123 -- sString = 1 2 3 Or: iInteger = 1 + 2 + 3 -- iInteger = 1 + 2 + 3 These all should work with

Re: [Gambas-user] Extra gb.newline ?

2011-06-10 Thread Jussi Lahtinen
On Fri, 2011-06-10 at 20:16 +0300, Jussi Lahtinen wrote: Yes, you are right, gedit will add newline automatically. That was unexpected. Thanks! Jussi On Thu, Jun 9, 2011 at 23:32, tobias tobiasb...@web.de wrote: hi, without having seen the code - i think it's all ok with your code

Re: [Gambas-user] arithmetic operations on dates and times

2011-06-09 Thread Jussi Lahtinen
I'm not sure I understand correctly, but this code adds one year to current date and prints it. Print Date(Year(Now) + 1, Month(Date), Day(Now), Hour(Now), Minute(Now), Second(Now)) But I don't know what is upper limit of accepted year. Maybe you want to use integer or even long variables instead

[Gambas-user] Extra gb.newline ?

2011-06-09 Thread Jussi Lahtinen
Hi! I made small simple command line program to shuffle data (see attachment), but there is strange problem. For some reason extra newline is inserted. If I run this program with command; ./Shuffler.gambas test.txt test2.txt , Then data like this; 1,2,3,4,5,6,7,8,9,10 Turns into something like

Re: [Gambas-user] Gambas Calculator

2011-06-05 Thread Jussi Lahtinen
Result is always Unknown symbol. Gambas 3 rev 3871 @ Ubuntu 11.04 64bit Jussi 2011/6/3 Benoît Minisini gam...@users.sourceforge.net Also Gambas has Evaluator example, but it doesn't seem to work..? Jussi It works there. What's the problem? -- Benoît Minisini

Re: [Gambas-user] Gambas Calculator

2011-06-03 Thread Jussi Lahtinen
Also Gambas has Evaluator example, but it doesn't seem to work..? Jussi On Fri, Jun 3, 2011 at 12:11, richard terry rte...@pacific.net.au wrote: On Friday 03 June 2011 18:35:28 Fabien Bodard wrote: 2011/6/3 richard terry rte...@pacific.net.au: On Friday 03 June 2011 16:59:21 Rolf Schmidt

Re: [Gambas-user] odd gb3 issue

2011-06-03 Thread Jussi Lahtinen
Maybe you can use ping, and use delay with low latency clients. However, 100 ms sounds pretty long time... Jussi On Fri, Jun 3, 2011 at 09:36, Kevin Fishburne kevinfishbu...@eightvirtues.com wrote: On 06/01/2011 02:06 AM, Kevin Fishburne wrote: On 05/30/2011 03:31 PM, Benoît Minisini

Re: [Gambas-user] Gambas Calculator

2011-06-02 Thread Jussi Lahtinen
Not exactly, but this might help; http://gambasdoc.org/help/lang/eval You can use it to do calculations, example: Print Eval(1 + 2) Or you can use variables like in documentation example. Jussi On Fri, Jun 3, 2011 at 01:32, richard terry rte...@pacific.net.au wrote: I wondered if anyone on

Re: [Gambas-user] odd gb3 issue

2011-06-01 Thread Jussi Lahtinen
Firewall problem? Jussi On Wed, Jun 1, 2011 at 13:49, Toni Rosa ar...@tginet.com wrote: Anyone have any insight? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 Note that UDP doesn't guarantee

[Gambas-user] To wish list.

2011-05-30 Thread Jussi Lahtinen
Hi! It would be nice to be able to change order of tabs with dragdrop, just like in Firefox. Maybe to Gambas 4! Jussi -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for

Re: [Gambas-user] File Operations

2011-05-28 Thread Jussi Lahtinen
http://gambasdoc.org/help/cat/file http://gambasdoc.org/help/lang/open Jussi On Sat, May 28, 2011 at 05:08, Christian DaGeek247 Stephens imageek...@gmail.com wrote: Hey all, im back again. How would I open/edit/and delate a file in gambas? i have no idea where to look in the included docs.

Re: [Gambas-user] We live a dangerous life sometimes...

2011-05-26 Thread Jussi Lahtinen
Sometimes bad power cable connection does things like that, but maybe Benoit has already check those. Jussi On Thu, May 26, 2011 at 22:34, Charlie Reinl karl.re...@fen-net.de wrote: Am Donnerstag, den 26.05.2011, 19:15 +0200 schrieb Benoît Minisini: Hi, I'm going to flash the firmware

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-24 Thread Jussi Lahtinen
Not sure, but I think Benoit means special method _compare which is used (if exist) to sort objects. http://gambasdoc.org/help/lang/special/compare?view http://gambasdoc.org/help/comp/gb/object%5B%5D/sort?v3 Jussi On Tue, May 24, 2011 at 05:22, Kevin Fishburne kevinfishbu...@eightvirtues.com

Re: [Gambas-user] One line to IDE

2011-05-23 Thread Jussi Lahtinen
Gambas 3 rev 3857 @ Ubuntu 11.04 64bit Jussi On Mon, May 23, 2011 at 18:32, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Maybe you do understand and there is some other problem... Screenshot1.jpg tells what happens now when I press h on my keyboard. Screenshot2.jpg tells what I expect

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-23 Thread Jussi Lahtinen
actuakky i have problem to pass the splines to rootfinder What you are exactly trying to achieve? Rootfinder tries to find root of function, it doesn't eat data as such... For data just seek for zero. Jussi -- What

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-23 Thread Jussi Lahtinen
some spectrographic data. Mainly peakfinding, start of peak end of peak, integral between start and end of sigle peak in numerical data containing unknown number of peaks and of course noise. wally On Monday, May 23, 2011 17:48:24 Jussi Lahtinen wrote: actuakky i have problem to pass

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-23 Thread Jussi Lahtinen
the data from the pealgenerator to several chromatography software. best solution would be to get the parameters set in peakgenerator back from the data in spite of noise, systematical error baseline etc. wally On Monday, May 23, 2011 17:48:24 Jussi Lahtinen wrote: actuakky i have problem

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-22 Thread Jussi Lahtinen
Nice work. Code quality is good, this could be official demo for using external libraries. Only clear button is missing. Jussi On Sun, May 22, 2011 at 10:09, wally wa...@voosen.eu wrote: here is a gambas3 demo of gsl cspline. wally

[Gambas-user] One line to IDE

2011-05-22 Thread Jussi Lahtinen
Benoit, I think you forgot to add this line... I have long procedure lists, and I want to jump automatically to right position of list. FProcedureList -- SetCurrent -- line 96: gvwProc.MoveTo(iCurrent, 0) Jussi -- What

Re: [Gambas-user] Problems with gbs

2011-05-22 Thread Jussi Lahtinen
when execution ends? Jussi On Wed, Apr 6, 2011 at 20:13, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Hi! I tried to run the benchmarks. But I couldn't run gambas script. $ gbs3 -v -c ./testscript gbs: Main procedure not defined, create it OK, then I added Sub Main() and End

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-22 Thread Jussi Lahtinen
For some reason I get error message with this code; The program has returned value 127. And then to console; gsl_interp_cspline_demo: symbol lookup error: /usr/lib/libQtGui.so.4: undefined symbol: _ZN18QThreadStorageDataD1Ev Gambas 3 rev 3856 @ Ubuntu 11.04 64bit Jussi On Sun, May 22, 2011

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-22 Thread Jussi Lahtinen
Hmmm official example doesn't have this problem..? What is the difference? Jussi On Sun, May 22, 2011 at 21:43, Jussi Lahtinen jussi.lahti...@gmail.comwrote: For some reason I get error message with this code; The program has returned value 127. And then to console

Re: [Gambas-user] One line to IDE

2011-05-22 Thread Jussi Lahtinen
No, problem persist! Jussi 2011/5/22 Benoît Minisini gam...@users.sourceforge.net Benoit, I think you forgot to add this line... I have long procedure lists, and I want to jump automatically to right position of list. FProcedureList -- SetCurrent -- line 96:

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-21 Thread Jussi Lahtinen
I don't think I have enough time to do it by myself, but I'm willing to help. Jussi 2011/5/21 Benoît Minisini gam...@users.sourceforge.net Good morning Jussi, thank you for this solution. Don't you think, that a gb.gsl component would be from general interest ? Benoit, what is

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-21 Thread Jussi Lahtinen
Wally, use this version instead! I think I was bit too tired to make sense... this puts the struct to stream, no stupid hacks needed. Jussi On Sat, May 21, 2011 at 14:42, wally wa...@voosen.eu wrote: On Saturday, May 21, 2011 12:35:34 Benoît Minisini wrote: Good morning Jussi, thank

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-21 Thread Jussi Lahtinen
Free(pData) is missing from end of the code... Jussi On Sat, May 21, 2011 at 18:13, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Wally, use this version instead! I think I was bit too tired to make sense... this puts the struct to stream, no stupid hacks needed. Jussi On Sat, May 21

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-21 Thread Jussi Lahtinen
Not me, it's John! I have no need for other basic, even if I don't need GUI, Gambas is my option. Why not to do command line programs with Gambas!?? It's much easier and simpler!!! This is all you need in Gambas: Extern gsl_sf_bessel_J0(x As Float) As Float In libgsl:0 Public Sub Main() Print

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-21 Thread Jussi Lahtinen
And BTW, Gambas gives more accurate result! Gambas; -0.177596771314338 Actual;-0.177596771314338304347397013074758711071130356008509128990... Jussi On Sat, May 21, 2011 at 22:01, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Not me, it's John! I have no need for other basic, even if I

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-21 Thread Jussi Lahtinen
Gambas! http://www.wolframalpha.com/input/?i=besselj0%285%29 Jussi On Sat, May 21, 2011 at 22:24, John Spikowski supp...@scriptbasic.orgwrote: On Sat, 2011-05-21 at 22:04 +0300, Jussi Lahtinen wrote: And BTW, Gambas gives more accurate result! Gambas; -0.177596771314338 Actual

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-21 Thread Jussi Lahtinen
Just use Gambas to solve the problem! Jussi On Sun, May 22, 2011 at 00:10, John Spikowski supp...@scriptbasic.orgwrote: On Sat, 2011-05-21 at 22:27 +0300, Jussi Lahtinen wrote: Gambas! http://www.wolframalpha.com/input/?i=besselj0%285%29 Jussi Here is the result of the C version

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-20 Thread Jussi Lahtinen
() argument must be a dynamic, a static or a local variable wally On Wednesday, May 18, 2011 18:07:56 Jussi Lahtinen wrote: Seems to work (Gambas 3 rev 3850 @ Ubuntu 10.10 64bit), though, I haven't check if the results are correct. I'm out of time. Source attached. BTW. Why

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-20 Thread Jussi Lahtinen
Hmmm but then there should be also some kind of Struct@ function. Doesn't sound easy to implement! Jussi On Sat, May 21, 2011 at 02:08, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Corrected (and working) version attached. Though I'm not fully satisfied to it. Benoit, is it possible

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-18 Thread Jussi Lahtinen
On Monday, May 16, 2011 17:46:51 Jussi Lahtinen wrote: Not very easy task... Here is interpolation example in C. http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example- pr og rams.html As you can see, you need to call several functions to get what you

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-18 Thread Jussi Lahtinen
On Wednesday, May 18, 2011 17:33:31 Jussi Lahtinen wrote: Benoit keeps on amazing us! Jussi P.S. I haven't test it yet... On Wed, May 18, 2011 at 18:21, wally wa...@voosen.eu wrote: Thanks a lot ! :) wally On Wednesday, May 18, 2011 17:07:09 Benoît Minisini wrote: Hello

Re: [Gambas-user] compiling errors svn3850

2011-05-18 Thread Jussi Lahtinen
Are you sure your source folder isn't mangled somehow? Have you tried to delete source folder and do checkout again? Jussi On Wed, May 18, 2011 at 20:27, wally wa...@voosen.eu wrote: can i do anything myself or should i wait for svn version 3850 i really would like to try the gsl feature

Re: [Gambas-user] compiling errors svn3850

2011-05-18 Thread Jussi Lahtinen
and checkedout again. reconf-all, confidure, make : same error On Wednesday, May 18, 2011 19:36:13 Jussi Lahtinen wrote: Are you sure your source folder isn't mangled somehow? Have you tried to delete source folder and do checkout again? Jussi On Wed, May 18, 2011 at 20:27, wally wa

Re: [Gambas-user] Gambas3 and Gnu scientific library

2011-05-16 Thread Jussi Lahtinen
Not very easy task... Here is interpolation example in C. http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example-programs.html As you can see, you need to call several functions to get what you want. Declaring those in Gambas is OK, *except* determining interpolation type! You

Re: [Gambas-user] This Gambas 2 example does not work properly:

2011-05-11 Thread Jussi Lahtinen
I cannot reproduce with Gambas 2.23.0 @ Ubuntu 10.10 64bit. Jussi On Wed, May 11, 2011 at 06:14, nando nand...@nothingsimple.com wrote: The problem is setting a zero length string to the label For example 'make a label label1 on the form with text =B 'then run the following...

Re: [Gambas-user] This Gambas 2 example does not work properly:

2011-05-11 Thread Jussi Lahtinen
But I CAN reproduce this when using GTK+! Jussi On Wed, May 11, 2011 at 20:08, Jussi Lahtinen jussi.lahti...@gmail.comwrote: I cannot reproduce with Gambas 2.23.0 @ Ubuntu 10.10 64bit. Jussi On Wed, May 11, 2011 at 06:14, nando nand...@nothingsimple.com wrote: The problem is setting

Re: [Gambas-user] svn help needed

2011-05-08 Thread Jussi Lahtinen
I'm not svn expert, but I would just delete the mangled source code folder, and run checkout again. Jussi On Sun, May 8, 2011 at 14:57, richard terry rte...@pacific.net.au wrote: Hi list and to any svn experts I inadvertently ran my mouse over my code tree, and accidently dragged my

Re: [Gambas-user] Lost Timer1

2011-05-06 Thread Jussi Lahtinen
Would be useful indeed. Jussi On Fri, May 6, 2011 at 08:32, nando nand...@nothingsimple.com wrote: I would 'love' a locked property at design time. Many times I have clicked and moved something by accident of course. -- Original Message --- From: richard terry

Re: [Gambas-user] Signal #11 in Gambas 2

2011-05-05 Thread Jussi Lahtinen
I cannot reproduce with Gambas 2.23.0 nor with Gambas 3 rev 3831. @ Ubuntu 10.10 64bit What is your Gambas version and operating system? Jussi On Thu, May 5, 2011 at 08:43, nando nand...@nothingsimple.com wrote: How to make the 4 line example signal #11 every time: 1. Place a breakpoint on

Re: [Gambas-user] Can someone explain why this works?

2011-05-05 Thread Jussi Lahtinen
Here you changed it to one dimensional array: Text = [Just, test] So that Text[0] = Just and Text[1] = test. Jussi On Thu, May 5, 2011 at 18:59, nando nand...@nothingsimple.com wrote: The question really is how PRINT Text[i] works when it is DIM'd as a 4D array -- Original

Re: [Gambas-user] Can someone explain why this works?

2011-05-05 Thread Jussi Lahtinen
Shouldn't the error message then come from this line; Text = [Just, test] ? Jussi 2011/5/5 Benoît Minisini gam...@users.sourceforge.net Benoit, Can you explain why this works and the reasoning behind it? I would think there would be dimension issues on some lines DIM i AS

Re: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface - Unable to run ./reconf-all for a fresh SVN download

2011-05-01 Thread Jussi Lahtinen
I wonder where aclocal: unrecognized option -- `--install' comes... What would plain autoreconf --install say? Jussi On Sun, May 1, 2011 at 04:49, Ian Roper ian.ro...@eftel.com.au wrote: Greetings all, Menu Problem: I have found the same issue

Re: [Gambas-user] Base 64 question

2011-04-28 Thread Jussi Lahtinen
Maybe wait is for refreshing progress bar or similar... Jussi On Thu, Apr 28, 2011 at 17:57, Caveat gam...@caveat.demon.co.uk wrote: xml.Decode...pfft! Funny, I never would have thought to look in gb.xml for a base64 decoder! Anyhoo, did you compare xml.Decode and the routine below with

Re: [Gambas-user] Creating a Variant[] on the fly

2011-04-18 Thread Jussi Lahtinen
You can do it this way; Create class named InlineVariant, paste this in; PUBLIC FUNCTION _call(...) AS Variant[] DIM Var AS Variant DIM aVar AS NEW Variant[] FOR EACH var IN Param aVar.Add(var) NEXT RETURN aVar END Then use it like this;

Re: [Gambas-user] Potentially difficult to find error in the IDE

2011-04-16 Thread Jussi Lahtinen
Yes, there still are some situations when error messages aren't properly shown. I haven't be able to reproduce this bug consistently. To me this happens randomly and rarely. Also I don't see the quick flashes, because my project is full screen and when execution stops, focus isn't automatically

Re: [Gambas-user] Display TextLabel on Message box

2011-04-16 Thread Jussi Lahtinen
No, nothing wrong with the code. It should display given message with OK button. But I don't think you can put TextLabel on Message box. I think you need to write your own form for it. Jussi On Sat, Apr 16, 2011 at 13:02, Shane Powell sha...@supernerd.com.au wrote: On 16/04/11 18:31, Ganesh

Re: [Gambas-user] Global search replace

2011-04-16 Thread Jussi Lahtinen
It's good now, but I would like to see confirmation question, in case of accidental click on wrong button. My suggested code to FSearch: Private Sub Browse(Optional bOnlySource As Boolean, Optional bReplace As Boolean) Dim sDir As String Dim sFile As String Dim sPath As String Dim iPos

Re: [Gambas-user] Global search replace

2011-04-16 Thread Jussi Lahtinen
Hmmm... that's not good, my error... it will be asked also when you use browse feature! And I'm not sure it is very logical to have Replace, Replace all and Browse and replace... Replace all should replace all, not just in current directory. Jussi On Sat, Apr 16, 2011 at 19:45, Jussi Lahtinen

Re: [Gambas-user] Global search replace

2011-04-16 Thread Jussi Lahtinen
at 20:03, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Hmmm... that's not good, my error... it will be asked also when you use browse feature! And I'm not sure it is very logical to have Replace, Replace all and Browse and replace... Replace all should replace all, not just in current directory

Re: [Gambas-user] Global search replace

2011-04-16 Thread Jussi Lahtinen
intances, should be instances... sometimes hard to get it right Jussi On Sat, Apr 16, 2011 at 20:12, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Public Sub btnBrowseReplace_Click() If InitSearch() Then Return If Message.Question(Subst$((Are you sure you want to replace all

Re: [Gambas-user] Global search replace

2011-04-16 Thread Jussi Lahtinen
Yes, good job! Now it's clear and logical. Jussi 2011/4/17 Benoît Minisini gam...@users.sourceforge.net You mean in current file, not in current directory, do you? Oh, yes.. a lot of errors from me... And yes, it is logical to replace all only in the current file. Think about

[Gambas-user] Gambas 3 revision 3762 doesn't compile!

2011-04-13 Thread Jussi Lahtinen
Hi! Need for full output of configure and make? gtools.cpp: In function ‘void gt_drawable_fill(GdkDrawable*, gColor, GdkGC*)’: gtools.cpp:1167: error: ‘gdk_window_get_width’ was not declared in this scope gtools.cpp:1168: error: ‘gdk_window_get_height’ was not declared in this scope make[4]: ***

Re: [Gambas-user] Gambas 3 revision 3762 doesn't compile!

2011-04-13 Thread Jussi Lahtinen
Works, thanks! Jussi On Wed, Apr 13, 2011 at 19:39, Laurent Carlier lordhea...@gmail.com wrote: Le mercredi 13 avril 2011 17:14:18, Jussi Lahtinen a écrit : Hi! Need for full output of configure and make? gtools.cpp: In function ‘void gt_drawable_fill(GdkDrawable*, gColor, GdkGC

[Gambas-user] Freezing with exported classes!

2011-04-13 Thread Jussi Lahtinen
Hi! See attachment. Gambas 3 rev 3763 @ Ubuntu 10.10 64bit Jussi testi-0.0.1.tar.gz Description: GNU Zip compressed data -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key

Re: [Gambas-user] Freezing with exported classes!

2011-04-13 Thread Jussi Lahtinen
[hClass.ParentComponent / hClass.Parent] hSym = hClass.Symbols[_new] If hSym Then sSign = MergeSignature(sSign, hClass.Symbols[_new].GetNativeSignature()) Loop Jussi On Wed, Apr 13, 2011 at 22:06, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Hi! See attachment. Gambas 3 rev 3763 @ Ubuntu

Re: [Gambas-user] Gambas on Suse 11.4

2011-04-11 Thread Jussi Lahtinen
they are, as gz Steven Le samedi 09 avril 2011 à 23:56 +0300, Jussi Lahtinen a écrit : I cannot do that, this list-server does not accept large files. Compress them first, prefer *.tar.gz or *.zip. Jussi

Re: [Gambas-user] Problems with gbs

2011-04-11 Thread Jussi Lahtinen
endings is working combination (I assume it is)? Any other ideas to check? Everything else with Gambas 2 and Gambas 3 works as expected. Jussi On Wed, Apr 6, 2011 at 20:13, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Hi! I tried to run the benchmarks. But I couldn't run gambas script. $ gbs3

Re: [Gambas-user] Problems with gbs

2011-04-11 Thread Jussi Lahtinen
There certainly are some warnings... I not sure why, but doesn't seem to be serious. Jussi 2011/4/11 Benoît Minisini gam...@users.sourceforge.net Still problems with this... same errors with both Gambas 2.23 and Gambas 3 rev 3748. I tried with different character encodings and line

Re: [Gambas-user] Inconsistent _compare method usage with .Exist()

2011-04-09 Thread Jussi Lahtinen
Works, thanks! Jussi 2011/4/9 Benoît Minisini gam...@users.sourceforge.net Hi! See attachment. I get: True False False When this is expected; True False True Shouldn't be this way, am I right? Gambas 3 rev 3737 @ Ubuntu 10.10 64bit Jussi Fixed in revision

Re: [Gambas-user] Gambas on Suse 11.4

2011-04-09 Thread Jussi Lahtinen
Hmmm... You are trying to install Gambas 3 from what? Sources? Seems that Gambas will at least compile fine on OpenSuSE 9.x/10.x/11.x. Check that dependencies are satisfied. http://gambasdoc.org/help/install?enview Jussi On Sat, Apr 9, 2011 at 15:57, Steven Lobbezoo ste...@revimmo.com wrote:

Re: [Gambas-user] Gambas on Suse 11.4

2011-04-09 Thread Jussi Lahtinen
à 16:50 +0300, Jussi Lahtinen a écrit : Hmmm... You are trying to install Gambas 3 from what? Sources? Seems that Gambas will at least compile fine on OpenSuSE 9.x/10.x/11.x. Check that dependencies are satisfied. http://gambasdoc.org/help/install?enview Jussi On Sat, Apr 9

Re: [Gambas-user] Gambas on Suse 11.4

2011-04-09 Thread Jussi Lahtinen
I cannot do that, this list-server does not accept large files. Compress them first, prefer *.tar.gz or *.zip. Jussi -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most

Re: [Gambas-user] Editor-preferences Q)

2011-04-08 Thread Jussi Lahtinen
Check preferences interface and preferences style. Jussi On Fri, Apr 8, 2011 at 11:11, richard terry rte...@pacific.net.au wrote: Hi List, Can't see anywhere now to set the font size in the preferences editor settings. Am I missing something? Installed gambas on a new machine and

[Gambas-user] Inconsistent _compare method usage with .Exist()

2011-04-08 Thread Jussi Lahtinen
Hi! See attachment. I get: True False False When this is expected; True False True Shouldn't be this way, am I right? Gambas 3 rev 3737 @ Ubuntu 10.10 64bit Jussi Inconsistency-0.0.1.tar.gz Description: GNU Zip compressed data

Re: [Gambas-user] Global reading of events

2011-04-07 Thread Jussi Lahtinen
' is undefined and a lot of error lines. As far as I remember, it used to run flawlessly before. But I haven't bothered to compile a new version since 2.20 as it has been running fine for me ;-) Rolf Am 06.04.2011 19:05, schrieb Jussi Lahtinen: Your code seems to work with my system

Re: [Gambas-user] gambas2 - gambas3

2011-04-07 Thread Jussi Lahtinen
I don't know if there is anything else than this: http://www.gambasdoc.org/help/doc/gb2togb3?v3 Jussi On Thu, Apr 7, 2011 at 23:01, tobias tobiasb...@web.de wrote: hi developers, i redirect another question: is there a list that tells specifically what classes are removed/added/changed

<    7   8   9   10   11   12   13   14   15   16   >