Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index and transaction
Message
From
14/07/1998 10:42:16
 
 
To
14/07/1998 06:41:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00116702
Message ID:
00117140
Views:
25
Hi, Aleks. Thank you for posting runnable code. It makes your situation very clear. I'm afraid you misunderstand the way you are opening and updating the table.

The way you have written your example shows that you are using the table and updating and viewing in 3 different data sessions. Place the following code (with the appropriate comment) before each of your USE commands and you should see what I mean.

'In form1 init()' + WAIT WINDOW STR( SET( 'DATASESSION' ) )

In Form2 the table gets used in DS 3, in Form1 its DS #2, and the body of the PRG uses DS #1. The effect you see is the whole point of _private_ datasessions.

IMO, you are misusing private datasessions and perhaps need a clearer understanding of how they work compared to what you need to accomplish. In addition, AFAIK form1 has absolutely nothing to do with anything. Form2 is being called from the prg, not form1 (which is what I originally understood you to be doing).

I hope this helps. If not, please repost and perhaps I can be clearer.

>I nevertheless shall try to convince you. I bring a piece of the program (to answer all your questions), which spoils an index. I hope it will convince you, that the index can be broken in the program.
...snip
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform