the script of <object> with line numbers?
Bob Sneidar
bobsneidar at iotecdigital.com
Mon Aug 29 17:55:42 EDT 2022
Correction:
sort it numeric by word 1 of each
Bob S
On Aug 29, 2022, at 14:55 , Bob Sneidar <bobsneidar at iotecdigital.com<mailto:bobsneidar at iotecdigital.com>> wrote:
Maybe marginally better:
...
sort it by word 1 of each
Bob S
On Aug 29, 2022, at 14:50 , J. Landman Gay via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:
On 8/29/22 4:36 PM, Paul Dupuis via use-livecode wrote:
Is there a way (an existing function or command in the language or IDE) to get the script of an object WITH the line numbers as you see them in the IDE script editor?
OR
Do I just have to do something like:
put the script of tObject into tScript
repeat with i=1 to the number of lines in tScript
put i &space before line i of tScript
end repeat
Any secret IDE or LCS knowledge welcome. Thank you in advance.
How about:
get the script of <object>
split it by cr
combine it by cr and tab
sort it numeric
--
Jacqueline Landman Gay | jacque at hyperactivesw.com<mailto:jacque at hyperactivesw.com>
HyperActive Software | http://www.hyperactivesw.com<http://www.hyperactivesw.com/>
More information about the use-livecode
mailing list