textarea help, please

new BookmarkLockedFalling
turbov21
Guest

Guest Avatar

Post by turbov21 on Oct 10, 2007 19:37:22 GMT -5

Here's what I'm using:


[start]
cls
textarea #text, ""
print ""
link #tb, "Sumbit", [show text]
wait

[show text]
cls
text$ = #text contents$()
html "<p>" + text$ + "</p>"
link #st, "Once more", [start]
wait


Here's what I'm getting:

[glow=red,2,300]Runtime Error: text$ = #text contents$()
Invalid handle: #text[/glow]

It fails when my handle is #text, #txa, and just #tx. I've looked at the blogCSS code, and thought I was using it in the same manner.
Last Edit: Oct 10, 2007 19:37:44 GMT -5 by turbov21
Janet
Global Moderator
*****

Janet Avatar

Posts: 276

[br]
Jerry Muelver
Administrator
*****

Jerry Muelver Avatar

Posts: 521

carlgundel
Administrator
*****
Creator of Run BASIC

carlgundel Avatar

Posts: 975

Jerry Muelver
Administrator
*****

Jerry Muelver Avatar

Posts: 521

Post by Jerry Muelver on Oct 10, 2007 20:57:05 GMT -5

:o

Hugely, enormously valuable lesson learned! I was working out the CLS problem while Janet was answering, and never saw her explanation until I came back just now. This is VERY interesting, and will solve a number of problems for me even before they have a chance to occur!
Janet
Global Moderator
*****

Janet Avatar

Posts: 276

[br]
turbov21
Guest

Guest Avatar