Search found 18 matches

by bazzvn
Sunday 30th April 2023 12:30pm
Forum: General
Topic: Using REGEX to return text from an html block
Replies: 4
Views: 660

Re: Using REGEX to return text from an html block SOLVED

Thank you all for your suggestions. Yes, I realized before reading your responses that it was unnecessary to use regex, and that Instr() and Mid() would do the trick. I am not familiar with the gb.xml.html component, but maybe I should also play around with that when I have a bit more time. I'm sorr...
by bazzvn
Saturday 29th April 2023 3:03am
Forum: General
Topic: Using REGEX to return text from an html block
Replies: 4
Views: 660

Using REGEX to return text from an html block

I want to retrieve all the text between the beginning and end of an html block, for example between the tags <mycontent> and </mycontent>. The text between the beginning and ending tags could be of arbitrary length and could contain any characters. It should be simple with regex, but despite trying ...
by bazzvn
Friday 27th January 2023 12:44pm
Forum: General
Topic: Embedded forms - accessing procedures on parent forms
Replies: 3
Views: 1398

Re: Embedded forms - accessing procedures on parent forms

Thank you Bruce for such a simple solution. Sadly I did not know about this, which would have saved me lots of somewhat ugly workarounds in the past. I work mainly with sqlite databases, and the reason I like embedded subforms is that they enable me to encapsulate and localize code for viewing and m...
by bazzvn
Tuesday 24th January 2023 2:15pm
Forum: General
Topic: Embedded forms - accessing procedures on parent forms
Replies: 3
Views: 1398

Embedded forms - accessing procedures on parent forms

In some of my programs I have been using embedded forms 3 levels deep - i.e. a parent form, a child form on the parent form, and a grandchild form on the child form. For the most part this works well, but I have run into problems trying to execute a procedure on a child form (2nd level) from a grand...
by bazzvn
Monday 17th January 2022 4:36am
Forum: General
Topic: 3.16 runtime error: Program returns the value 1
Replies: 2
Views: 2200

Re: 3.16 runtime error: Program returns the value 1 [SOLVED]

Thanks for the suggestion, Cogier; it is much appreciated. It didn't work, but it did lead me indirectly to find the missing component. After adding a blank line and compiling one of my programs, and then trying to run it, the Console output indicated that the gb.qt5.x11 component was missing. I did...
by bazzvn
Friday 14th January 2022 1:14pm
Forum: General
Topic: 3.16 runtime error: Program returns the value 1
Replies: 2
Views: 2200

3.16 runtime error: Program returns the value 1

I use the KDE Plasma version of Sparky LInux 6 (based on Debian Bullseye) as my daily workhorse. Debian Bullseye has Gambas 3.15.2, which likely will not see an upgrade to 3.16. However, I have been experimenting with the KDE version of Sparky LInux 7 (based on Debian Testing) which has Gambas 3.16....
by bazzvn
Sunday 18th July 2021 2:17am
Forum: General
Topic: TextArea - Selecting text with code
Replies: 6
Views: 3576

Re: TextArea - Selecting text with code [SOLVED]

Thank you Bruce - that does exactly what I want, and when combined with cut, copy and paste as in Cogiers code above, the selection can moved or copied to wherever I choose.
Much appreciated.
bazzvn
by bazzvn
Wednesday 14th July 2021 3:36pm
Forum: General
Topic: TextArea - Selecting text with code
Replies: 6
Views: 3576

Re: TextArea - Selecting text with code

Thank you Bruce and Cogier. Maybe I wasn't very clear. Basically what I want to do is use a single mouse right-click somewhere in a line of text to select the whole line (which could be wrapped within the control) and then use a popup menu to provide options for processing it further. It should be p...
by bazzvn
Wednesday 14th July 2021 9:43am
Forum: General
Topic: TextArea - Selecting text with code
Replies: 6
Views: 3576

TextArea - Selecting text with code

I am trying to select a line of text in a TextArea programmatically, but I must have missed something because I keep getting an error. As an example, I have a form with two text areas, and I want to transfer some text from one to the other. Here is the code I have tried. Public Sub Form_Open() Dim i...
by bazzvn
Wednesday 2nd June 2021 2:16pm
Forum: General
Topic: Exclude files from being displayed in a FileView control
Replies: 10
Views: 6820

Re: Exclude files from being displayed in a FileView control

Thank you everyone. I did a quick check and I can't get any of the solutions suggested by tincho, Bruce or cogier to work. As pointed out already, odt files are excluded and as it turns out, so too are Freeplane *.mm files. I didn't have time to explore further, but it seems files with extensions th...