Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to control WHEN a grid updates?
Message
From
13/04/2000 22:08:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/04/2000 21:57:25
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00350331
Message ID:
00359624
Views:
11
>Barbara....
>
>Do you need to put the full field name in the oldval? veventbar.qtystart?
>
>
>
>>Well, There's ALWAYS 3 ways to do anything with VFP :-)
>>
>>>Barbara...
>>>
>>>Ya know, sometimes I just hate programming!!!! Here you pointed out another, wonderful, command (oldval) that
>>>I didn't even know existed and I fought a problem programatically awhile ago for a similar need. Geez.
>>>
>>>I'll give the OldVal routine a whirl and see if that works. Seems easier.


As Barbara said I suggest to use both like :
oldval("myfield","mytable")
Also it's wise to use it like :

nvl(oldval("myfield","mytable"),"") = nvl(this.value,"")

to prevent trying to compare .NULL. to notNull values. It occurs even if your table doesn't accept nulls when it's a new record (oldval() is null).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform