[ic] how to get number of characters in a string?

Philip S. Hempel interchange-users@icdevgroup.org
Sun Sep 8 16:31:02 2002


I was attempting to find a way to
determine the number of characters that
are in a string.

I am making a templete and was passing
a variable to title-bar and wanted to
not use the width that came from the
table push. I want to add 10 more
points to the width (or however many
I choose).

[calc]
                 my $n = [control 
title_bar];
 
$Scratch->{title_bar_width} = int( $n + 
10 );
                 return;
[/calc]


[title-bar [scratch title_bar_width] 3 
green]<center>[control 
title_bar]</center>[/title-bar]




I grabbed this from some other component
and ussed it as a foundation.

I knew from the start this is wrong
but I don't know of any tag that would
do this and thought at least this would
begin what I was looking for.

Thanks
-- 
	-------------------------
	    Philip S. Hempel