Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append
Message
From
28/04/2008 06:32:02
 
 
To
28/04/2008 06:00:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Append
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01313438
Message ID:
01313443
Views:
7
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>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform