Re: last element in string
* use list commands on lists
* use string commands on strings
you have a string
set lastchar [string index "1000000" end]
If you have your heart set on using lists, then convert the string to a
list first
set lastchar [lindex [split "10000000" ""] end]
I really don't recommand this though
HTH,
--brett
.
Relevant Pages
- TOC of Python Cookbook now online (was Re: author index for Python Cookbook 2?)
... Processing a String One Character at a Time ... Finding a File on the Python Search Path ... Constructing Lists with List Comprehensions ... Looping over Items and Their Indices in a Sequence ... (comp.lang.python) - ANN: MeObjects Library for Delphi
... object type small and powerful. ... the Object instance can use the ClassType method return the ... Especially for lists of pointers to dynamically allocated memory. ... {Summary Adds Ansi String and correspondent object to a list. ... (borland.public.delphi.thirdpartytools.general) - Filling a grid with Sharepoint data
... /// Retrieves a Lists web service proxy with default settings. ... string strComputerName = System.Net.Dns.GetHostName.ToLower; ... XmlDocument xmlDoc, ... XmlElement elementMethod, ... (microsoft.public.dotnet.framework.windowsforms) - Re: Code for List Boxes
... I also had to add a closing parentheses to strWhere = ... Dim strWhere As String ... Dim varSelected As Variant ... when you've selected values from the two lists? ... (microsoft.public.access.modulesdaovba) - Re: Can Dir handle different file types?
... Dim list As String ... Public Function ListFiles(Paths As String, Patterns As String, Optional ListCount As Long = 0) As String ... Dim pathIndex As Long, patternIndex As Long, listPosition As Long ... ' Accept lists that start with up to 2 delimiters ... (microsoft.public.vb.general.discussion) |
|