Re: [Gambas-user] inheritance problems

2012-02-03 Thread nando
PUBLIC myint is only exactly one variable. It's public. -- Original Message --- From: Shane Powell To: nand...@nothingsimple.com, mailing list for gambas users Sent: Sat, 04 Feb 2012 17:16:17 +1100 Subject: Re: [Gambas-user] inheritance problems > On 04/02/12 15:57, nando wrote

Re: [Gambas-user] inheritance problems

2012-02-03 Thread Shane Powell
On 04/02/12 15:57, nando wrote: How can it be empty AND have elements in it? -- Original Message --- From: Shane Powell To: mailing list for gambas users Sent: Sat, 04 Feb 2012 12:05:24 +1100 Subject: [Gambas-user] inheritance problems I have this in my program class 1 pu

Re: [Gambas-user] inheritance problems

2012-02-03 Thread nando
How can it be empty AND have elements in it? -- Original Message --- From: Shane Powell To: mailing list for gambas users Sent: Sat, 04 Feb 2012 12:05:24 +1100 Subject: [Gambas-user] inheritance problems > I have this in my program > > class 1 >public array of class 2 > >

Re: [Gambas-user] Pointer-Memory Question

2012-02-03 Thread nando
Is this a possible reason? Write #strm moves the "pointer" to 4 past where it was first set. Read is reading a SINGLE immediately after what you wrote You need to seek backwards 4 places ?? -Fernando -- Original Message --- From: Wally To: Gambas-user@lists.sourceforge.net Sent:

[Gambas-user] inheritance problems

2012-02-03 Thread Shane Powell
I have this in my program class 1 public array of class 2 class 2 inherits class 1 access array of class 2 in class 1 but array is empty but i know it has elements in it what am i doing wrong ? -- Tr

Re: [Gambas-user] Help for Image and Picture Colors

2012-02-03 Thread tobias
On 04.02.2012 01:12, tobias wrote: > Hi, > > I really need help. There's a lot of work with colors in Images and > Pictures in a project and between these classes. This is generally > speaking as follows: I have a class which has an 8*8px Image which is > manipulated (due to the easy of accessing p

[Gambas-user] Help for Image and Picture Colors

2012-02-03 Thread tobias
Hi, I really need help. There's a lot of work with colors in Images and Pictures in a project and between these classes. This is generally speaking as follows: I have a class which has an 8*8px Image which is manipulated (due to the easy of accessing pixels directly). Using a property of my cl

[Gambas-user] Last in group event handler called as function

2012-02-03 Thread tobias
hi, consider the following (where "PickColor" is the event name of a group of ToogleButton controls) Public Sub Form_Open() PickColor_Click() End Public Sub PickColor_Click() Print Last End since the event handlers are just subroutines one may call them as every other sub. i can imagine

[Gambas-user] DataSource & DataBrowser problem

2012-02-03 Thread John Rose
I've looked at the Database example and I still don't understand how to use the DataSource & DataBrowser controls. My DataSourceCountry control has its Table property set to country (one of the tables in the Test.db SQLite3 database in the Data directory of the attached Test project. In the Form_

Re: [Gambas-user] I need your help with Processes

2012-02-03 Thread M. Cs.
Success! I'm going to share it with you: Public $hProcess As Process Private $sText As String Public Sub Main() Dim fajl As File Dim i As Integer $hProcess = Exec ["ftp", "ftp.mysite.com"] For Input Output As "Process" Run_command("cd ./public_html") Repeat Wait 0.1 Until InStr($sTex

Re: [Gambas-user] I need your help with Processes

2012-02-03 Thread M. Cs.
I've managed to decrease the problem. I can create a ~/.netrc and I can place all the required data into it. So I'm able to reach the ftp server with Run_command("ftp ftp.mysite.com") , and I'm in. But how can I execute something inside that very same process? I don't understand that bubbling conce

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Rolf Schmidt
Hello Benoît > Unix time stamp is a number of seconds since 1/1/1970. > > So to convert a Gambas date to Unix timestamp: > > Print DateDiff(CDate("1/1/1970"), Now, gb.Second) > > And to convert an Unix timestamp to Gambas date: > > Print DateAdd(CDate("1/1/1970"), TimeStamp, gb.Second)

Re: [Gambas-user] I need your help with Processes

2012-02-03 Thread Jussi Lahtinen
> Repeat >wait 1 > Until checker=TRUE > checker=FALSE > After every Run_command() > Maybe you want to include that into Run_command(), that would make the code tidier. Also when wait is in loop, I think one second is too long time, if there is multiple commands to execute... > My problem i

[Gambas-user] dirs and files structure of a Gambas project

2012-02-03 Thread Fabián Flores Vadell
Hi. Exists any spec for the structure of directories and files (and its meaning) of a Gambas project? What I want is to know all conditions that the compiler and interpreter expect, in order to call them from the command line. I need to know too any information about config files or data from th

Re: [Gambas-user] I need your help with Processes

2012-02-03 Thread M. Cs.
Thanks! I've tried to add: Repeat wait 1 Until checker=TRUE checker=FALSE After every Run_command() and Public Sub Process_Read() Dim sStr As String Read #$hProcess, sStr, -256 answers.Add(sStr) checker=TRUE End My problem is how to solve insertion of user name and password as well a

Re: [Gambas-user] I need your help with Processes

2012-02-03 Thread Jussi Lahtinen
Hmmm... seem like you need to wait for the execution of the commands. Try: Public Sub Main() > Dim fajl As File > Dim tovabb As Boolean > Dim i As Integer > $hProcess = Exec ["bash", "--noediting"] For Input Output As "Process" > tovabb = Run_command("ftp") > tovabb = Run_command("open") >

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Benoît Minisini
Le 03/02/2012 15:48, Rolf Schmidt a écrit : > > @Ron. > Your Module is excellent, but I can't belief, that a programming > language for the UNIX-environment isn't able to handle timestamps only > after "reinventig the wheel". > I think, we shoud ask Benoit why he didn't implement such a function or

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Rolf Schmidt
Hi Rolf, hi Ron. is there a function which allows to convert an unix timestamp into the appropriated date/time in Gambas3? If, how is it called and how to use. >> >>> Take a look at this one: >>> http://gambasdoc.org/help/lang/stat?v3 >>> file.stat should deliver a file date. O

Re: [Gambas-user] Pointer-Memory Question

2012-02-03 Thread Wally
sure :) thx On Friday, February 03, 2012 15:42:25 Benoît Minisini wrote: > Le 03/02/2012 15:13, Wally a écrit : > > What is wrong in this code ? > > > > Public Sub Button1_Click() > > > > Dim f, r As Single > > Dim pPtr As Pointer > > Dim strm As Stream > > > >f = 1 / 3 > > > >pPtr

