Re: [Gambas-user] Catch NULL character

2009-03-28 Thread BenoƮt Minisini
CelticBhoy ha scritto: What is wrong with this line :- IF sElement[iLoop] = NULL THEN sElement[iLoop] = 0 I want to catch a null character and change it to 0. You are using an array notation, ie, sElement[] designes an array of strings, each composed of many characters. Moreover,

Re: [Gambas-user] Catch NULL character

2009-03-28 Thread CelticBhoy
This is the code where the problem comes up :- PUBLIC SUB Seperate(sComponent AS String, iRec AS Integer) DIM sElement AS String[13] DIM iStart AS Integer DIM iFinish AS Integer DIM iLen AS Integer DIM iLoop AS Integer DIM iSlen AS Integer iLen = Len(sComponent) IF iLen 1

Re: [Gambas-user] Floodfill / pie chart

2009-03-28 Thread Jussi Lahtinen
Hi! I noticed Start and End options to make sector (also in circle), but how to fill them with color? Fabien, here it is, but I think it is not very useful. It is made only for my special case. It has fixed sizes, and it is limited to 8 sectors. Notice that Part() array have to sum up 100% to

[Gambas-user] SPawing pictureboxs

2009-03-28 Thread jbskaggs
I want to be able to spawn a series of indentical pictureboxes then if I click on an individual pixturebox get it to run code for that picturebox. I can genrate the pictureboxes just fine with the =new picturebox but then I cant use the picturebox with Public sub picturebox_mousedown() command

Re: [Gambas-user] SPawing pictureboxs

2009-03-28 Thread jbskaggs
I should have thought a 'Muir would have come and helped! (I had a an old friend named Ted Muir who allways helped me in a bind- he's passed away now. You couldn't have a better name.) Thanks a bunch! JB Richard Muir-Gladman wrote: I use this code to create my picture boxes which are