Using CountGadgetItems on a editorgadget
Using CountGadgetItems on a editorgadget
Is there no CountGadgetItems(), if i use a editorgadget in Spiderbasic?
Re: Using CountGadgetItems on a editorgadget
No, it's not supported. You can still get the whole text and count the LF$, it should work.
Re: Using CountGadgetItems on a editorgadget
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
Re: Using CountGadgetItems on a editorgadget
Thank you very much!
Unfortunately, this is of no use to me if I want to count text breaks.
Unfortunately, this is of no use to me if I want to count text breaks.