Re: [Gambas-user] Pointer-Memory Question

2012-02-03 Thread Benoît Minisini
Le 03/02/2012 15:13, Wally a écrit : > > What is wrong in this code ? > > Public Sub Button1_Click() > > Dim f, r As Single > Dim pPtr As Pointer > Dim strm As Stream > >f = 1 / 3 > >pPtr = Alloc(1, 4) 'alloc 4 * 1 Byte for single > >strm = Memory pPtr For Read Write > >

[Gambas-user] Pointer-Memory Question

2012-02-03 Thread Wally
What is wrong in this code ? Public Sub Button1_Click() Dim f, r As Single Dim pPtr As Pointer Dim strm As Stream f = 1 / 3 pPtr = Alloc(1, 4)'alloc 4 * 1 Byte for single strm = Memory pPtr For Read Write Write #strm, f As Single r = Read #strm As S

[Gambas-user] ValueBox value validation

2012-02-03 Thread John Rose
This is fixed in Gambas3 revision #4445. I've just tried recording that on the Gambas Issues webpage and it's returned a webpage showing 'Google' with '400 that's an error' followed by 'Your client has issued a malformed or illegal request. That’s all we know.'. Only thing I can think of is that Ub

[Gambas-user] IDE displays 'must abort' popup

2012-02-03 Thread John Rose
This bug has been fixed in Gambas3 revision #4445. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL

Re: [Gambas-user] Gambas Preprocessor

2012-02-03 Thread GMail
On Fri, 2012-02-03 at 11:00 +0100, Wally wrote: > Where can i find information aboy gambas preprocessor commands ? > #IF, #ELSE, #EndIf i found, whats about e.g. #define ? > The help file is explicit. I, too, would like to see a bit more freedom. But what is there, is there. "Preprocessor Expre

[Gambas-user] I need your help with Processes

2012-02-03 Thread M. Cs.
Public $hProcess As Process Private $sText As String Private answers As New String[] Public Sub Main() Dim fajl As File Dim tovabb As Boolean Dim i As Integer $hProcess = Exec ["bash", "--noediting"] For Input Output As "Process" tovabb = Run_command("ftp") tovabb = Run_command("open")

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Randall Morgan
I haven't tried it but try passing the nix time stamp to the secods parameter of the date/time function. I seem to recall someone saying this would do the trick... Set the minutes, hours ect. to 0. On Fri, Feb 3, 2012 at 1:42 AM, Ron wrote: > Just google for gambas calculate get unix time > >

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Rolf-Werner Eilert
Am 03.02.2012 10:32, schrieb Rolf Schmidt: > Hi "another Rolf" > >>> is there a function which allows to convert an unix timestamp into the >>> appropriated date/time in Gambas3? >>> >>> If, how is it called and how to use. > >> Take a look at this one: >> http://gambasdoc.org/help/lang/stat?v3 >>

[Gambas-user] Gambas Preprocessor

2012-02-03 Thread Wally
Where can i find information aboy gambas preprocessor commands ? #IF, #ELSE, #EndIf i found, whats about e.g. #define ? -- Try before you buy = See our experts in action! The most comprehensive online learning library for

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Ron
Just google for gambas calculate get unix time Regards, Ron_2nd. > Hi "another Rolf" > >>> is there a function which allows to convert an unix timestamp into the >>> appropriated date/time in Gambas3? >>> >>> If, how is it called and how to use. >> Take a look at this one: >> http://gambasdoc.org/

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Rolf Schmidt
Hi "another Rolf" >> is there a function which allows to convert an unix timestamp into the >> appropriated date/time in Gambas3? >> >> If, how is it called and how to use. > Take a look at this one: > http://gambasdoc.org/help/lang/stat?v3 > file.stat should deliver a file date. Or did I get you