marefin
asked on
String Validation Code
I'm too lazy to figure out the syntax in notes to do this
I need to validate a field in a form before the its saved.
Heres the Validation Criteria
XXXXX-000-XX-X-XX
X=Alpha Numeric
0=Number
The user has to enter the dashes as well....
Heres the code I have....
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
If uidoc.FieldGetText("fldSKU ")="" Then
Messagebox "Please Enter a SKU Number"
Elseif
=================CODE GOES HERE====================== =======
Else
uidoc.Save
uidoc.close
End If
End Sub
I need to validate a field in a form before the its saved.
Heres the Validation Criteria
XXXXX-000-XX-X-XX
X=Alpha Numeric
0=Number
The user has to enter the dashes as well....
Heres the code I have....
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
If uidoc.FieldGetText("fldSKU
Messagebox "Please Enter a SKU Number"
Elseif
=================CODE GOES HERE======================
Else
uidoc.Save
uidoc.close
End If
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER