mercredi 5 mai 2021

How to check if a specific text value was entered in a text field checking with If Then in VBScript

First poster, sorry if it's unclear.

t = "----"

If InStr(t, "---") Then
    s = "t contains dashes"
End If

Is this correct? Or is > 0 required after the InStr? The position would be 0 so it wouldn't work I think.

Aucun commentaire:

Enregistrer un commentaire