Hi Mohammed,
You are using the wrong function.
VAL() will convert a value into a numeric one.
?VAL([x]) will always give you 0.00
If you want to know if the current Textbox.Value equals [x] then it is enough to write this:
IF Thisform.Text13.Value == [x]
Replace prior with 1 in <name of your table or cursor>
ENDIF
however, why don't you use an optiongroup? It would be so much easier to handle.
i.e.
REPLACE prior WITH Thisform.myOptiongroup.Value in <myCursorName>
Best Regards
-Tom
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011