SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎target.strlib‎ > ‎

GetSSN


Platform Objects


Description

Extracts a US Social Security Number (SSN) from the input.


Syntax


target.strlib.GetSSN( input, format, pos )

input - String to be parsed
format Boolean - Would you like your SSN formatted?  (default is true)
pos integer (optional, in/out) - search from position (default is 0)

Return value


This function returns a string

Sample

'---------- Start ----------
Function Start
Dim str, str2

str = "Extracting SNN sample 123-45-6789."
str2 = target.strlib.GetSSN( str )
trg.Message( str2 )

End Function

In this case GetSSN parses the input string and extracts the SSN.

See also


Platform Objects and Methods
Trim
Split
Mid