This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
31
Programming / ERR option ignored
« on: July 20, 2022, 10:42:32 AM »
For a few weeks we encounter a strange error 65 every now and then, when our programs create a COM object.
According to Eric we should check for the object reference > 0. But I wonder why the err option is ignored in these cases.
Code: [Select]
ON_CREATE:
def object outlook, "[LCL]Outlook.Application", err = *next
if not(tcb(2)) then nameSpace = outlook'getNameSpace("MAPI")
return
This has been a save way ever since. On the WindX side MSG(-1) returns "Exception occured (err/ret=2/0)"According to Eric we should check for the object reference > 0. But I wonder why the err option is ignored in these cases.
32
Wish List / Re: query version of ODBC-driver
« on: March 07, 2022, 07:29:26 AM »
Stéphane
That works pretty good. Thank you.
That works pretty good. Thank you.
33
Wish List / Re: query version of ODBC-driver
« on: March 04, 2022, 02:00:38 AM »
I want to retrieve this information at runtime. SQLGetInfo sounds promising. Can you please post a sample? I can't find anything in the docs.
34
Wish List / query version of ODBC-driver
« on: March 03, 2022, 09:11:40 AM »
I would like to query the version of the local ODBC-driver and the SQL-server.
35
Nomads / Re: redefining keys
« on: February 25, 2022, 02:09:13 AM »
I did so and the DD shows no names any more. But fin(1,"FILE_CREATE") still returns the old names.
36
Nomads / redefining keys
« on: February 24, 2022, 07:25:45 AM »
I removed kno #2 and #3 from a file and added a new kno #2. After a click on "Update File" that kno has the name of the old kno #2.
The segment notation is correct but the name is wrong. How can I get rid of it?
The segment notation is correct but the name is wrong. How can I get rid of it?
39
Programming / Re: pass composite string to an extended command
« on: December 23, 2021, 02:18:02 AM »
Mike,
Two ENTERs? Nice! I never thought of that.
Here is what I use finally:
Two ENTERs? Nice! I never thought of that.
Here is what I use finally:
Code: [Select]
ENTER
LOCAL param$,cmd$,var$
ENTER param$
LET param$=STP(param$,2)
LET cmd$="dim var$:iol("+param$+")"
EXECUTE cmd$
LET var$=VIS(param$)
PRINT LST(IOL(var$))
PRINT SUB(var$,SEP,"~")
END
40
Programming / pass composite string to an extended command
« on: December 22, 2021, 09:47:34 AM »
I'm looking for a way to pass one or more composite string(s) to an extended command.
Something like:
-}dim rec$:iol(1)
-}read record (1,key="abc")rec$
-}extCmd rec$
Something like:
-}dim rec$:iol(1)
-}read record (1,key="abc")rec$
-}extCmd rec$
41
Nomads / *browser and Ctrl+F
« on: November 05, 2021, 04:43:31 AM »
Is there a way to enable Ctrl+F in *browser while viewing a PDF file?
42
Programming / taskbar location and size
« on: September 29, 2021, 09:16:12 AM »
How can I retrieve the location and size of the taskbar?
I can determine the current monitor with fin(0,"XYMonitors") and obj(0). But a call to *winapi;getMonitorInfo only seems to work for monitor #1.
I can determine the current monitor with fin(0,"XYMonitors") and obj(0). But a call to *winapi;getMonitorInfo only seems to work for monitor #1.
43
Programming / Re: SSL connection to MySQL
« on: July 07, 2021, 04:03:23 AM »
Let me rephrase the question.
Using [MYSQL], how can I pass the certificates to the OPEN command?
Using [MYSQL], how can I pass the certificates to the OPEN command?
44
Programming / SSL connection to MySQL
« on: July 06, 2021, 09:17:42 AM »
Is it possible to build a SSL connection to a MySQL-Server?
How to do it with the OPEN directive?
How to do it with the OPEN directive?
45
Thin Client/WindX / Re: MS Window Size
« on: June 30, 2021, 09:46:11 AM »
I can remember a similar behavior a long time ago. As far as I can recall the solution was to make sure each user use his/her own pvx.ini. Otherwise the last one wins. Use "%userprofile%\pvx.ini" when spawning the new process.