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
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
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
>
>
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:
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
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
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
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
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_
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
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
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)
> 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
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
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
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")
>
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
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
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
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
>
>
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
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
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
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
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")
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
>
>
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
>>
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
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/
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
30 matches
Mail list logo