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

Re: [Gambas-user] SPawing pictureboxs

2009-03-28 Thread Richard Muir-Gladman
I use this code to create my "picture boxes" which are actually buttons. I did this because I couldn't find a click event for a picture box. PRIVATE SUB addPicture(pName AS String, title AS String, id AS Integer) DIM f AS Frame DIM p AS Button f = NEW Frame(scrPictures) f.Text

Re: [Gambas-user] Catch NULL character

2009-03-28 Thread CelticBhoy
Thanx again for the help. I will have a look at your advice and try and implement it in my code. This is my first crack at programming since way back in the QuickBasic days, so I appreciate the help. -- View this message in context: http://www.nabble.com/Catch-NULL-character-tp22751957p22760874.

[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 as

Re: [Gambas-user] Catch NULL character

2009-03-28 Thread Doriano Blengino
CelticBhoy ha scritto: > 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 >

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 ma

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] 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 characte

Re: [Gambas-user] Catch NULL character

2009-03-28 Thread Doriano Blengino
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