PxPlus User Forum

Twitter Twitter Twitter

Recent Posts

Pages: [1] 2 3 ... 10
Programming / Re: *tools\unzip not extracting files if read only
« Last post by Mike King on December 02, 2021, 11:18:58 AM »
Sorry -- That should have been "OUTPUT" not "INPUT"
Programming / Re: *tools\unzip not extracting files if read only
« Last post by cwellis67 on December 02, 2021, 09:46:08 AM »
** If it is important, we are using PxPlus v15.10

The FIN(ch,"INPUT") tells me that it is available for INPUT, but not that it is input ONLY, which would be the case for a Read Only file, right? When I use the FIN(ch, "INPUT") on a file that is NOT read only, it returns a "1" as well. I need to know that a file is set to Read Only or not. I thought I could use the "WRITE Ok" bit returned from checking the mid(FIN(ch),27,2) bytes, but even if the file is NOT read only, the "write ok" bit is still not set, just the OPEN INPUT bit is set.

An example of what I am seeing is this:
With a file ("1.txt") set to read only:
? hta(mid(fin(1),27,2))
? fin(1,"Input")


When the same file is not read only:
? hta(mid(fin(1),27,2))
? fin(1,"Input")

Programming / Re: *tools\unzip not extracting files if read only
« Last post by Mike King on December 01, 2021, 04:39:17 PM »
You can test the FIN(channel, "INPUT") to see if a file is opened for INPUT only.  It will return "1" or "0" ("1" if input only)

Due to nature of different operating systems, there is no method to change file permissions. Windows and Linux/Unix deals with permissions differently thus you need custom code based on your target operating system.

As for unzip, if there is a question of read only permission we would suggest you extract to an empty directory to avoid overwriting a file that the user may have specifically set read only to prevent changing the file.

Programming / *tools\unzip not extracting files if read only
« Last post by cwellis67 on December 01, 2021, 04:13:47 PM »
On Windows, I've noticed that the *tools\unzip utility will generate an untrapped error if the file being extracted already exists AND it is read only on the target system. There doesn't seem to be a way around this other than checking to see if the file on the target system is read only, and if it is, change the flag and then try the extract record from the zip file to overwrite it.

There also doesn't seem to be a nice and clean way of determining through PxPlus if a file is read only or not. Currently, I am OPENing the file, then checking the FIN() to see if the OPEN INPUT bit is set. That seems to be the only indicator that the file was Read Only; otherwise, the file is OPENed normally. Is this the best, or only, way to determine programmatically if a file is Read Only or not?

Likewise, changing the flag seems to require using the system call to use the "attrib" command. Is that also correct? There's no exposed Windows objects I assume?


Registration and Setup / Re: Moving PxPlus License key
« Last post by Mike King on November 30, 2021, 10:24:04 AM »
In situations where the current system has failed, you can use the installation key provided with your original purchase to temporarily get your system up and running for 30 days.

Registration and Setup / Moving PxPlus License key
« Last post by Bruno Biancucci on November 30, 2021, 10:05:42 AM »
Well, last week I received a call from a client who's old server (Windows 7pro actually) finally gave up the ghost and my application was off line.  We quickly moved them over to the onsite backup dev. box and we were back in business that same morning.  A new Dell Server (1u, Windows server 2019) is on order and with any luck Santa's elves will have it done by Christmas.

Is there an automated process, much like the license registration process, where someone can simply de-register a license key from one (decommissioned) system and apply it to a new computer.   In the past we've had to call this into support @ Pvx Plus.  Some one would delete the registration at their end and we could then register the existing license key on a new box.

License is for: PxPlus 2017 - e-Comm (Windows).

Off Topic / Re: Oferta de Trabajo
« Last post by harryv on November 26, 2021, 03:08:55 PM »
We are a Software Development Company and we are looking for developers to develop with PxPlus, as well as experience in implementations with Inomads.
If anyone is interested, you can contact me by email hjsalva2@gmail.com.
Off Topic / Oferta de Trabajo
« Last post by HendersonS on November 26, 2021, 09:17:20 AM »
Saludos a Todos,

Somos Una Empresa de desarrollo de Software y estamos buscando programadores para desarrollo con PxPlus, así como experiencia en implementaciones con Inomads.
Si Alguien esta interesado puede contactarme por correo electrónico hjsalva2@gmail.com.

Programming / Re: Automatic update
« Last post by abarzov on November 25, 2021, 11:17:12 AM »
Thank you !
Programming / Re: Passing Array{all} to an object in NEW()
« Last post by Peter.Higgins on November 23, 2021, 01:06:16 PM »

My testing worked as well.  But the error 46 persisted even after changing out the array for the three strings needed. Turned out to be a property declaration where I got creative awhile back and decided to test returning a local variable rather than using a get & label.  Obviously never got to the test part.
Pages: [1] 2 3 ... 10