Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To add label objects to a class dynamically
Message
De
27/01/2001 16:40:20
 
 
À
27/01/2001 13:26:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00469406
Message ID:
00469436
Vues:
12
>>I am trying to add label objects to a class dynamically. The code I have so far is below. I am getting an unknown member error.
>>
>>Here is the code:
>>lcobjname = "oLbl" + alltrim(str(lblcount))
>>thisform.addobject(lcobjname,"cbhlabel")
>>
>>What's wrong, please help.
>>
>>Thanks
>>
>>Jim
>
>Jim,
>Error doesn't lie in this code. It has something to do with cbhlabel class. If you could provide class code (tools\class browser\view code) it would be helpful to isolate. BTW are you adding to form or class ?

I'd bet that one of two things is happening - either the classlib for cbhlabel, or one of the parents of cbhlabel, is not in the current SET CLASSLIB list (or if non-visual, the SET PROCEDURE list. I agree, open it using the Class Browser, and dump the code using the View Code button.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform