FUNCTION  fPhotoMode

Returns the Mode value, indexed by name (Primary, Secondary, Family, Outside)

the Mode names can be found with
Select * from PhotoMode
Sample call to fPhotoMode
select top 10 *
from photoObj
where mode = dbo.fPhotoMode('PRIMARY')

see also fPhotoModeN

Input and output parameters

nametypelengthinoutpnum
@namevarchar40input1
 int4output0