hi,
thank you for reply,
Thisform.Text13.Value == [x]
i get error message Operator/operand type mismatch
but i try as
REPLACE prior WITH Thisform.Optiongroup1.Value in (cAlias)&&it works
but i need to insert value at my filed as 1 if option 1,2 if optin2 or 3 if option3
thanks
>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>
>