Use GetGadgetItemText() column parameter to get a character at a particula position with EditorGadget()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Use GetGadgetItemText() column parameter to get a character at a particula position with EditorGadget()

Post by Quin »

Currently, with GetGadgetItemText(), it's possible to get a particular line in an EditorGadget, and the column value is ignored. I think it'd be great if the column value could optionally be specified to only return a character at the given line and column.
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Use GetGadgetItemText() column parameter to get a character at a particula position with EditorGadget()

Post by mk-soft »

Why, goes that way too ...

Code: Select all

temp.s = Mid(GetGadgetItemText(0, 15), 10, 1)
Debug temp
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: Use GetGadgetItemText() column parameter to get a character at a particula position with EditorGadget()

Post by Quin »

mk-soft wrote: Fri May 09, 2025 6:31 pm Why, goes that way too ...

Code: Select all

temp.s = Mid(GetGadgetItemText(0, 15), 10, 1)
Debug temp
Of course you can use Mid() for this. But this is a feature request topic, not a "how do I do this" question thread :D
Post Reply