Re: [Gambas-user] pb changing a char in a string

2009-08-19 Thread Jean-Yves F. Barbier
Jean-Yves F. Barbier a écrit : ... > why am I not able to access one char into a string? Ok thanks to Doriano & Laurent; strange but acknoledged. JY -- About the time we think we can make ends meet, somebody moves the ends. -- Herbert Hoover -

Re: [Gambas-user] pb changing a char in a string

2009-08-19 Thread Jean-Yves F. Barbier
Charlie Reinl a écrit : > Am Mittwoch, den 19.08.2009, 19:03 +0200 schrieb Jean-Yves F. Barbier: >> Hi list, >> >> I've got a global flag that is a string of 2 chars. >> >> In some procs, I've to change the 1st char, but I've got an error: >> >> Global (class) => EXPORT >> CREATE

Re: [Gambas-user] pb changing a char in a string

2009-08-19 Thread Laurent Carlier
Le mercredi 19 août 2009 19:03:35 Jean-Yves F. Barbier, vous avez écrit : > > proc => Global.last.Selection[1] = "W" > > gives me a "not an object" error in proc!?? > why am I not able to access one char into a string? > > JY Because a string is a string, not an array of char :-) Global.lastSelec

Re: [Gambas-user] pb changing a char in a string

2009-08-19 Thread Doriano Blengino
Jean-Yves F. Barbier ha scritto: > Hi list, > > I've got a global flag that is a string of 2 chars. > > In some procs, I've to change the 1st char, but I've got an error: > > Global (class) => EXPORT > CREATE STATIC > PUBLIC lastSelection AS String = "DU" > > mon

Re: [Gambas-user] pb changing a char in a string

2009-08-19 Thread Charlie Reinl
Am Mittwoch, den 19.08.2009, 19:03 +0200 schrieb Jean-Yves F. Barbier: > Hi list, > > I've got a global flag that is a string of 2 chars. > > In some procs, I've to change the 1st char, but I've got an error: > > Global (class) => EXPORT > CREATE STATIC > PUBL

[Gambas-user] pb changing a char in a string

2009-08-19 Thread Jean-Yves F. Barbier
Hi list, I've got a global flag that is a string of 2 chars. In some procs, I've to change the 1st char, but I've got an error: Global (class) => EXPORT CREATE STATIC PUBLIC lastSelection AS String = "DU" monitor => Global.lastSelection = "DU" prout, prout, p