set character at string position
- From: "Lisa Pearlson" <no@xxxxxxxx>
- Date: Fri, 30 Dec 2005 21:26:55 +0100
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
.
- Follow-Ups:
- Re: set character at string position
- From: Alan Anderson
- Re: set character at string position
- From: Tom Conner
- Re: set character at string position
- From: Bryan Oakley
- Re: set character at string position
- Prev by Date: Re: Jim Gettys on writing software for the new "one laptop per child" system
- Next by Date: Re: set character at string position
- Previous by thread: Access named pipe in Windows XP
- Next by thread: Re: set character at string position
- Index(es):
Relevant Pages
|