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

Laurent Carlier lordheavym at ...626...
Wed Aug 19 19:54:13 CEST 2009


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.lastSelection = "W" & Right$(Global.lastSelection) should work

++




More information about the User mailing list