Yea I tried using the val function
ValHiLo=val(frmKeypadHiLo.TheTextHiLo)
ValHi=val(frmKeypadHiLo.TheTextHi)
ValLo=val(frmKeypadHiLo.TheTextLo)
I tried
If (ValHiLo > ValLo) AND (ValHiLo <= ValHi) THEN
'do true code
Else
'Do false code
End If
It always seemed to do the true code even...
no I need to make sure there is a value of
frmKeypadHiLo.TheTextHi = 100
frmKeypadHiLo.TheTextLo = 1
No greater than the value assigned to frmKeypadHiLo.TheTextHi
and no less than the value assigned to frmKeypadHiLo.TheTextLo = 1
and it must be a number not a space or null
try this
Button calls this form called frmKetpadHiLo
frmKeypadHiLo.Caption = "HS301 PID SP"
frmKeypadHiLo.TheTextHiLo = ""
frmKeypadHiLo.TheTextHi = 100
frmKeypadHiLo.TheTextLo = 1
frmKeypadHiLo.Show
you enter a value in a textbox and click done button value is returned back to this script...
Button calls this form called frmKetpadHiLo
frmKeypadHiLo.Caption = "HS301 PID SP"
frmKeypadHiLo.TheTextHiLo = 10.0
frmKeypadHiLo.TheTextHi = 100
frmKeypadHiLo.TheTextLo = 1
frmKeypadHiLo.Show
you enter a value in a textbox and click done button value is returned back to this script
If...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.