freelanceprogrammers.org Forum Index » Cold Fusion
Am I misremembering?
Joined: 05 Apr 2005
Posts: 37
Am I misremembering?
I could have sworn there was a way to return x characters from the
left or right..
For example, if I wanted the first 4 characters of a string.. but I`m
looking and not finding it anywhere..
Am I wrong?
Jen
Joined: 25 Apr 2005
Posts: 10
Am I misremembering?
> I could have sworn there was a way to return x characters from the
> left or right..
>
> For example, if I wanted the first 4 characters of a string.. but I`m
> looking and not finding it anywhere..
<cfset TestMsg = "This is a test message">
<cfouput>
#Left(TestMsg, 6)#<br>
#Right(TestMsg, 6)#
</cfoutput>
:)
Hatton
Joined: 05 Apr 2005
Posts: 37
Am I misremembering?
Thank you.. I think I tried that but had the syntax wrong. Brain
fart.
Jen
--- In cold_fusion@yahoogroups.com, "C. Hatton Humphrey"
<chumphrey@g...> wrote:
> > I could have sworn there was a way to return x characters from
the
> > left or right..
> >
> > For example, if I wanted the first 4 characters of a string..
but I`m
> > looking and not finding it anywhere..
>
> <cfset TestMsg = "This is a test message">
>
> <cfouput>
> #Left(TestMsg, 6)#<br>
> #Right(TestMsg, 6)#
> </cfoutput>
>
> :)
>
> Hatton
Joined: 10 Sep 2002
Posts: 9
Am I misremembering?
you could use like Hatton said to get left and right
left(variableName, count)
right(variableName, count)
and dont forget if you need characters in the middle
mid(variableName, startAt, Count)
----- Original Message -----
From: Jennifer <chrystalheart@...>
Date: Wednesday, May 18, 2005 2:07 pm
Subject: [cold_fusion] Re: Am I misremembering?
> Thank you.. I think I tried that but had the syntax wrong. Brain
> fart.
>
> Jen
>
> --- In cold_fusion@yahoogroups.com, "C. Hatton Humphrey"
> <chumphrey@g...> wrote:
> > > I could have sworn there was a way to return x characters from
> the
> > > left or right..
> > >
> > > For example, if I wanted the first 4 characters of a string..
> but I`m
> > > looking and not finding it anywhere..
> >
> > <cfset TestMsg = "This is a test message">
> >
> > <cfouput>
> > #Left(TestMsg, 6)#<br>
> > #Right(TestMsg, 6)#
> > </cfoutput>
> >
> > :)
> >
> > Hatton
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







