Re: [Gambas-user] Better error message suggestion

2008-06-20 Thread Ron
Hi, If you return a value within a subroutine where you forgot to specify the return value type for, you get the following error: "Cannot return a value in a procedure.." -- PUBLIC SUB GetDeviceType() ... RETURN something END -- It's maybe more clear to give something like "Return type

[Gambas-user] Bug in database manager

2008-06-20 Thread Ron
Hi, If you have defined a field type string lenght say 32. And you click on the length cell and fill in 256, you get an error "The lenght must be greater than 1 and lower than 255" Thats fine, but you end up in a loop where you can't get out to correct your mistake. Regards, Ron. ---

Re: [Gambas-user] Music.Length

2008-06-20 Thread Stefano Palmeri
Il venerdì 20 giugno 2008 13:25:03 Stefano Palmeri ha scritto: > > If you have "mp3info" installed in your system you can get the length: > > SHELL "mp3info -x " & "pathtofile.mp3" & " | grep 'Length:' | awk '{print > $2}'" TO sString > > Stefano > Little fix to avoid problems if a mp3 file name or

Re: [Gambas-user] error calling external function from c library

2008-06-20 Thread Marcos Antonio Pandolfo Jr
Hi Everybody Well, I resolv my problem !! I realized that there is one more variable in this function that should be a pointer And the lenght of this pointer must be informed in the call of function. So... Thanks so much for the help and congratulations to everyone Abraços Marc

Re: [Gambas-user] How to make your gambas project comp ile using autoconf tools

2008-06-20 Thread Laurent Carlier
Le Friday 20 June 2008 13:49:59 Ron, vous avez écrit : > > > > Laurent, don't you think it should be better that the default > > destination of the executable was /usr/local/bin? > > > > /sbin often is not in the $PATH of normal users. > > > > My little opinion :-) > > > > Stefano > > /sbin is rese

Re: [Gambas-user] How to make your gambas project compile using autoconf tools

2008-06-20 Thread Ron
Stefano Palmeri schreef: > Il venerdì 20 giugno 2008 12:25:08 Laurent Carlier ha scritto: > >> Le Friday 20 June 2008 10:17:01 Stefano Palmeri, vous avez écrit : >> >>> Il giovedì 19 giugno 2008 23:52:01 M0E Lnx ha scritto: >>> One minor problem though... I just did my applicati

Re: [Gambas-user] How to make your gambas project compile using autoconf tools

2008-06-20 Thread Stefano Palmeri
Il venerdì 20 giugno 2008 12:25:08 Laurent Carlier ha scritto: > Le Friday 20 June 2008 10:17:01 Stefano Palmeri, vous avez écrit : > > Il giovedì 19 giugno 2008 23:52:01 M0E Lnx ha scritto: > > > One minor problem though... I just did my application with this > > > after some testing... here are t

Re: [Gambas-user] Music.Length

2008-06-20 Thread Stefano Palmeri
Il venerdì 20 giugno 2008 13:09:34 Patrik Karlsson ha scritto: > 2008/6/20 Benoit Minisini <[EMAIL PROTECTED]>: > > I don't know why apparently the length of the audio is not encoded in the > > file header... > > Ok, I see, at http://www.mp3-tech.org/programmer/frame_header.html I found > > "There

Re: [Gambas-user] Music.Length

2008-06-20 Thread Benoit Minisini
On vendredi 20 juin 2008, Patrik Karlsson wrote: > 2008/6/20 Benoit Minisini <[EMAIL PROTECTED]>: > > I don't know why apparently the length of the audio is not encoded in the > > file header... > > Ok, I see, at http://www.mp3-tech.org/programmer/frame_header.html I found > > "There is no main fil

Re: [Gambas-user] Music.Length

2008-06-20 Thread Patrik Karlsson
2008/6/20 Jaap Cramer <[EMAIL PROTECTED]>: > In the GambasDoc is an example on how to get information of a *.wav > file, including duration. See: http://gambasdoc.org/help/lang/read?show > > Maybe useful? Yes it might, thank you! Maybe I just convert the mp3s to wav since it's only "internal" file

