Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Container does not show on form
Message
De
25/02/2005 06:29:48
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Container does not show on form
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Divers
Thread ID:
00990466
Message ID:
00990466
Vues:
48
The container FleetExtras_DK initializes just fine, so why can't I see it on the form?

I'm adding it at runtime, because, depending on the gcCountry parameter that's being passed to the exe, different stuff is being displayed.

BTW, this initializes ok
ThisForm.Pages1._Page2.oFleetExtras = NEWOBJECT((cFleetExtras),'USERFORMS')
but this does not
ThisForm.Pages1._Page2.oFleetExtras = NEWOBJECT(&cFleetExtras,'USERFORMS')
Why?

Anyway, here's the code:
cFleetExtras = 'FleetExtras_'+ ALLTRIM(gcCountry)
ThisForm.Pages1._Page2.ADDPROPERTY('oFleetExtras',.NULL.)

TRY 
   ThisForm.Pages1._Page2.oFleetExtras = NEWOBJECT((cFleetExtras),'USERFORMS') 
CATCH
   cFleetExtras = 'FleetExtras_DK'
   ThisForm.Pages1._Page2.oFleetExtras = NEWOBJECT((cFleetExtras),'USERFORMS')
ENDTRY

ThisForm.Pages1._Page2.oFleetExtras.Top  = 202
ThisForm.Pages1._Page2.oFleetExtras.Left = 6
ThisForm.Pages1._Page2.oFleetExtras.Visible = .T.
TIA
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform