PxPlus User Forum

Twitter Twitter Twitter

Recent Posts

Pages: 1 ... 8 9 [10]
Nomads / Re: Checking if 'Fired Off From' Nomads
« Last post by Mike King on July 14, 2023, 10:12:49 AM »

You likely could use TCB( 8 ) to see if there is anything on the GOSUB stack since if the routine is PERFORMED then the GOSUB stack will be empty.

Code: [Select]
0010 GOSUB test
0020 PERFORM PGN+";test"
0030 GOSUB test2
0040 END
0050 !
0060 test2:
0070 PERFORM PGN+";test"
0090 test:
0100 PRINT "TCB ( 8 )=",TCB(8)

TCB ( 8 )= 20
TCB ( 8 )= 0
TCB ( 8 )= 0

Web Services / Re: Google Maps
« Last post by Mike King on July 14, 2023, 09:39:58 AM »
Here's another option:

(Replace spaces with + as per standard URL encoding)

Returns JSON
Web Services / Re: Google Maps
« Last post by Mike King on July 14, 2023, 09:37:42 AM »
There are a number of easy to use web based API's you can use for this.

For example https://positionstack.com/documentation

Do a google query and they will point you to various options.  There may be a cost involved if you do a lot of calls but casual requests often are available at no charge.
Thin Client/WindX / Windx on a MAC
« Last post by michaelgreer on July 14, 2023, 09:25:19 AM »
Customer wishing to access their PxPlus application running on a windows server from their Mac.  Any ideas on solutions here.
Nomads / Checking if 'Fired Off From' Nomads
« Last post by Jeffrey Ferreira on July 14, 2023, 09:17:23 AM »
Hi All,

So often times we will gosub or perform a routine that is also the code behind a multi-line. For Example CUSTOMER_ID_ENTERED. 

When we want to know if this came from nomads or from code we check ID$="CUSTOMER_ID".
I know it may seem like I'm splitting hairs but i feel this is not 100% foolproof and i have case where I really need to know (was this routine fired off from Nomads via the multi-line)

is there a way i can be 100% sure?


Web Services / Google Maps
« Last post by James Zukowski on July 13, 2023, 05:49:11 PM »
It seems that the Google Maps object is only usable within Nomads. We're looking into using the GeoCode functionality to verify addresses being entered in various application programs. Is there a way to do that with the current object? Is there something else we can use? Do we need to develop something ourselves?

Thank you very much for your fast replies, support and help!
the \K is an argument to the cmd.exe program

The COMSPEC environment variable resolves to something like "%SystemRoot%\system32\cmd.exe" the \K is an argument passed to it telling it to remain open after running the command that follows.

Dera Mr. Austen

Thanks again for your help. While studying the manual for the INVOKE directive again, I came across a section that I don't understand and cannot find any further information in the manual.

In the manual you write:

invoke env("COMSPEC")+" /K DIR C:\WINDOWS"

The env("COMSPEC") when running on Windows determines the correct command processor to be used. Some Windows commands (such as COPY and DIR) are built into command process and can be called using this type of statement.

I realise that using the env("COMSPEC") commands like COPY, DIR etc that are integrated into command.com will be used. But what does the /K do? I understand the DIR C:\WINDOWS command but why is there a /K before the DIR command? When I time this into a cmd-window I get an error. So it's not a windows specific command.

This time I really tried to find the answer in the manual but I could not find what /K does and if there are any other such options available.

Best regards
Dear Mr. Austen

Thanks so much for your help. I tried it and YES.... it works!

I always thought the HIDE option would just minimize the window into the task bar, but now it does not appear at all. Fantastic.

Best regards
Alain Stucki
Pages: 1 ... 8 9 [10]