PxPlus User Forum

Twitter Twitter Twitter

Recent Posts

Pages: [1] 2 3 ... 10
1
Language / Re: EXTRACT not locking?
« Last post by Mike King on Today at 02:49:23 PM »
This is actually a Linux issue.  Record locking is done by placing a Write lock against the file however Linux doesn't allow us to add a write lock to a read only file.

Also, since the EXTRACT directive can be used to position the file PxPlus could not return the error. A fairly common coding technique looking to read records starting with a known record key is to use an EXTRACT to the desired starting record then create a loop doing a standard READ next.  The EXTRACT positions the file such that a subsequent read next will return the extracted record making the coding cleaner.
2
Programming / Re: Spawning a session
« Last post by James Zukowski on Today at 11:56:58 AM »
That's an interesting twist. Haven't tried that before.

How about defining the panel as a Child Dialogue (maybe with Synchro-Lock)?
3
Programming / Re: Spawning a session
« Last post by Mike Hatfield on April 18, 2024, 09:39:00 PM »
What if the application is not Nomads - Character only?
4
Language / Re: Different Listbox Row Heights with Accented Characters
« Last post by James Zukowski on April 18, 2024, 03:16:34 PM »
This also seems to cause a problem with descenders, too. In the latest example, is that "Hague" or "Haque"?

Does anyone know if this is PxPlus or Windows behavior? Is there some setting I'm not setting?
5
Language / EXTRACT not locking?
« Last post by James Zukowski on April 18, 2024, 02:32:03 PM »
We encountered an interesting situation and could use some clarity and/or confirmation.

Using a Linux server (RHEL 7.9) with PxPlus v15.1 via WindX we open a test file and EXTRACT a record. In another session, open the same file and READ the record. No Error 0.

Upon closer examination, we noticed the Linux file permissions were "-rw-r--r--" and the file was "owned" by a different username. When we changed the permissions to "-rw-rw-rw-", the EXTRACT/READ above worked as expected.

So, it seems that an EXTRACT on a file where a WRITE cannot actually happen is treated as a READ, even though everything, including FIN(ch,"Extract"), suggests the EXTRACT really happened. Except it didn't.

Is this proper? Or is there something missing along the way?

Any guidance would be greatly appreciated.

Thanks!
6
Programming / Re: Spawning a session
« Last post by James Zukowski on April 18, 2024, 08:58:00 AM »
And to make things easier for the user, you could include a "Copy" button with each data field which will put it on the clipboard. They could then just click in the field and paste it.
7
Programming / Re: Spawning a session
« Last post by EVa on April 18, 2024, 03:19:11 AM »
As this appears to be a Nomads application, can't you use a concurrent window instead of spawning a new (but completely separate) session ?
8
Programming / Spawning a session
« Last post by Mike Hatfield on April 18, 2024, 01:34:40 AM »
Hi All, I'm running a plus/cs windx session.
I want to be able to open a new window/session from the current program.
In that new window I want to have it run a program that will display some lines of customer information text. When I find the text I want to switch back to the calling windx session and be able type in some of the text. When I'm done I want to close the new window/session either by clicking on the new session 'x' or issuing a close/drop or whatever in the calling program.
 
Would you believe in the nearly 26 years of programming with Pvx/PxPlus I've never had occasion to do this.
Is this accomplished by spawning a session or is there an easier way. I did do a test with *plus/cs/spawn. It gives me a new session window but none of the global variables from the calling application.
If this is the correct approach how would I place the following in the spawn argument cmdline   -  PROCESS "ARCM_INFO",%PATH_ROOT$+"dictionary/SM_CZ.EN",R2$

I don't seem to be able to do this with a dialogue window. IE Once inside the dialogue window you can't swith back and forth between the dialogue and calling program.

Thanks
9
Programming / Re: strange error 61
« Last post by James Zukowski on April 16, 2024, 12:53:18 PM »
Have you tried separating the OPEN from the LOCK?
10
Programming / Re: strange error 61
« Last post by Thomas Bock on April 16, 2024, 10:24:31 AM »
This is a WindX session and the security options are properly set.
The error occures at random. But how can that be? The file has just been created, so PxPlus must be able to open it.
Pages: [1] 2 3 ... 10