| Sysop: | KK4QBN |
|---|---|
| Location: | Chatsworth, GA |
| Users: | 22 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 05:33:20 |
| Calls: | 1,220 |
| Calls today: | 1 |
| Files: | 94,829 |
| U/L today: |
0 files (0K bytes) |
| D/L today: |
221 files (1,988M bytes) |
| Messages: | 30,384 |
| Posted today: | 0 |
I'm trying to use console.getkeys to have a user select a page in an address book they want to go to.
I have a variable, pages, which contains a number so I'm using
var keypress = console.getkeys(pages);
According to the jsobjs file:
"get one key from of a list of valid command keys, or a number between 1 and maxnum"
Since I'm passing a number, I would expect only to be able to input a number between 1 and whatever pages is, however it lets me enter any character.
What am I doing wrong?
Just in case, I also tried forcing pages to be typeof number.