Page 1 of 1 1
Topic Options
#185831 - 2008-02-29 04:05 PM Get Hex value from Decimal Variable
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1862
Loc: Hilversum, The Netherlands
Can't seem to figure out how to do this
If a value is heximal you can convert the variable by using
 Code:
? DecToHex($x)

But wat if you want to do it vice versa ?
You can't put a "&" in front of a variable... so anyone know how this can be achieved ?

Top
#185832 - 2008-02-29 04:15 PM Re: Get Hex value from Decimal Variable [Re: Arend_]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1862
Loc: Hilversum, The Netherlands
Got it already, sorry folks
 Code:
? Val("&"+$x)

Top
#185840 - 2008-02-29 07:09 PM Re: Get Hex value from Decimal Variable [Re: Arend_]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11563
Loc: CA
You're welcome, glad I could be of help telepathically
Top
#185883 - 2008-03-03 11:44 AM Re: Get Hex value from Decimal Variable [Re: NTDOC]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1862
Loc: Hilversum, The Netherlands
LOL
Top
#185894 - 2008-03-03 08:03 PM Re: Get Hex value from Decimal Variable [Re: Arend_]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22303
Loc: OK
that is kinda stupid thing...
to not have such function. that "&" thing might be shorter, but looks kinda dirty.
_________________________
!

download KiXnet

Top
#185895 - 2008-03-03 08:03 PM Re: Get Hex value from Decimal Variable [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22303
Loc: OK
btw, stupid font, have to change...
_________________________
!

download KiXnet

Top
#185897 - 2008-03-03 08:18 PM Re: Get Hex value from Decimal Variable [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22303
Loc: OK
DOC?!?!?
can't edit all the css properties with this "new and working" ubbthreads!

I hate that & symbol going like that with body5 class.
_________________________
!

download KiXnet

Top
#185899 - 2008-03-03 09:30 PM Re: Get Hex value from Decimal Variable [Re: Lonkero]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11563
Loc: CA
Well 7.3 is just around the corner
Top
#185910 - 2008-03-04 09:57 AM Re: Get Hex value from Decimal Variable [Re: NTDOC]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
&, almost looks like Et
ET phone home
I always have to look twice because of the way that symbol is shown

Top
#185947 - 2008-03-04 11:50 PM Re: Get Hex value from Decimal Variable [Re: Witto]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22303
Loc: OK
exactly.
looks dirty...
_________________________
!

download KiXnet

Top
#199623 - 2010-08-18 08:53 PM Re: Get Hex value from Decimal Variable [Re: Lonkero]
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I needed this today... Thank you for long ago answering my question today
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#199628 - 2010-08-19 11:38 AM Re: Get Hex value from Decimal Variable [Re: Radimus]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1862
Loc: Hilversum, The Netherlands
No problem ;\)
Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 20 anonymous users online.
Newest Members
Hadfevfegrt477a, Hdrthtsr19956, Kylie99, msmile042, rayd8
17598 Registered Users

Generated in 0.038 seconds in which 0.012 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org