[Gambas-user] Tableview select row?

2008-06-20 Thread Stefan Miefert
How can i select a specified row havening the first field a specified value? I use a public sub TBLview_Data(Row as integer, Column as integer) RESdata.MoveTo(Row) TBLview.Data.text = RESdata[RESdata.fields][column].name] End How can I set a entry as selected?!? -

Re: [Gambas-user] Music.Length

2008-06-20 Thread Patrik Karlsson
2008/6/20 Benoit Minisini <[EMAIL PROTECTED]>: > I don't know why apparently the length of the audio is not encoded in the file > header... Ok, I see, at http://www.mp3-tech.org/programmer/frame_header.html I found "There is no main file header in an MPEG audio file. An MPEG audio file is built u

Re: [Gambas-user] Music.Length

2008-06-20 Thread Jaap Cramer
In the GambasDoc is an example on how to get information of a *.wav file, including duration. See: http://gambasdoc.org/help/lang/read?show Maybe useful? On Fri, 2008-06-20 at 12:41 +0200, Benoit Minisini wrote: > On vendredi 20 juin 2008, Benoit Minisini wrote: > > On vendredi 20 juin 2008, Pat

Re: [Gambas-user] Music.Length

2008-06-20 Thread Benoit Minisini
On vendredi 20 juin 2008, Benoit Minisini wrote: > On vendredi 20 juin 2008, Patrik Karlsson wrote: > > Hello, I'm about to port an old Delphiapp to a nicer environment and > > I'm looking at Gambas to do the work, Gambas is realy nice! > > > > One function I used in Delphi was to get the length of

Re: [Gambas-user] How to make your gambas project compile using autoconf tools

2008-06-20 Thread Laurent Carlier
Le Friday 20 June 2008 10:17:01 Stefano Palmeri, vous avez écrit : > Il giovedì 19 giugno 2008 23:52:01 M0E Lnx ha scritto: > > One minor problem though... I just did my application with this > > after some testing... here are the results > > > > running configure without arguments does not install

Re: [Gambas-user] Music.Length

2008-06-20 Thread Benoit Minisini
On vendredi 20 juin 2008, Patrik Karlsson wrote: > Hello, I'm about to port an old Delphiapp to a nicer environment and > I'm looking at Gambas to do the work, Gambas is realy nice! > > One function I used in Delphi was to get the length of the sound > played in TMediaPlayer, since I would like thi

Re: [Gambas-user] Difficulty interpreting listview documentation

2008-06-20 Thread Benoit Minisini
On jeudi 19 juin 2008, richard terry wrote: > I'm pretty cretinous at interpreting docs. > > e.g: > > DIM hListView AS ListView > DIM hListViewItem AS .ListViewItem > > hListViewItem = hListView [ Key AS String ] > > Just how does one use .ListViewItem, because if you copy and past the > above exa

[Gambas-user] Music.Length

2008-06-20 Thread Patrik Karlsson
Hello, I'm about to port an old Delphiapp to a nicer environment and I'm looking at Gambas to do the work, Gambas is realy nice! One function I used in Delphi was to get the length of the sound played in TMediaPlayer, since I would like things done after 80%, 90%... Music.Pos tells me where I am,

Re: [Gambas-user] How to make your gambas project compile using autoconf tools

2008-06-20 Thread Stefano Palmeri
Il giovedì 19 giugno 2008 23:52:01 M0E Lnx ha scritto: > One minor problem though... I just did my application with this > after some testing... here are the results > > running configure without arguments does not install the binary to the > system > > running it with the --prefix=/usr argument re

Re: [Gambas-user] Search not finding commented out text

2008-06-20 Thread Stefano Palmeri
Il venerdì 20 giugno 2008 01:06:01 richard terry ha scritto: > I sometimes comment out a line whilst developing, meaning to come back to > it. I've noticed that the search function then doesn't find the text. > > Is this intentional or could it be an option to search within commented > text as well