Function ValidateNumericFlds(doc As NotesDocument) As Integer
On Error Goto Errh
Dim rv As Integer
rv = True
lsf_ValidateNumericFlds = rv
Dim NumFlds List As String
NumFlds("FLD_NAME_1") = "LABEL_1"
NumFlds("FLD_NAME_2") = "LABEL_2"
Dim V As Variant
Dim VEmpty As Variant
Dim IsError As Integer
Forall x In NumFlds
V = VEmpty
IsError = False
On Error Resume Next
V = doc.GetItemValue(Listtag(x))(0)
On Error Goto Errh
If Not Isempty(V) Then IsError = Not Isnumeric(V) Else IsError = True
If IsError Then
Messagebox {Ой бяда, ребятушки! В поле "} + x + {" какое-то гогно!}, 0 + 16, "Бяда"
rv = False
Exit Forall
End If
End Forall
lsf_ValidateNumericFlds = rv
Exit Function
Errh:
Call lsf_ErrorTrack
Exit Function
End Function