Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Status Bars
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Status Bars
Divers
Thread ID:
00061834
Message ID:
00061834
Vues:
68
I have a form with a ComCtl32 Status bar object. I worked on this form a couple of weeks ago and in the mean time I have been working on another form. When I went back to run the first form it would not work anymore. The line:

THISFORMSET.frmDataView.ctlStatusBar.Panels.ITEM(1) = "Scale: 1 to " + LTRIM(STR((THISFORMSET.gnScale)))

gives me an OLE error #######, Member not found

I tried the other forms of this command:

THISFORMSET.frmDataView.ctlStatusBar.Panels(1) = "Scale: 1 to " + LTRIM(STR((THISFORMSET.gnScale)))
THISFORMSET.frmDataView.ctlStatusBar.Panels("Scale") = "Scale: 1 to " + LTRIM(STR((THISFORMSET.gnScale)))

and they produce the same error.

The debugger says that:

THISFORMSET.frmDataView.ctlStatusBar.Panels.ITEM(1)

is an object, however when I copy it to the Watch window and expand it VFP bombs out with an invalid page fault in ComCtl32.

I remember having this problem some time ago, but I do not remember how i fixed it. Can anyone help with this problem?

Thank you in advance.
Dennis Lindeman
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform