` Printed Icetips Article

Icetips Article



Clarion in general: Converting hex oct or bin to decimal using Evaluate
2002-03-03 -- Doug
 
Newsgroups: comp.lang.clarion

Like others have said... it is not a direct CW function.

However, there is an API that can do it for you... sorry I do not have it
handy, but if you search MS KB, you should find it.

Also, I copied this some time ago from somebody else:

An easy way to convert to decimal is:
Hex:  EVALUATE('0' & MyNum & 'h')
Oct:  EVALUATE('0' & MyNum & 'o')
Bin:  EVALUATE('0' & MyNum & 'b')



Printed May 3, 2024, 6:07 pm
This article has been viewed/printed 35114 times.
Google search has resulted in 241 hits on this article since January 25, 2004.