Thread: VAL keyword
View Single Post
  #10 (permalink)  
Old 12-12-2009, 03:32 PM
SarahWard SarahWard is offline
Senior Member
 
Join Date: Nov 2009
Posts: 153
Default

Quote:
Originally Posted by dlfallen View Post
VAL had other "features" as well. For one, it would strip out spaces, linefeeds, and tabs. So, for example, VAL("12 34") woud return 1234.

One good thing is that it would recognize &H and &O as hex or octal numbers.

The bad news is that it only recognized the the period as the decimal separator so it was not useful in international applications.

As I recall, I had a custom VAL function that I used in my aplications. Not hard to code and it did what I wanted the way I wanted it done. When speed was important, I would code it in assembler. Of course, that was in the pre-Windows era and processors were slow. I have no inclination to program in assembler under Windows.
It still sounds like a really useful keyword.

Assembler under windows would be like building a coastal barrier my moving one pebble at a time.
Reply With Quote