Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What was the developer thinking?
Message
 
 
À
15/07/2009 12:29:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01412303
Message ID:
01412525
Vues:
54
>>>Hi Naomi,
>>>
>>>>The form in question has all complex logic of setting filter, etc. in its Activate method. It makes the debugging of this form much harder.
>>>
>>>If every form changes the data session to the same one, then every one operates on the same work areas. Hence, every form would need to restore its environment every time the form is activated.
>>>
>>>I wouldn't move it into the Init event. It's better to find a work around for your debugging problem. What exactly is making debugging harder?
>>
>>Very interesting thing I found so far. The form uses a ConfigSearch table and in the Load event does some manipulations with this table. I believe it does tableupdate after these manipulations.
>>
>>After I moved the code to the Init and switched to command window, I see, that after set filter command there are two same records.
>>
>>I opened this table in another VFP session and there is only 1 record there.
>>
>>I'll try to determine, may be this extra record is not saved yet - buffered?
>
>I'm sure you know that recno() will return a negative number if it's buffered. Is there a relationship set between that table and another?

Attached please find a screen shot of the table.

As you can see, this problem has a long history.

I somehow duplicated it 2 days ago. And in my case with even worse result - same ID for two different customers / sales.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform