Search found 22 matches

by LeslieS
Sat Jan 01, 2022 8:03 pm
Forum: Macros and UNO API
Topic: [Solved] Watch window closed and can't find it now
Replies: 2
Views: 1411

Re: [Solved] Watch window closed and can't find it now

After some deliberation I decided to open a request for enhancement which can be found here
If you can close it, you should be able to open it.
It is a trivial matter but I feel that this could be easily corrected.
by LeslieS
Sat Jan 01, 2022 8:39 am
Forum: Macros and UNO API
Topic: [Solved] Watch window closed and can't find it now
Replies: 2
Views: 1411

[Solved] Watch window closed and can't find it now

I am really fighting it tonight. Among other things I accidentally undocked the watch window and couldn't get it to dock again. I closed it now and it is gone an I cant find anywhere to reshow it. How do I get the watch window back? And now I have undocked the call stack window and it too will not d...
by LeslieS
Thu Dec 30, 2021 10:24 pm
Forum: Macros and UNO API
Topic: Missing parameter problem & its evaluation
Replies: 23
Views: 16125

Re: Missing parameter problem & its evaluation

Stupid Basic where a variable can be empty, missing, null, nothing in addition to the regular types: # Online Python compiler (interpreter) to run Python online. # Write Python 3 code in this online editor and run it. def foo(s): print(type(s)) foo(12) foo("foo") foo(None) # foo() obvious...
by LeslieS
Mon Dec 27, 2021 2:28 am
Forum: Macros and UNO API
Topic: [Solved] Add control to Libre Base form at runtime
Replies: 8
Views: 2691

Re: Add control to Libre Base form at runtime

Yes I could have used a dialog.
I already implemented your other suggestion, an array/collection of objects.
Thanks, I will keep that in mind for future reference.
by LeslieS
Sun Dec 26, 2021 8:45 pm
Forum: Macros and UNO API
Topic: [Solved] Add control to Libre Base form at runtime
Replies: 8
Views: 2691

Re: Add control to Libre Base form at runtime

Villeroy, you are guessing and you shouldn't guess. This form is simply for getting data into the tables. The format of the source data is beyond my control The data comes from the clipboard as unformatted text that has to be cleaned up and delimited. The labels are simply to display what was delimi...
by LeslieS
Sun Dec 26, 2021 1:17 am
Forum: Macros and UNO API
Topic: [Solved] Add control to Libre Base form at runtime
Replies: 8
Views: 2691

Re: Add control to Libre Base form at runtime

For me it is a lack of a grid control that started this. So instead of a grid I have 80+ label controls but they didn't get added with consecutive indexes. In order to use them in processing I have to either access them by name or by index. I see no possibility of changing the indexes of existing co...
by LeslieS
Sat Dec 25, 2021 8:34 pm
Forum: Macros and UNO API
Topic: [Solved] Add control to Libre Base form at runtime
Replies: 8
Views: 2691

[Solved] Add control to Libre Base form at runtime

Final edit: Ratslinger has found the (simple) solution to the control positioning and you can find it here The anchor type property needs to be changed to 'At Page'. Edit: A flaw has been discovered and it renders the method shown here as useless (at this point). A control that has been dynamically ...
by LeslieS
Fri Dec 24, 2021 10:01 pm
Forum: Macros and UNO API
Topic: [Solved] How to back up macro library files
Replies: 7
Views: 2394

Re: How to back up macro ibrary files

Excellent answers, thank you very much.
by LeslieS
Fri Dec 24, 2021 2:24 am
Forum: Macros and UNO API
Topic: [Solved] How to back up macro library files
Replies: 7
Views: 2394

[Solved] How to back up macro library files

I had a crash and the restoring did not recover a bunch of code I had in a couple of libraries.
Luckily I found it elsewhere.
Backing up a LibreCalc sheet doesn't seem to include Library files.
I would like to backup library files. Is it possible?
by LeslieS
Mon Dec 20, 2021 6:42 am
Forum: Macros and UNO API
Topic: [Solved] How to write non-contiguous range in macro
Replies: 6
Views: 2038

Re: How to write non-contiguous range in macro

I am just trying to reduce a big block of code where 8 sets of row and column titles are repeated over non-contiguous blocks.
by LeslieS
Mon Dec 20, 2021 5:10 am
Forum: Macros and UNO API
Topic: [Solved] How to write non-contiguous range in macro
Replies: 6
Views: 2038

[Solved] How to write non-contiguous range in macro

Is it possible to use non contiguous ranges in some calls such as in this example?

Code: Select all

MySheet.getCellRangeByName("A72:A79","A82:A89")  ' obviously this doesn't work		
by LeslieS
Sun Dec 19, 2021 12:51 am
Forum: Macros and UNO API
Topic: [Solved] How to remove conditional format via macro
Replies: 2
Views: 1333

Re: How to remove conditional format via macro

Ok, I see.
Thank you very much.
by LeslieS
Sat Dec 18, 2021 10:19 pm
Forum: Macros and UNO API
Topic: [Solved] How to remove conditional format via macro
Replies: 2
Views: 1333

[Solved] How to remove conditional format via macro

For some reason the code below does not remove the conditional formats on a range of cells. option compatible option explicit public sub testt() dim oSheet as object dim oC as object dim n as integer, x as integer oSheet = ThisComponent.sheets.getByName("Sheet1") for n = 0 to 9 oC =oSheet....
by LeslieS
Sat Dec 04, 2021 3:47 am
Forum: Macros and UNO API
Topic: Indexed property not working
Replies: 14
Views: 3232

Re: Indexed property not working

My eyes are the problem. I have used class_initiate instead class_initialize. Yikes. Sorry. But sadly it still doesn't seem to work after correcting that mistake. I get 'object variable not set on the n.item(1) line. As to why care; the only real reason would be to add a 'known issue' to documentati...
by LeslieS
Sat Dec 04, 2021 2:18 am
Forum: Macros and UNO API
Topic: Indexed property not working
Replies: 14
Views: 3232

Re: Indexed property not working

It wouldn't let me put LibreOffice as a signature. I am a newbie to this forum and don't get the necessity of a signature. I will remove it if possible. Edit: it is changed. I can see how the different package may change the answers given. I posted the question to the suggested intermediate site rat...
by LeslieS
Sat Dec 04, 2021 1:51 am
Forum: Macros and UNO API
Topic: Indexed property not working
Replies: 14
Views: 3232

Re: Indexed property not working

It is not only possible in VB6 it is also possible in VBA From https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/property-let-statement [ Public | Private | Friend ] [ Static ] Property Letname ( [ arglist ], value ) [ statements ] [ Exit Property ] [ statements ] En...
by LeslieS
Fri Dec 03, 2021 10:34 pm
Forum: Macros and UNO API
Topic: Indexed property not working
Replies: 14
Views: 3232

Re: Indexed property not working

You honestly believe that ignoring the second parameter may have been intentional?
You are generous.
by LeslieS
Fri Dec 03, 2021 9:33 pm
Forum: Macros and UNO API
Topic: Indexed property not working
Replies: 14
Views: 3232

Re: Indexed property not working

Yes, JeJe that is a workaround.
It seems to me however that, since everything I have read says property indexing should work, that this is a bug.
But thanks to both responders.
by LeslieS
Fri Dec 03, 2021 8:17 pm
Forum: Macros and UNO API
Topic: Indexed property not working
Replies: 14
Views: 3232

Indexed property not working

Why does this not work as expected? I have this class (CTest) with an array member that I want to set using an indexed property let statement option Compatible option ClassModule option Explicit private _n() as integer private sub class_initiate() redim _n(1 to 10) end sub public property let item(b...
by LeslieS
Sun Nov 28, 2021 4:38 am
Forum: Calc
Topic: [Solved] Calculate total of only the unpaid bills
Replies: 6
Views: 3061

Re: Calculate total of only the unpaid bills

Expanding on what ZiZi64 said:

Code: Select all

=SUMIF(D3:D7,"=",B3:B7)    

I note this because it may not be obvious or easy to find how to create the criterion where the cell is anything but empty.
That seems to be done with the "=".
by LeslieS
Sat Nov 27, 2021 6:29 am
Forum: Calc
Topic: [Solved] Script to selectively populate data in a column
Replies: 6
Views: 4599

Re: Looking for script to selectively populate data in a col

Hello, I have been looking at this and I really don't think you need a programming solution. At least not yet. Start by making a Team List page that includes a list of all the teams and their corresponding pitching stat. Add a Matchups page that uses two columns; Column A is the team name and Column...