Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why Prompt just print One line in command line?

2 REPLIES 2
Reply
Message 1 of 3
cxhair
481 Views, 2 Replies

Why Prompt just print One line in command line?

Hi every one, there is a VBA code which a small test that show prompt can just print ONE line, i don't know why:

Private Sub test()
    Dim i As Integer
    For i = 0 To 5
        ThisDrawing.Utility.Prompt vbCr & "This is the " & i & " time!"
    Next
End Sub

 what i want is like this in command line:

This is the 0 time!

This is the 1 time!

This is the 2 time!

This is the 3 time!

This is the 4 time!

This is the 5 time!

but unfortunately ,the commend line just print the last one "This is the 5 time!",i don't know what is going wrong ,please help me !

Thanks in advance !

2 REPLIES 2
Message 2 of 3
Alfred.NESWADBA
in reply to: cxhair

Hi,

 

try vbCrLf instead of vbCr.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 3
cxhair
in reply to: Alfred.NESWADBA

Hi,Alfred.NESWADBA,many thanks for your reply!

indeed, it really works,thank you so much!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost