Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update doesn't work without thisform
Message
From
30/09/2011 20:25:33
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01525200
Message ID:
01525314
Views:
42
>>>
>>>
>>>Try this
TEXT to mSqlcommand noshow pretext 15 TEXTMERGE
>>>UPDATE MyView
>>>	SET
>>>		Field1 = nValue1, 
>>>		Field2 = <<.nSomeValueIHave>> 
>>>	WHERE code = nValue3
>>>ENDTEXT
>>>&mSqlCommand
>>>
>>>Be sure to remove all semicolons in your code. The TEXTMERGE comment will replace
<<.nSomeValueIHave>>
with the value of your form property.
>>>HTH
>>
>>Works OK in the given example with numeric values (assumed by the "n" prefix), but doesn't work in case of character or date.
>
>Sorry, forgot that part.
>If you have a char value use
"<<.nSomeValueIHave>>"
>If you have a date value use
{<<.nSomeValueIHave>>}
When it comes to this, it is probably easier to simply not use WITH...ENDWITH -- then you don't have to worry about the types of the values.
Previous
Reply
Map
View

Click here to load this message in the networking platform