May be you have to make Clipboard.Copy() before to Paste?
hth
Simonart
Le 13/04/2013 17:32, Fabien Bodard a écrit :
> I don't know...
> Le 13 avr. 2013 14:24, "Ru Vuott" a écrit :
>
>> Thank you Fabien,
>>
>> but if I want to use "clipboard.Paste()" Gambas function, after simply
>> highlighted an
Hi,
With Gambas2 v2.21 it works exactly as you want!
Tested with Label and TextBox
regards
Le 08/03/2011 20:11, k p a écrit :
>> When doing the following:
>> TextLabel1.Text = "i"& TextBox1.Text& ""& " iEQU"& ""& "0"
>>
>> I expect a string in a text box, which I get.
>> However the l
Of course you are right!
The Joueur() instances of my class are quite big, but
nowadays the RAM is gigantic!
this is surely a reminiscence of my "economy of RAM" syndrom
coming from the Amiga's days (512KK)
so, Forget it!
regards
Dominique Simonart
Le 09/01/2011 23:06, Benoît Minisini a écr
Hi,
Often I've to write things like that:
With Joueur(0)
If Joueur(2).Nombre(Joueur(2).C1) < .Nombre(.C1) Then ...
...
End With
As I already have a With Joueur(0) activated I cannot define
another one for Joueur(2).
It would be nice to have the possibility to define temporary
Alias na
Le 19/11/2010 14:58, Fabien Bodard a écrit :
> 2010/11/19 Demosthenes Koptsis:
>> ok!
>>
>> i was cofused from two things
>>
Hi all,
I tend to get a little confused too!
Are these assumptions correct?
If array notation is on Variable name, array is STATIC
If array notation is on Data type, array
Le 22/10/2010 16:33, Fabien Bodard a écrit :
> 2010/10/22 Demosthenes Koptsis:
>> i use Gambas 2.21 on Ubuntu 10.04.
>>
>> i test the project at 32bit and 64 bit Pcs and produce the same behavior
>> (huge executable)
>>
>> this is the project
>> http://www.mediafire.com/file/0lq893dt8yo02l3/Gambas-
Hi,
Just add "As ClickEventName"
regards
Le 12/05/2010 17:18, craf a écrit :
>
> Hi.
>
> I would like to know how to associate a click event to a button control
> created at runtime.
> I know the code to create the button is:
>
> Dim myButton as new Button (Fmain)
>
> but what I need is to creat
ll can not permit me to say more. Please, if
someone could correct me, thanks in advance to do it!
regards,
Dominique Simonart
Le 25/01/2010 00:17, Simonart Dominique a écrit :
>
> Hi,
> I've just a crude idea and know nothing more on this subject!
> If you assume that each v
Hi,
I've just a crude idea and know nothing more on this subject!
If you assume that each value in your big array is a color
value instead of an integer, may be you can find some
graphic effect wich simulate your algorithm.
It seems to me that it's like to find an intermediate color
between 2 ot
Hi,
Len() function is based on one-byte character, but some
characters need 2 bytes code, like the german's you mentionned.
Use the String class methods and all will works as you expected
HTH
Dominique Simonart
Norarg a écrit :
> hi,
>
> I get a bit strange results from the LEN()-function.
>
Steven James Drinnan a écrit :
> As far as I know just one by one. Write one line by one line.
>
> ss[0] = "jkl"
> ss[1] = "9080|"
> ss[2] = "jim"
> ss[3] = "ren"
> ss[4] = "mu8"
>
> I may be wrong and others can give there 2 cents worth.
>
> Steven
>
>
> On Thu, 2009-06-25 at 15:40 -0700, Swe
Frank Cox a écrit :
> On Thu, 30 Apr 2009 14:00:06 -0500
> M0E Lnx wrote:
>
>
>> I need a way to take a number, say an integer and round it up to the
>> nearest increment of 250. This may imply decreasing or increasing the
>> number.
>
> Divide the number by 250.
>
> If the result is > x.5 then
Benoît Minisini a écrit :
>> Benoît Minisini a écrit :
Hi,
Gambas 2.12 with QT
I had a prog that worked well in Gambas 2.11 but now it
doesn't work correctly for all the images with transparent
areas.
Here is a very short illustration of the problem
Benoît Minisini a écrit :
>> Hi,
>>
>> Gambas 2.12 with QT
>>
>> I had a prog that worked well in Gambas 2.11 but now it
>> doesn't work correctly for all the images with transparent
>> areas.
>> Here is a very short illustration of the problem
>>
>> DIM PicSac AS Picture
>> DIM PicCase AS Object[]
Hi,
Gambas 2.12 with QT
I had a prog that worked well in Gambas 2.11 but now it
doesn't work correctly for all the images with transparent
areas.
Here is a very short illustration of the problem
DIM PicSac AS Picture
DIM PicCase AS Object[]
Dim i AS Integer
PicCase.Resize(2)
FOR i = 0 TO 1
Simonart Dominique a écrit :
> jbskaggs a écrit :
>> I need to know how to either create an object to where I can attach a list of
>> variables or how to give myself the ability to do the following:
>>
>> lets say I want to name my special object: ball.
>>
>&
jbskaggs a écrit :
>
> I need to know how to either create an object to where I can attach a list of
> variables or how to give myself the ability to do the following:
>
> lets say I want to name my special object: ball.
>
> I want to be able to create special properties for that ball I can acce
vlahonick vlahonick a écrit :
>
> hello all :D
>
> i am trying to create a program that calculates a number from the binary
> numeral system and gives a result
>
> example of what the program will do :
>
> we have the number (at binary numeral system) 10011
>
> so to have result we have to do
Ron_1st a écrit :
> On Tuesday 14 April 2009, Simonart Dominique wrote:
>> PUBLIC SUB Button1_Click()
>> DIM S AS String
>> DIM i, y, N AS Integer
>>
>> S = TextArea1.Text
>> y = Len(S)
>> if y = 0 THEN RETURN
>> N = 0
>&g
vlahonick vlahonick a écrit :
>
> hello all :D
>
> i am trying to create a program that calculates a number from the binary
> numeral system and gives a result
>
> example of what the program will do :
>
> we have the number (at binary numeral system) 10011
>
> so to have result we have to do
Hi Doriano,
> I agree to everything you wrote.
I thought the same about what you wrote! :)
>... Then, recalling to my mind
>the way a person shuffles cards by hand, I tried to
express another
>algorithm, which in a certain way lets you to adjust the
randomness: a
>person can shuffle very
l
> count: ", listview1.Count
> TRY listview2.add(c, listview1.item.text)
> NEXT
>
> When the counter i reaches Listview1.Count -1 it gives an error and does
> not write the last record! I have compensated by writing an extra dummy
> record to the data file- but h
Hi,
jbskaggs a écrit :
> Okay I thought this was worked out but its still not working- I always end up
> losing the last two list items.
>
> Here is the console output from my print statements:
> This first list is printing i, a from this command SWAP myArray[i],
> myArray[a]
>
> 21 21
> 20
RINT myArray[ii]
> FOR jj = 0 TO 9 '199
> IF myArray[ii] = jj THEN
> IF checkArray.Exist(jj) = FALSE THEN
> checkArray.Add(jj)
> ELSE
> Message.Error("Error!")
> RETURN
> ENDIF
> ENDIF
> NEXT
> NEXT
>
>
> PRINT checkArray.Count
2 6 3 8
>> which is wrong!
>> but if you run the backward FOR NEXT you will get:
>> 5 1 9 6 0 3 8 7 2 4
>> which is right!
>>
>> May be you did not notice it because 200 is long enough
>> before you get the same number twice, and before you remark
>> th
twice, and before you remark
that some are missing?
Dominique Simonart
>
> Simonart Dominique wrote:
>> Hi,
>>
>> Hmm, did you run exactly this code? If so, there is
>> something wrong with the second FOR NEXT loop
>>
>> jbskaggs a écrit :
>>>
Simonart Dominique a écrit :
> Hi,
>
> Hmm, did you run exactly this code? If so, there is
> something wrong with the second FOR NEXT loop
>
> jbskaggs a écrit :
>> using your suggestions and the swap command vs manual swapping this is my
>> code:
>>
>>
Hi,
Hmm, did you run exactly this code? If so, there is
something wrong with the second FOR NEXT loop
jbskaggs a écrit :
> using your suggestions and the swap command vs manual swapping this is my
> code:
>
> public b as string 'optional string used to hold the array data for file or
> split l
Simonart Dominique a écrit :
> jbskaggs a écrit :
>> I came up with a way to random sort listview. (Iuse this for random
>> shuffling card slots on games) But it isnt efficient some pointers if you
>> dont mind?
>>
>> I use two listviews one to sort from and one t
jbskaggs a écrit :
>
> I came up with a way to random sort listview. (Iuse this for random
> shuffling card slots on games) But it isnt efficient some pointers if you
> dont mind?
>
> I use two listviews one to sort from and one to sort to:
>
> I first copy all the listitems from list 1 to list
Hi,
vlahonick vlahonick a écrit :
> thanks to all of you (special thanks to dominique tha solved the previous
> problem) the project going on :D
> but now another problem appears...
> THE DIFTHONGS and the finishing greek sigma...
> the code below is about the sigma but in greek is one more "ς" t
vlahonick vlahonick a écrit :
>
> hi again...sorry about the delay in my reply :D
> but i really didnt understand ur example here
> of course now i realise that even the textbox2.text had the reasult i wanted
> the problem will
> be in the letters appering because of their bytes...
> but the
vlahonick vlahonick a écrit :
>
>
>> From: karl.re...@fen-net.de
>> To: gambas-user@lists.sourceforge.net
>> Date: Wed, 1 Apr 2009 18:14:32 +0200
>> Subject: Re: [Gambas-user] (no subject)
>>
>> Am Mittwoch, den 01.04.2009, 18:55 +0300 schrieb vlahonick vlahonick:
>>>
From: karl.re...@fen-ne
Marc Miralles a écrit :
> Hi all:
>
> Some idea or link about how to compile Gambas 2.12 or Gambas 3 in Fedora 10
>
> In gambas website don't have information about what packages are
> necessaries for compile Gambas in Fedora 10 and some components are
> disabled when compile in Fedora 10.
>
>
Benoît Minisini a écrit :
>> Hi,
>> I've a main Gridview (grdGame) surrounded by 2 other grids, grdHdef on
>> top and grdVdef on left of grdGame
>>
>> When the mouse cursor is over the main grid, I want to highlight a
>> column of the top grid and a row of the left grid facing the cursor
>> positio
Dominique SIMONART a écrit :
> Hi evererybody,
>
> If I code the few lines showed below:
>
> DIM X AS Byte
> DIM Texte AS String[64]
>
> X = &h2E
> X += &hE0
> TextBox1.Text = Hex(X)
> Texte[X] = Hex(X)
>
> I get '10E' displayed. Is this correct for a byte?
> If you put a breakpoint on
fine
>>> READ #hFile, N
>>> hMyClass[i].X = N
>>> ' using this one ends with Signal 11 message
>>> 'READ #hFile, hMyClass[i].X
>>> NEXT
>>>
>>> If you want to test, I join the complete source (with the file t
Hi Julien,
You are right!
I read your post and I understand the reason,
but you don't speak about Signal 11, so I was thinking for
another problem although similar
regards,
Dominique Simonart
Jussi Lahtinen a écrit :
> Hi!
>
> Is hMyClass declared as Object[] ?
> If so, READ cannot recognise hMy
Benoit Minisini a écrit :
> On lundi 12 janvier 2009, Benoit Minisini wrote:
>>> I think there is a problem with the *last* column of a gridview, but may
>>> be I missed something instead.
>>> 1) In the TestOne, the code is what I want to get (the usage of 'k' is
>>> for the test only!), but the di
a while... and it works perfecly in my
> mind... but can't really make it work on the IDE :(
>
> On Thu, Dec 11, 2008 at 2:23 PM, Simonart Dominique
> wrote:
>> M0E Lnx a écrit :
>>> I have to say, the array idea makes more sense to me, simply because
>>> o
M0E Lnx a écrit :
> I have to say, the array idea makes more sense to me, simply because
> otherwise, it'll be hard to tell the next and back buttons which sub
> to run.
>
> I have tried an array, but object array rather than string array.
>
> The idea is that every form that gets opened leaves a
Benoit Minisini a écrit :
> On mercredi 10 décembre 2008, Simonart Dominique wrote:
>> Hi,
>> May be it's me, but ...
>> in the gambas 2.9 IDE (opensuse 11.0 KDE 3, Qt project),
>> create a new image1.png file. after drawing something on the
>> area, select t
Hi,
May be it's me, but ...
in the gambas 2.9 IDE (opensuse 11.0 KDE 3, Qt project),
create a new image1.png file. after drawing something on the
area, select the transparent color and the fill tool then
click on a colored pixel and you enter in infinite loop.
By the way, I search a solution to
Hi,
Rolf-Werner Eilert a écrit :
> 2. Here "Maske" is a tabstrip. First it is checked that it has enough
> tabs. Then the "current" tab is set.
>
> IF CInt(wert[0]) > Maske.Count THEN Maske.Count = CInt(wert[0])
> Maske.Index = CInt(wert[0] - 1)
>
> Gambas will stop at the second line complain
44 matches
Mail list logo