Hi Guys

I have a number and I only want to display the first 3 digits could you please help.

Thanks

<cfset mytour=885879><cfoutput>#Left(#mytour#, 3)#</cfoutput>

How can I make the result into a global variable to use later. Forgive me am a noob to coldfusion

ColdFusion supports several persistent scopee. Take a look at the documentation for the session (per user) and application (entire app) scoopes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.