Section One BBS

Welcome, Guest.


Subject: console.getstr Date: Fri May 29 2015 11:02 am
From: High Spirit To: All

Working on something and can't seem to figure it out. Looking at the JavaScript 
Objet Model Reference for the getstr command, I see the usage:

console.getstr([string] [,maxlen=128] [,mode=K_NONE])

What is the [string] for?

I was thinking it was a default value for the input but I cannot get that to 
work.

eg:

console.print("Input Here: ");
console.getstr("value", 25, K_NOSPIN);

would display:

Input Here: value

and the "value" would be highlighted and changed on first keystroke.

Am I missing something or am I mis-interpreting what [string] is for?

Thanks.


-- High Spirit

---
 ■ Synchronet ■ Digital Creation BBS -- bbs.digitalcreationbbs.com:2323

Previous Message       Next Message
Replies: console.getstr (echicken)console.getstr (Digital Man)