Conversion type error

Conversion type error

Anonymous
Not applicable
397 Views
2 Replies
Message 1 of 3

Conversion type error

Anonymous
Not applicable

 Debug.Print(" - " + oProperty.Name + " [ID:" + oProperty.PropId + "] : " + Space(30 - Len(oProperty.Name)) + oProperty.Expression)

 

 

 

while executing this code some error is showing.

 

error is:- Conversion from string " - Title [ID:" to type 'Double' is not valid.

 

 

What is the problem.anyone help??

0 Likes
398 Views
2 Replies
Replies (2)
Message 2 of 3

Vladimir.Ananyev
Alumni
Alumni

Try to convert PropId to string: 

      Debug.Print (" - " + oProperty.Name _
        + " [ID:" + CStr(oProperty.PropId) _
        + "] : " _
        + Space(30 - Len(oProperty.Name)) _
        + oProperty.Expression)

 This works for me.
Cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 3

Anonymous
Not applicable

Nice...Its working. Thanks so muchSmiley Happy

0 Likes