Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trim IP Address

Status
Not open for further replies.

dinoviapangea

Technical User
Apr 9, 2002
41
US
I neet to trim a 123.123.123.123 IP address to 123.123.123.0. Any suggestions?
 
you can do it with traditional cfset's
<cfset ip = ListDeleteAt( ip, listlen( ip, &quot;.&quot; ), &quot;.&quot; ) />
<cfset ip = listAppend( ip, 0, &quot;.&quot; ) />

or with cfscript

<cfscript>
ip = listDeleteAt( ip, listLen( ip, &quot;.&quot; ), &quot;.&quot; );
ip = listAppend( ip, 0, &quot;.&quot; );
</cfscript> ------------------------------------------------------------------------------
brannonH
if( !succeed ) try( );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top