API: Str
Filename:
fwpStr_phoneGetPHA.ctag
Released With:
5.0.0
Current Version:
1.0.0
Status: Active
Min Lasso Tested: 8.1.0
Max Lasso Tested: 8.5.3
Related:
Still don't get it?
Check out the talk list archives, or join and ask your questions.
Documentation Error or Request?
Email documentation corrections or comments
Retrieves only the A component of a packed phone number.
Packed format should be 0001112222333333, where:
000 = area code (A)
111 = prefix (P)
2222 = number (N)
333333 = extension (X)
fwpStr_phoneGetPHA: string
phoneNo - required : the packed phone number digit string
var:'pha'= fwpStr_phoneGetPHA:(field:'homePh'); <input type="text" name="pha" value="[fwpStr_phoneGetPHA:field:'homePh']">
<?lassoscript
//............................................................................
//
// pageblocks: (c) 2002-2007 http://www.pageblocks.org/
//
//............................................................................
/*
{fileName= fwpStr_phoneGetPHA.ctag }
{rsrcType= tag }
{rsrcName= fwpStr_phoneGetPHA }
{rsrcHTTP= www.pageblocks.org/refc/fwpStr_phoneGetPHA }
{lassoVrsnMin= 8.1.0 }
{lassoVrsnMax= 8.5.3 }
{author= Greg Willits }
{authorEmail= subscribe to pbTalk at www.pageblocks.org/talk/ }
{authorHTTP= www.pageblocks.org }
{desc= gets the area code from a packed phone number }
{maintvsrn= 1.0 }
{maintrelease= 5.0.0 }
{maintdate= 2006-01-16 }
{maintauthor= Greg Willits }
{maintnotes= initial release }
*/
//............................................................................
//
// packed format should be 0001112222333333
// where: 000 = area code
// 111 = prefix
// 2222 = number
// 333333 = extension
// where there is no area code, the data should be padded with 000
// there is no need to pad the extension
//.............................................................................
define_tag:'fwpStr_phoneGetPHA', -priority='replace',
-required='fw_phRaw';
if: local:'fw_phRaw';
return: #fw_phRaw->(substring:1,3);
/if;
/define_tag;
?>
© 2002-2010, pageblocks.org