UFN_NAMEFORMATFIELD_FIELDCODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(21) | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 1/27/2010 6:48:26 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.5.465.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_NAMEFORMATFIELD_FIELDCODE_GETID(@Description nvarchar(21))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when 'User defined field' then 0
when 'Last Name' then 1
when 'First Name' then 2
when 'Middle Name' then 3
when 'Title' then 4
when 'Suffix' then 5
when 'Spouse Last Name' then 6
when 'Spouse First Name' then 7
when 'Spouse Middle Name' then 8
when 'Spouse Title' then 9
when 'Spouse Suffix' then 10
when 'Specified by Function' then 11
else -1
end
end