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

vb.net convert getpoint value to string?

1 REPLY 1
Reply
Message 1 of 2
bart_van_tuyl
398 Views, 1 Reply

vb.net convert getpoint value to string?

I've got the feeling this post has landed in the wrong discussion group?

my question is however related to vb.net for AutoCAD 2013.

question:

i would like to use the getpoint method and display the coordinates of the point clicked in a textbox.

there's heaps of examples on the getpoint method. All work fine except when i want to use the result as a text string for use with a textbox.

dose anybody know how to "convert" the getpoint value.

also a lot of examples are in C# but i use simple vb.net code
1 REPLY 1
Message 2 of 2
hwalker
in reply to: bart_van_tuyl

I don't use full Autocad, but in general in vb to convert a number to text you use the function str$

 

eg

 

str$ (number variable) would return " number variable ". NOTE the spaces before and after the number.

 

If you want to get rid of the spaces it would be Trim$(str$(number variable). I can't remember whether you need the $ in the functions or not.

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

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

Post to forums  

Autodesk Design & Make Report

”Boost