|
I am using AutoCAD VBA
I am debuging a VBA AutoCAD Program for the following statement
If elem.Name = TxtAttBlock.text Then
This statement is false even when is see the strings match each other in de******.
Is this because they are not the same type of variable? If so, how do
I make this statement test for a string match?
Thank you,
For your Information I am using the following code.
For Each elem In ThisDrawing.PaperSpace
If elem.EntityName = "AcDbBlockReference" Then
If elem.Layer blocklayer Then GoTo NxtelemPaper
elemText = elem.Name
If elem.Name = TxtAttBlock.text Then
foundAttributes = True
Array1 = elem.GetAttributes
c = c + 1
End If
End If
End if |
|