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

Jean-Yves F. Barbier 12ukwn at ...626...
Wed Aug 19 19:03:35 CEST 2009


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, prout...
monitor => Global.lastSelection = "TG"

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
-- 
<taniwha> Zoid: we're nuts, but we're productive nuts:)
* taniwha wonders what productive nuts taste like




More information about the User mailing list