Здравствуйте!
На форме имеется некоторое количество Shape и Line. Нужно их уничтожить.
Set line1 = Nothing
не помогает. Из-за чего и как Быть?





Set SomeObject = Nothing

Dim s As Shape
Set s = Line1
Set s = Nothing


Dim Line1 as Line
Dim c as Control
Set Line1 = Controls.Add("VB.Line", "Line1")
Set Line2 = Controls.Add("VB.Line", "Line2")
...
Set Line99 = Controls.Add("VB.Line", "Line99")
....
For Each c In Me.Controls
if TypeName(c)="Line" then Set c = Nothing
Next



Сейчас этот форум просматривают: Google-бот и гости: 14