Is there a way to check if an event is going to trigger in advance? My
startup procedure (GUI.Main) allows two event procedures to trigger,
Render.Screen_Draw (SDL) and Network.UDP_Read (UDP socket). When
Screen_Draw triggers I need to know if there are pending UDP packets so
I can avoid render
Le 11/03/2012 08:34, Ian Haywood a écrit :
> 2012/3/11 Benoît Minisini:
>
>> - If there is a _get() method that takes an integer, and if there is a
>> Count property, then I can display the object like an array.
>>
>> - If there is a _get() method that takes a string, if there is a Count
>> propert
Le 16/03/2012 22:54, François Gallo a écrit :
> Le 16/03/2012 21:40, Randall Morgan a écrit :
>> Would be nice if you could add this info to the install doc or wiki
>
> Good idea. I'm going to do that right now.
>
The documentation page for installing Gambas on FreeBSD is done.
http://gambasdoc.
It is good for me :)
I like to read strings in that input format.
2012/3/16 Jussi Lahtinen
> > Is INPUT more useful now? I don't know, I still never use this
> instruction!
> >
>
> Same problem, I haven't use it. But now I can think usage for it.
>
> Would be nice to have opinions from other peo
> Is INPUT more useful now? I don't know, I still never use this instruction!
>
Same problem, I haven't use it. But now I can think usage for it.
Would be nice to have opinions from other people. Anyone..?
Jussi
--
This
To clear out more...
This is allowed:
IIf(1 = 2, function1(arg), function2(arg))
And functions 1 and 2 can return integer, string, etc.
But this is *not* allowed:
IIf(1 = 2, function1, function2)
So, IIf cannot take pointer to function as argument.
Jussi
On Sat, Mar 17, 2012 at 00:12, Emi
Le 15/03/2012 14:05, Jussi Lahtinen a écrit :
> I think PRINT should use CStr... but I wonder how many applications this
> would broke.
> Though, I think that is easy to fix if it happens...
>
> Jussi
>
PRINT will keep using Str$() - I don't want to break every Gambas
application.
But now INPUT
Le 15/03/2012 14:05, Jussi Lahtinen a écrit :
> I think PRINT should use CStr... but I wonder how many applications this
> would broke.
> Though, I think that is easy to fix if it happens...
>
> Jussi
>
PRINT will keep using Str$() - I don't want to break every Gambas
application.
But now INPUT
They should work, since it is strings you are passing to IIf.
2012/3/16 Bruce Bruen
> On Fri, 2012-03-16 at 22:42 +0100, Benoît Minisini wrote:
> > Le 16/03/2012 22:21, Emil Lenngren a écrit :
> > > Yeah, I alreadyd did that ^^
> > > It says "a" is an integer even though it should be a string...
On Fri, 2012-03-16 at 22:42 +0100, Benoît Minisini wrote:
> Le 16/03/2012 22:21, Emil Lenngren a écrit :
> > Yeah, I alreadyd did that ^^
> > It says "a" is an integer even though it should be a string...
> > I think it is not really meant that you should be able to pass functions
> > into IIf...
>
Looks good :)
2012/3/16 Benoît Minisini
> Le 16/03/2012 22:21, Emil Lenngren a écrit :
> > Yeah, I alreadyd did that ^^
> > It says "a" is an integer even though it should be a string...
> > I think it is not really meant that you should be able to pass functions
> > into IIf...
> >
> > /Emil
>
Le 16/03/2012 21:40, Randall Morgan a écrit :
> Would be nice if you could add this info to the install doc or wiki
Good idea. I'm going to do that right now.
>
>
> On Fri, Mar 16, 2012 at 10:59 AM, Demosthenes Koptsis<
> demosthen...@gmail.com> wrote:
>
>> Very nice news indeed !!!
>>
>> On 03/
Le 16/03/2012 22:21, Emil Lenngren a écrit :
> Yeah, I alreadyd did that ^^
> It says "a" is an integer even though it should be a string...
> I think it is not really meant that you should be able to pass functions
> into IIf...
>
> /Emil
>
In revision #4557, I have forbidden the use of Class or
Yeah, I alreadyd did that ^^
It says "a" is an integer even though it should be a string...
I think it is not really meant that you should be able to pass functions
into IIf...
/Emil
2012/3/16 Randall Morgan
> Sorry, I misunderstood where your error was.
>
> But try this, you may find the resul
Sorry, I misunderstood where your error was.
But try this, you may find the results interesting
Public Function f1(a As Integer)
Print a; TypeOf(a)
End
Public Function f2(a As String)
a = "a string" 'Line 5
Print a; TypeOf(a)
End
Public Sub Main()
Dim i As Integer
For i = 0 To -1
What do you mean? None of f1 or f2 has a return type...
/Emil
2012/3/16 Randall Morgan
> I suspect that since you are declaring a return type on your functions that
> the functions default to an integer return type. Try it and see...
>
> On Fri, Mar 16, 2012 at 11:20 AM, Emil Lenngren >wrote:
Would be nice if you could add this info to the install doc or wiki
On Fri, Mar 16, 2012 at 10:59 AM, Demosthenes Koptsis <
demosthen...@gmail.com> wrote:
> Very nice news indeed !!!
>
> On 03/16/2012 06:07 PM, François Gallo wrote:
> > Hello the Gambas community.
> >
> > I declare you that Gamb
I suspect that since you are declaring a return type on your functions that
the functions default to an integer return type. Try it and see...
On Fri, Mar 16, 2012 at 11:20 AM, Emil Lenngren wrote:
> Hi. I wonder if this syntax is intended to be allowed ;)
>
> Public Function f1()
> Print "f1!"
Hi. I wonder if this syntax is intended to be allowed ;)
Public Function f1()
Print "f1!"
End
Public Function f2()
Print "f2!"
End
Public Sub Main()
IIf(True, f1, f2)()
End
It prints out "f1!" ...
But in this code:
Public Function f1(a As Integer)
End
Public Function f2(a As String)
a
help
for
message
Good Night Lord
Benoît Minisini
I address him respectfully
I have an idea to see if you can
A. - If possible make igambas programming and php code to
transfer as performed RadPHP suite.
2.-or possibly make igambas JavaScript framework such astransportation to si
I'm using:
gcc --version
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
On this machine. I think I hav
Very nice news indeed !!!
On 03/16/2012 06:07 PM, François Gallo wrote:
> Hello the Gambas community.
>
> I declare you that Gambas is officially ported to the
> FreeBSD Operating System.
>
> Install all required packages in order to compile it.
>
> "The gb.qt4 component crashes for OpenGL. Why?"
Le 16/03/2012 18:35, Randall Morgan a écrit :
> I am aware of the warnings. But needed to check in my code so I would have
> access to it from another location. You had told me before it was ok to
> check in code that contained errors or was incomplete. I then got
> distracted and also was hoping t
I am aware of the warnings. But needed to check in my code so I would have
access to it from another location. You had told me before it was ok to
check in code that contained errors or was incomplete. I then got
distracted and also was hoping to hear back from on some of my questions.
But never di
Le 16/03/2012 04:14, Randall Morgan a écrit :
> Hi,
>
> I am writing a small test suit and need to tell is the result I got back
> from a function is an array of some type.
> Does anyone have a solution for this?
>
> Thanks
>
You can do like that:
Dim Result As Variant
Result = T
Hello the Gambas community.
I declare you that Gambas is officially ported to the
FreeBSD Operating System.
Install all required packages in order to compile it.
"The gb.qt4 component crashes for OpenGL. Why?"
On *BSD systems, the directory which contains OpenGL
headers is into the X11R6 'packa
You can see the code in the gb.gsl/test folder. However that code does not
contain the code I am working on at the moment. I have not committed it
yet.
What I am trying to accomplish is to create a test framework that can be
used for any type of data or object. So that the general framework is
gen
Hi,
It's probably worth putting in a check for TypeOf(my_var) = gb.Object
(16) before doing the Is Array check...
(From the documentation):
Expression type
Return value
NULL
gb.Null=15
Boolean
gb.Boolean=1
Byte
gb.Byte=2
Short
gb.Short=3
Integer
gb.Integer=4
Long
gb.Long=5
The line containing the if statement. It is the "Is" keyword that fail
somehow If I change it to = or some other expression I get results I
would expect.
-> if expected Is Array Then ---> Error: "Expected Object got boolean"
I am already using TypeOf to test the type of the results. What
That kind of code should work, I think... On what line is the error?
2012/3/16 Randall Morgan
> The code is for a test framework. I am currently on the wrong machine to
> send the code. But it's something like this:
>
> Dim result As Variant
> Dim expected As Variant
> Dim i As Integer
> Dim isE
The code is for a test framework. I am currently on the wrong machine to
send the code. But it's something like this:
Dim result As Variant
Dim expected As Variant
Dim i As Integer
Dim isEqual As Boolean
result = myFunction() As Variant
if Typeof(result) = Typeof(expected) Then
isEqual = Tru
How does your code look like?
A boolean is certainly not an array... :)
/Emil
2012/3/16 Randall Morgan
> That works as long as a is an array. But it a is an a boolean then I get an
> error "Object expected but got boolean" or float, ect...
>
> I too thought it should work that way. Mybe there i
That works as long as a is an array. But it a is an a boolean then I get an
error "Object expected but got boolean" or float, ect...
I too thought it should work that way. Mybe there is a bug in the Gambas or
my code?
On Fri, Mar 16, 2012 at 3:34 AM, Emil Lenngren wrote:
> Dim a As New String[
Dim a As New String[]
Print a Is Array
should work I think...
2012/3/16 Randall Morgan
> Hi,
>
> I am writing a small test suit and need to tell is the result I got back
> from a function is an array of some type.
> Does anyone have a solution for this?
>
> Thanks
>
> --
> If you ask me if it c
Hi Matti,
You are right, but only if the photo is as large as the PictureBox or
smaller. If it's larger, the photo's center will be shown, but at its
original size, i. e. you will see part of the photo only.
After some fiddling, my father and I found a formular based on the size
of the Picture
35 matches
Mail list logo