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

With in a With

$
0
0
Can I have a With in a With?

I have two objects that are indexed. One is a UC and the other is a UDT

Instead of this....

Code:

UC(index).Text = UDT(index).uText
UC(index).Value = UDT(index).uValue
UC(index).Image = UDT(index).uImage

etc

...can I have this

Code:

With UC(index)
  With UDT(index)
    .Text = .uText
    .Value = .uValue
    .Image = .uImage
        '
      etc
        '
  End With
End With


Viewing all articles
Browse latest Browse all 21839

Trending Articles



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