> -----Original Message-----
> From: Stuart Kidd [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 30 januari 2004 12:21
> To: CF-Talk
> Subject: cfloop and left
>
> Hi guys,
>
> I am trying to find the the first character of my variable.
>
> <cfset LengthOfMyVariable = #Len(client.propertyagentid)#>
>
> cfloop index="i" from="1" to="#LengthOfMyVariable#"> <img
> src=""> > #Left(Client.PropertyAgentID,i)#</cfoutput>.gif" /> </cfloop>
>
> If for instance my client variable is 10 then the first
> functin (LEN) i'm just finding out how many characters are in
> the variable (which is 2 in this case).
>
> I'm then doing a loop to display the appropriate images.
>
> I want to display:
>
> loop 1
> 1.gif
>
> loop 2
> 0.gif
>
> I don't know the appropriate function for finding the exact
> place of a variable though. How can i find the second
> character in a variable?
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

