![]() |
Forum Index : Microcontroller and PC projects : Problem with VAL(
Author | Message | ||||
bigmik![]() Guru ![]() Joined: 20/06/2011 Location: AustraliaPosts: 2949 |
Gday All, I have discovered what I think is a bug in VAL or maybe I am just stupid or maybe both. a$="a" Print Val(a$) Returns 0 instead of expected 97 And similarly if the string has a value of "&" it returns Error: Invalid prefix I know I am crazy but I dont think I have done anything wrong here. I am using ver 4.6 (not 4.6a or b) Regards, Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
bigmik![]() Guru ![]() Joined: 20/06/2011 Location: AustraliaPosts: 2949 |
Ignore that, I AM Crazy.. Val(a$) is not what I want ASC(a$) Sorry for that ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9586 |
If it makes you feel any better Mick, I have tripped on that one more then once too. ![]() Now, if a$="97", then as you know(now!) Print Val(a$) would print 97 on the screen. Still, it is a very useful command when you need it.(Val, I mean) Smoke makes things work. When the smoke gets out, it stops! |
||||
bigmik![]() Guru ![]() Joined: 20/06/2011 Location: AustraliaPosts: 2949 |
Thanks Grogs, I feel good in knowing I am not the only `Goose' in the world. Now you know why I programme with my soldering iron. Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |