"Picture"(objet) > as chaine puis "Picture" as (objet) ? vb6

Bubar92Bubar92 Messages postés 51 Date d'inscription mercredi 24 novembre 2004 Statut Membre Dernière intervention 23 août 2005 - 8 mai 2005 à 11:49
BasicInstinct Messages postés 1470 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 20 octobre 2014 - 9 mai 2005 à 06:12
Bonjour



1)Variable = "Picture"(objet) doit devenir une chaine
puis
2)Variable doit devenir un Objet



Merci


C.V




<TD id=HB_Focus_Element vAlign=top width="100%" background="" height=250 body UNSELECTAB<>

3 réponses

Neo.balastik Messages postés 796 Date d'inscription jeudi 17 mai 2001 Statut Membre Dernière intervention 5 mai 2009 7
8 mai 2005 à 17:14
Pourquoi un tel procédé ?
Utilise plutôt une variable de type Variant qui elle pourra contenir un objet. Le type String est incapable de faire cela...

Guy
0
Bubar92Bubar92 Messages postés 51 Date d'inscription mercredi 24 novembre 2004 Statut Membre Dernière intervention 23 août 2005
8 mai 2005 à 17:30
bonjour
merci de ta reponce
je sauvegarde dans un fichier txt
mon objet = picture
Print #2, "largeur de mon Objet Picture" & Picture.Width


<TD id=HB_Focus_Element vAlign=top width=\"100%\" background=\"\" height=250 UNSELECTAB< body>

puis
je lit
je recuperesi chaine \"largeur de mon Objet alors\" chaine \"Picture\"
puis la mon probleme je veux Chaine pour faire un objet
car Chaine.Width=valeur

C.V
0
BasicInstinct Messages postés 1470 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 20 octobre 2014 12
9 mai 2005 à 06:12
'lut



tu peux faire un truc comme ca normalement



dim CTRL as object

For each CTRL in me.controls

if CTRL.name="MyPicture" then

CTRL.Width=100

endif

next



++



BasicInstinct
0
Rejoignez-nous