PxPlus User Forum

Twitter Twitter Twitter

Show Posts

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.

Messages - Mike King

Pages: [1] 2 3 ... 45
Programming / Re: *tools\unzip not extracting files if read only
« 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
« 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.

Registration and Setup / Re: Moving PxPlus License key
« 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.

Programming / Re: Passing Array{all} to an object in NEW()
« on: November 23, 2021, 10:59:13 AM »

I just tested it with the array being the only parameter and it worked fine.

Programming / Re: Automatic update
« on: November 23, 2021, 10:46:09 AM »
You should probably first contact the company that supplied your PxPlus.  Generally PxPlus (or its predecessor ProvideX) came as part of a business application.  Your application supplier should be able to advise you on the latest version of PxPlus they are using and how to obtain it.

Version 6.30 is a very old release and no longer supported however you may be able to find a copy of it at https://archives.pvxplus.com/

As for accessing the data there is an ODBC driver available that should allow you to access the files along with a command line processor PXPSQL that allows you to execute SQL commands against the file structure and get the data out.

One thing should be noted though, the ODBC driver and PXPSQL utilities rely on the system having and using a Data Dictionary (Schema definition) .  Some older applications neither use nor come with the data dictionary so this may not be a option for you.  In this case your original application provider may have to assist you or you may be able to find others on this forum that can.

Programming / Re: Passing Array{all} to an object in NEW()
« on: November 23, 2021, 10:30:37 AM »
Seems to work for me here on version 17.00. 
Personally though, I would simply use a global variable for the array to avoid having to pass it around all the time.

Here is my test:

->load "a.pvc
0010 DEF CLASS "a"
0020 PROPERTY name$
0030 FUNCTION dump()
0040 DUMP
0060 END DEF
0070 on_create:
0080 ENTER val1$,arry${ALL}
0090 PRINT "In object creation"
0100 PRINT arry${ALL}
0110 LET arry$[2,2]="two-two"
0120 EXIT

->load "nov23
0010 BEGIN
0020 DIM a$[1:2,1:3]
0030 FOR i=1 TO 2
0040 FOR j=1 TO 3
0050 LET a$[i,j]="<"+STR(i)+","+STR(j)+">"
0060 NEXT
0070 NEXT
0080 PRINT a${ALL}
0090 PRINT "Heading to object"
0100 LET oId=NEW("a","Test",a${ALL} FOR PROGRAM)
0110 PRINT "Back from object"
0120 PRINT a${ALL}
0130 END

Test run:
PxPlus-2020 Web (Ver:17.00/MS-WINDOWS) Serno:1700-001-xxxxxxx
(c) Copyright 2005-2020 PVX Plus Technologies Ltd. (All rights reserved)
  Website: http://www.pvxplus.com
->run "nov23
Heading to object
In object creation
Back from object

Webster Plus / Re: Can Webster+ menu launch iNOMADS programs
« on: November 10, 2021, 11:00:28 AM »
Yes -- you can launch iNomads and in fact ANY URL can be included in a menu or side bar link.

One of our goals was that clients will start to use Webster+ to integrate with their iNomads application and longer term start moving portions of their application to Webster itself thus creating true web-based applications.

Language / Re: Large records in file
« on: November 01, 2021, 09:08:26 PM »
Why are you using version 5.10 of the ODBC?
It from 2012 and has not been supported for a number of years.

The current ODBC driver is version 7.

Programming / Re: QR Code
« on: November 01, 2021, 11:06:47 AM »
You can find an updated makeqrcode program here that accepts an optional third argument consisting of a 1 character string with the Quality indicator (LQMH) as follows:

Level L (Low) - ​7% of data bytes can be restored.
Level M (Medium) - 15% of data bytes can be restored.
Level Q (Quartile) - ​25% of data bytes can be restored.
Level H (High) - 30% of data bytes can be restored.

Calling sequence is thus:

  CALL "*tools/makeqrcode","Text to encode", "outputfile.png", "X"

Where "X" can be L, M, Q, or H.

Programming / Re: QR Code
« on: October 28, 2021, 02:26:26 PM »
Try adding &quality=H to the URL used in the *tools/makeqrcode program:

LET url$="https://www.pvxplus.com/qrcode.pvp?serno="+STR(TCB(33))+"&text="+CVS(text$,"ASCII:URL")+"&quality=H"

Nomads / Re: Finding the previous CTL ID on Default Push Button event
« on: October 28, 2021, 08:49:03 AM »
Generally, for buttons, you can set the signal only option to have the system process the event but not change focus.  This means the current focus is the control you were on when the button was pressed.

The only drawback is any on change or loss of focus logic for the control you were on when pressing the button will not fire as you technically aren't leaving that control.

Language / Re: Large records in file
« on: October 27, 2021, 05:21:58 PM »
That should allow it to work although we would STRONGLY recommend you use a newer version of PxPlus as version 10.20 is over 9 years old and there have been many changes, fixes and enhancement since that time.

Off Topic / Re: BBx to Notepad
« on: October 27, 2021, 10:42:14 AM »
Why not simply do a BBx to PxPlus conversion then look at the PxPlus programs?

While there will some differences as the conversion will have changed things like the BBx function names to their PxPlus equivalents, if you are simply trying to understand what the system did this may be the easiest.

Once in PxPlus you can use our editors to view the code (*E, *it or ED+), or if desired use our SVN IMPORT command have all programs converted to their text equivalent for loading into the editor of your choice.

Lastly, another alternative might be to use the BBx _bundle utility to create a big text file which contains multiple programs.

Programming / Re: QR Code
« on: October 27, 2021, 10:27:07 AM »
The *tools/makeqrcode is really just a web wrapper we provided to the Linux command 'qrencode' which is available for pretty much any Linux system.  We provided this tool so that clients on systems that didn't have the ability to run qrencode could still generate QR codes. 

When you call this utility, it passes the text to a special URL on our web site that takes the text, passes it to qrencode, and returns the resultant image.

If you are on a Linux system, you likely have qrencode already installed on your system or can install it yourself using tools like yum or apt-get.  This will allow you to invoke the command  directly from your program and specify whatever options you need.

Documentation on the command can be found at https://linux.die.net/man/1/qrencode

Language / Re: Large records in file
« on: October 26, 2021, 05:36:58 PM »
The combination of Extended record size and auto-increment (the "+" in the key definition) is not available on that version.

Pages: [1] 2 3 ... 45