Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lines Disappearing Mysteriously in from Grid
Message
 
 
To
25/07/2003 03:13:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00813405
Message ID:
00813812
Views:
6
Tim,

Do you've any timers in your application that could fire at that time and cause this? BTW, wht's 'WorkSpec' table/cursor? How is't created?

>Hi,
>
>I am having an extrelemy bizarre problem where lines are being
>mysteriously marked for deletion in a grid.
>
>This problem occurs only (so far) on two specific machines.
>Other machines with the same configuration do not have this problem.
>These machines have visual foxpro 8 installed which is the only difference I can see.
>
>Basically in the save code for a form with a grid I have code as follows:
>
>**->>>>>>>>>>Lines are not marked for deletion here
>if ntol(prefsall.arti_mbe) and !ntol(WorkSpec.PDMOnly) and !.AllArticleFound
> ....
>endif
>
>.mousepointer=11
>
>SELECT WorkSpec
>set order to no_in_row
>
>cLogTable = "TMPDMLOG"
>&&TJM not implemented yet S21SessLog(cLogTable, .T.)
>
>** delete lines in specific that are deleted in workspec
>set dele off
>sele WorkSpec
>
>**->>>>>>>>>>Lines suddenly all marked for deletion here and get deleted
>**by this code
>SCAN FOR DELETED() AND RECNO>0
> .DeleteOneSpec(WorkSpec.Recno)
>ENDSCAN
>
>When I comment out the scan everything works except lines that the functionality to mark lines as deleted does not work.
>
>When I run the same code with the debugger open the problem does not occur.
>
>Anyone have any idea how these records could get marked for deletion?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform