Page 1 of 1
Posted: Sunday 14th January 2018 5:14pm
I have discovered a very useful tool in the Gambas toolbox 'Ends' so I thought I would share it with you.
Handle all the controls in the program below in 5 lines of code: -
Posted: Monday 15th January 2018 10:05am
That's great cogier! an interesting example.
I played around with it for a while, and then I sort of 'drifted off', creating this one liner using Last.Name.
Posted: Monday 15th January 2018 3:16pm
Excellent! Well using that method you could shorten: -
TextBox1.Text = Mid((Last.name), InStr(Last.name, "Button") + Len("Button"))
TextBox1.Text = Mid(Last.name, InStr(Last.name, "Button") + 6)
It just goes to show that there is always another way to do things.