Using CountGadgetItems on a editorgadget
Posted: Mon Sep 09, 2024 8:26 am
Is there no CountGadgetItems(), if i use a editorgadget in Spiderbasic?
- a basic to master the web -
https://forums.spiderbasic.com/
Code: Select all
If OpenWindow(0, 0, 0, 322, 150, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
EditorGadget(0, 8, 8, 306, 133)
SetGadgetText(0, "This is a multiline text to edit" + #LF$ +
"in the EditorGadget()." + #LF$ +
"Third line")
Debug CountString(GetGadgetText(0), #LF$) + 1
EndIf