Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Contradictory debug info
Message
De
24/05/2007 09:58:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
24/05/2007 09:44:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01228169
Message ID:
01228197
Vues:
14
>>While debugging a bug that appears every now and then, I get the following information in the debug window:
>>
>>
>>select(): 1
>>select(0): also 1
>>alias(): ""
>>alias(1): "movementmain"
>>
>>
>>Shouldn't the two versions of the alias() return the same value, if, apparently, area 1 is selected?
>>
>>The (occasional) error appears on a ...Grid.SetFocus(); I get the error message that there is no open table. After ignoring this error, I get a similar error in a "SET FILTER TO" command.
>
>That is odd. I'll guess that the grid is playing a role in this, by insisting on focus.
>
>Tamar

Might be. The error appears when I go back to the form in question. This usually happens when closing a dependent child form.

It gets even odder. After giving the SET command, I see that table MovementMain is open. When trying to open it with double-click, I also get the error "no table open"!

After selecting another alias and going back to MovementMain, everything works fine. So, as a workaround, I am trying to do the same in Form.Activate(), i.e.:
* Method Form.Activate
select 0
select (ThisForm.cWorkAlias)
DoDefault()
I may have to put the same code somewhere else, as in Form.Refresh().

But, since it is an error that happens only occasionaly, I have no way to immediately know whether this workaround actually works.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform