Re: [libreoffice-users] Is there a way for a Basic macro to detect what application is running it?

2014-10-22 Thread Volker Lenhardt
Hi to all, the most simple approach to distinguish the different behavior is to use an error handler. In the latest version of my translation of Andrew Pitonyak's OOME I give an example (see pp. 605-609). Andrew has changed his example to just handle LO alone. Have a look at

Re: [libreoffice-users] Is there a way for a Basic macro to detect what application is running it?

2014-10-22 Thread Volker Lenhardt
I got a PM from Johnny feeling sorry that his German couldn't be profound enough to follow a lengthy course of explanations. So it's my turn to feel sorry for taking it for given that my post could suffice. I will be more precise. I need to explain why I consider it more expensive to control

Re: [libreoffice-users] Is there a way for a Basic macro to detect what application is running it?

2014-10-20 Thread Cley Faye
Quickly looking through the (not very user friendly) help for LibreOffice Basic, the closest thing I found is GetSolarVersion, but that's probably not enough. While checking if the type is a struct can be a good workaround, it's not completely future-proof; there is a need for a function to

Re: [libreoffice-users] Is there a way for a Basic macro to detect what application is running it?

2014-10-20 Thread Alexandro Colorado
A ​ctually there was another change from the post that I put before, the Setup.xcu seems to be replaced by the ​registrymodifications.xcu This has an ID check that list the following node: item oor:path=/org.openoffice.Setup/Office prop oor:name=LastCompatibilityCheckID oor:op=fuse

Re: [libreoffice-users] Is there a way for a Basic macro to detect what application is running it?

2014-10-20 Thread Fernand Vanrie
Johnny, Regina , under tools we have a function GetProductName() who returns for me LibreOffice4.2 hope it helps Fernand Hi Johnny, You might distinguish it with Basic function IsUnoStruct? Kind regards Regina Johnny Rosenberg schrieb: Here's my problem: I have both Apache OpenOffice

Re: [libreoffice-users] Is there a way for a Basic macro to detect what application is running it?

2014-10-20 Thread Regina Henschel
Hi Fernand, Fernand Vanrie schrieb: Johnny, Regina , under tools we have a function GetProductName() who returns for me LibreOffice4.2 hope it helps Thanks for the hint to the application libraries. It works in Apache OpenOffice too. Kind regards Regina Fernand Hi Johnny, You might

[libreoffice-users] Is there a way for a Basic macro to detect what application is running it?

2014-10-19 Thread Johnny Rosenberg
Here's my problem: I have both Apache OpenOffice and LibreOffice installed and I use them both. I have quite a few Calc files with Basic macros. Today I found my first difference between the Basic API in LibreOffice vs. Apache OpenOffice: Dim Dlg As Object, Ctl As Object

Re: [libreoffice-users] Is there a way for a Basic macro to detect what application is running it?

2014-10-19 Thread Regina Henschel
Hi Johnny, You might distinguish it with Basic function IsUnoStruct? Kind regards Regina Johnny Rosenberg schrieb: Here's my problem: I have both Apache OpenOffice and LibreOffice installed and I use them both. I have quite a few Calc files with Basic macros. Today I found my first