Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
But I was playing around here, and discovered that nothing works for me, as usual.
I have a stack open with handlers in the SE. Works just fine. The SE itself is reported as being line 2 of "the stacks". I can verify that there is precisely one field in that stack (because there is only one tab open in the SE). But If I:
Perhaps because, even though there is indeed a field 1 in the SE, and even though I have working handlers there, yet since that field is empty, I cannot set the backColor of any of its non-existent text.
The topic you refer to deals with colorizing text in any field but _not_ in the Script Editor.
The active script editor is stack "revNewScriptEditor 1" if only one Script Editor is open.
The name of the field that holds the currently displayed script is "Script" (that holds for multiple tabs because the script editor just swaps scripts into that field to display the current tab)
Provided that the script editor was opened once and edits a script then
When I first started fooling around with this, I simply typed in "revNewScriptEditor 1" because that is what I knew it to be at work. When that did not work I checked "the Stacks" I found that the name of the SE was "revNewScriptEditor.8".
Everything now seems to work, including, of course, using 'fld 1" as well as "fld script".
@Richmond.
I have been "at" HC for 35 years. With LC, 13.
All;
I understand how stacks can be created on the fly for certain purposes. But do not understand how I can ask for the current status of "the stacks", and get a result that includes, among several stacks that do indeed exist, a stack that nobody has ever heard about.
The "stacks" is "a list of all stack files that contain an open stack", whereas the "openStacks" contains "a list of the names of all open stacks.'"
Hmmm.
Sure, querying a property (the "text" of a field on that stack) might not yield anything except empty. At least it has a field. Well and good. But where did it come from? And who really cares?