Command Prompt

Command Prompt

Anonymous
Not applicable
233 Views
2 Replies
Message 1 of 3

Command Prompt

Anonymous
Not applicable
Hello - I having a problems figuring out how to duplicate a LISP command in
VB.
What I'm trying to do is would look like this in LISP
(princ "\nEat at Joe's")
(princ "\nIt's real good")
(princ)

For some reason in VB

acadDoc.Utility.Prompt "Eat at Joe's"

acadDoc.Utility.Prompt "It's real good"

looks like this on the AutoCAD prompt
Command: Eat at Joe'sIt's real good

How do I get the prompt method to do a "New Line"
I have tried appending chr(13) to the strings but it has no effect

Thanks in advance if you can help.
0 Likes
234 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
added in your code (" & vbcr")

regards, alfred

--
___________________________________________________________
Alfred Neswadba
Ingenieur Studio HOLLAUS
A-3100 St.Poelten, Brandstroemg. 6..... +43 699 21807303
Internet ................................ www.hollaus.at
E-Mail ...................... alfred.neswadba@hollaus.at
___________________________________________________________

"Andrew Armstrong" schrieb im
Newsbeitrag news:6A58E8E40C13F2A84D85EAD8E8197937@in.WebX.maYIadrTaRb...
> Hello - I having a problems figuring out how to duplicate a LISP command
in
> VB.
> What I'm trying to do is would look like this in LISP
> (princ "\nEat at Joe's")
> (princ "\nIt's real good")
> (princ)
>
> For some reason in VB
>
> acadDoc.Utility.Prompt "Eat at Joe's" & vbcr
>
> acadDoc.Utility.Prompt "It's real good" & vbcr
>
> looks like this on the AutoCAD prompt
> Command: Eat at Joe'sIt's real good
>
> How do I get the prompt method to do a "New Line"
> I have tried appending chr(13) to the strings but it has no effect
>
> Thanks in advance if you can help.
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks
vbCr did not work, but vbLf did.

"Alfred Neswadba" wrote in message
news:5F45461FC3E52DB238FC68C78523F519@in.WebX.maYIadrTaRb...
> added in your code (" & vbcr")
>
> regards, alfred
>
> --
> ___________________________________________________________
> Alfred Neswadba
> Ingenieur Studio HOLLAUS
> A-3100 St.Poelten, Brandstroemg. 6..... +43 699 21807303
> Internet ................................ www.hollaus.at
> E-Mail ...................... alfred.neswadba@hollaus.at
> ___________________________________________________________
>
> "Andrew Armstrong" schrieb im
> Newsbeitrag news:6A58E8E40C13F2A84D85EAD8E8197937@in.WebX.maYIadrTaRb...
> > Hello - I having a problems figuring out how to duplicate a LISP command
> in
> > VB.
> > What I'm trying to do is would look like this in LISP
> > (princ "\nEat at Joe's")
> > (princ "\nIt's real good")
> > (princ)
> >
> > For some reason in VB
> >
> > acadDoc.Utility.Prompt "Eat at Joe's" & vbcr
> >
> > acadDoc.Utility.Prompt "It's real good" & vbcr
> >
> > looks like this on the AutoCAD prompt
> > Command: Eat at Joe'sIt's real good
> >
> > How do I get the prompt method to do a "New Line"
> > I have tried appending chr(13) to the strings but it has no effect
> >
> > Thanks in advance if you can help.
> >
>
0 Likes