Re: [Gambas-user] Global variables (was: POSSIBLE! bug in while loop)

2015-12-29 Thread Tobias Boege
On Tue, 29 Dec 2015, Stephen wrote: > Reading this, in addition to seeing the need for a "Wait", I thought the > following; > >Does putting the desired global variable in a class mean the class > needs to be instantiated within the scope of the code example given? i.e. > Strictly

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Fabien Bodard
But is print just take into account the old asci table 2015-12-29 16:35 GMT+01:00 ML : > All, > > I might be utterly wrong, but since Linux normally uses UTF-8, any > high-bit-set char may be interpreted as one of the "multibyte char" flags. > If isprint() takes this into

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Fabien Bodard
To resume ... in the old past of ascii all standart printer or monitor can manage ascii and print 32 to 127 chars. So Ansi C provide a standart function named IsPrint that allow to say if a char was able to be printed. IN 2015... Ascii is known in it's 8 bit format so printable chars are from 32

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread ML
All, I might be utterly wrong, but since Linux normally uses UTF-8, any high-bit-set char may be interpreted as one of the "multibyte char" flags. If isprint() takes this into account, then it's dead right that char by itself is not printable! Hope that helps and makes sense... On 2015-12-29

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread adamn...@gmail.com
On Tue, 29 Dec 2015 16:54:29 +0100 Fabien Bodard wrote: > To resume ... in the old past of ascii all standart printer or monitor > can manage ascii and print 32 to 127 chars. So Ansi C provide a > standart function named IsPrint that allow to say if a char was able > to be

Re: [Gambas-user] C component declaration

2015-12-29 Thread Tobias Boege
On Tue, 29 Dec 2015, tercoide wrote: > How to declare arrays when making a component, ie : > C declaration in library > void glVertexPointer(GLint size, GLenum type, GLsize stride, const > GLvoid*array) > > C gb component > > GB_STATIC_METHOD( ..?? > > DECLARE_METHOD(.? > I'll tell

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread adamn...@gmail.com
On Tue, 29 Dec 2015 15:07:53 -0500 Stephen wrote: > On 12/29/2015 10:54 AM, Fabien Bodard wrote: > > To resume ... in the old past of ascii all standart printer or monitor > > can manage ascii and print 32 to 127 chars. So Ansi C provide a > > standart function named

Re: [Gambas-user] C component declaration

2015-12-29 Thread Benoît Minisini
Le 29/12/2015 23:48, tercoide a écrit : > How to declare arrays when making a component, ie : > C declaration in library > void glVertexPointer(GLint size, GLenum type, GLsize stride, const > GLvoid*array) > > C gb component > > GB_STATIC_METHOD( ..?? > > DECLARE_METHOD(.? > > > > Ing.

[Gambas-user] C component declaration

2015-12-29 Thread tercoide
How to declare arrays when making a component, ie : C declaration in library void glVertexPointer(GLint size, GLenum type, GLsize stride, const GLvoid*array) C gb component GB_STATIC_METHOD( ..?? DECLARE_METHOD(.? Ing. Martín P. Cristiá Mensaje original De:

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Stephen
On 12/29/2015 10:54 AM, Fabien Bodard wrote: > To resume ... in the old past of ascii all standart printer or monitor > can manage ascii and print 32 to 127 chars. So Ansi C provide a > standart function named IsPrint that allow to say if a char was able > to be printed. > > IN 2015... Ascii is

Re: [Gambas-user] Global variables

2015-12-29 Thread Stephen
On 12/29/2015 12:14 PM, Tobias Boege wrote: > On Tue, 29 Dec 2015, Stephen wrote: >> Reading this, in addition to seeing the need for a "Wait", I thought the >> following; >> >> Does putting the desired global variable in a class mean the class >> needs to be instantiated within the scope of

Re: [Gambas-user] SimpleEval

2015-12-29 Thread Fabien Bodard
In fact internally it use two process. the first one when you set the formula. It compile it... understand reorganize and traduce the formula into interpreter readable sequences. The second one when you call Execute, the interpreter read the stored sequence. During this process if some variables

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Fabien Bodard
Thank you Bruce :-)... It was really interresting. We can't figure out how the world was so different and so identical at the same time. Ascii is old, control sequences too, but they are also always the underlying tools used on our modern systems and programs. Oups i've forgotten DEL ... yes asc

Re: [Gambas-user] SimpleEval

2015-12-29 Thread Fabien Bodard
You get the class from where ? 2015-12-29 15:18 GMT+01:00 Charlie : > Hi Fabian, > I presume that you wrote the code in SimpleEval. I can't work out how to use > it. I thought it might work with my gbCalculator (see Gmabas Farm). There > are quite a few compile warning

Re: [Gambas-user] SimpleEval

2015-12-29 Thread Fabien Bodard
you can get the error and the error pos too, i've updated the class on the farm to remove the compilation warnings 2015-12-30 7:21 GMT+01:00 Fabien Bodard : > From the Main Module in the Farm example : > > > Public Sub Main() > Dim hEval As New SimpleEval As "Eval" > Dim

Re: [Gambas-user] SimpleEval

2015-12-29 Thread Fabien Bodard
>From the Main Module in the Farm example : Public Sub Main() Dim hEval As New SimpleEval As "Eval" Dim hEx As New EvalEx As "Eval" 'Test with an unknown variable hEval.Formula = "IF(Test=1;'TROUVE';'PERDU')" hEval.Execute If Not hEval.Error Then Print hEval.Value Else

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Fabien Bodard
Ru .. Characters > to 127 are printable... But terminals sometime replace non printable chars by those one 2015-12-29 0:56 GMT+01:00 Ru Vuott : > >> and Ru Vuott thanks for suggestion i'll try later > > > If the string has 2 or more no-printable characters, you have to modify my

Re: [Gambas-user] POSSIBLE! bug in while loop

2015-12-29 Thread Fabien Bodard
Private hTimer as timer as "LoopTimer" Private bHalt as Boolean Private iCount as integer Public Sub LoopTimer_Timer() if bHalt or if iCount>=10 then bHalt = False iCount = 0 Return endif inc ICount Print iCount hTimer.Trigger End Public Sub btnGo_Click() hTimer.Trigger End

[Gambas-user] [Gambas Bug Tracker] Bug #881: When the ComboBox is initialized with the list property, setting the index to 0 not work.

2015-12-29 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.881=L21haW4- Fabien BODARD reported a new bug. Summary --- When the ComboBox is initialized with the list property, setting the index to 0 not work. Type : Bug Priority : Medium Gambas version : Unknown Product

Re: [Gambas-user] POSSIBLE! bug in while loop

2015-12-29 Thread Stephen
Reading this, in addition to seeing the need for a "Wait", I thought the following; Does putting the desired global variable in a class mean the class needs to be instantiated within the scope of the code example given? i.e. PUBLIC GlobalVar as globalVars ' Change the name of the class to

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Ru Vuott
Tchao Fabien, > Ru ..  Characters > to 127 are printable... uhmmm... excuse me, but I do not understand. If I test the "printability" :-) of "characters > to 127" by using C "isprint()" function (that checks whether the passed character is printable), I obtain only zero results. Where:

[Gambas-user] SimpleEval

2015-12-29 Thread Charlie
Hi Fabian, I presume that you wrote the code in SimpleEval. I can't work out how to use it. I thought it might work with my gbCalculator (see Gmabas Farm). There are quite a few compile warning errors. *The main thing is some