As I mentioned in post#1, the 4th parameter of GetSetting is the default so you could do this.

Code:
If GetSetting(App.EXEName, "textboxes", "text1", "") <> "" Then
    Command1.enabled = false
End If