It is currently Mon Oct 20, 2014 5:45 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Apr 07, 2008 12:24 pm 
Offline
User avatar
 WWW  Profile

Joined: Wed Jan 09, 2008 10:23 am
Posts: 359
Location: Glasgow, Scotland
Is there any way of converting a number as hex to a string? Essentially what I am trying to do is this:

A$=STR$(~NUMBER)

As you are probably aware this will just result in an error.

Kind regards,

Francis.


Top
 
PostPosted: Mon Apr 07, 2008 12:58 pm 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
curiously, A$=STR$~number (without the brackets) works just fine :)


edit: or A$=STR$~(number)

seems to be a special case in the parsing of STR$.


Top
 
PostPosted: Mon Apr 07, 2008 2:00 pm 
Offline
User avatar
 WWW  Profile

Joined: Wed Jan 09, 2008 10:23 am
Posts: 359
Location: Glasgow, Scotland
I just knew it would be something simple like that. :roll:

Thanks! :D

Kind regards,

Francis.


Top
 
PostPosted: Tue Aug 25, 2009 4:16 pm 
Offline
 Profile

Joined: Sat Aug 22, 2009 7:45 pm
Posts: 34
RichTW wrote:
curiously, A$=STR$~number (without the brackets) works just fine :)
edit: or A$=STR$~(number)
seems to be a special case in the parsing of STR$.


It's not a special case. ~ is a parameter to STR$, not a function.

The syntax is: STR$[~]<expression>


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron