Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21873

set reference

$
0
0
Hello everybody.it is the first time that I am visiting this website. I am a student and I have a project about graphics like drawing lines ,etc. i have created a class named clobjet.added to that, 2 classes (cllgn and clarc) which implement the first. how do I know if one which is an clobjet is a cllgn or clarc. I am trying to use this code but it doesn't work.

private coll as collection
Private Myline as cllgn
Private Myarc as clarc
private Myobj as clobj

for each Myobj in coll
Select Case MyObj.NameObj
Case "Ligne"
Set Myobj = Myline
Case "Polygone"
Set MyObj = Myarc

End Select
next

Please, Help me. thank you so much.

Viewing all articles
Browse latest Browse all 21873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>