Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: put null on string variable remember previous put
Message
From
10/04/2004 00:46:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
09/04/2004 02:54:58
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00892851
Message ID:
00893771
Views:
23
>Example of a problem I found yesterdaqy which probably is a bug, but could not make repro code. In a grid in the AfterRowColchange
>
>
SELECT SomeTable
>IF !EOF() AND RECNO() > 0
>    GO RECNO() IN someTable  && Errors with Record out of range.
>ENDIF
>
>No filters in effect, One active non filtered index, via the debugger I found no other code running besides this, but it was erroring on a newly added record (Tablebuffered). I spend two hours to find the exect cause, but eventually found a workarround to the problem.

I think the essence of this bug is that recno() still refers to recno() of the currently selected alias, not of SomeTable, despite the "in sometable" designation. If it would work with GO RECNO("sometable") IN someTable, then I think that's it. The bug is in what we were led to believe, that anything we put in a command with "in sometable" will work as if we have selected that table - but it may be not so. This needs to be further poked... Fabio? :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform