Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to convert letter to number in iLogic

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
zdhrichard
952 Views, 3 Replies

How to convert letter to number in iLogic

I am making a iPart with iLogic.

 

I need a function to convert letter to number or convert number to letter as we did in VB for Excel.

 

For example: Char(65)="A"; CODE("A")=65, and so on.

 

Could somebody help?

 

My Inventor is Inventor 2009 SP2, iLogic is 2009.

 

Thanks in advance.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
3 REPLIES 3
Message 2 of 4
mrattray
in reply to: zdhrichard

iLogic accepts VBA functions. I use the Chr() function in iLogic frequently for coding in smart descriptions. (sales insists on using quotes for inches in our ERP system so I have to use the " & chr(34) & " trick)

Mike (not Matt) Rattray

Message 3 of 4
zdhrichard
in reply to: mrattray

Thanks lot.

 

Chr() function is working.

 

Do you know the function as CODE("A")? I need convert Letter to Number too.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 4 of 4
zdhrichard
in reply to: mrattray

Do not worry. I found it.  ASC("A") will be 65. That correct.

 

Thanks lot.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory

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

Post to forums  

Autodesk Design & Make Report