Re: set character at string position
- From: "Tom Conner" <tconner@xxxxxxxxxx>
- Date: Fri, 30 Dec 2005 23:49:23 GMT
"Lisa Pearlson" <no@xxxxxxxx> wrote in message
news:43b597e1$0$16227$e4fe514c@xxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I looked at the string class, but I don't see how I can set/replace a
> character on a certain string position.
> In C I'd do something like:
>
> char s[] = "Hello";
> s[2] = 'x';
>
> This would give "Hexlo"
>
> How do I this in Tcl?
>
> Lisa
>
>
Have you considered buying a Tcl book?
.
- References:
- set character at string position
- From: Lisa Pearlson
- set character at string position
- Prev by Date: Re: Underlining text on canvas
- Next by Date: Re: Underlining text on canvas
- Previous by thread: Re: set character at string position
- Next by thread: Re: set character at string position
- Index(es):
Relevant Pages
|