91
Nomads / Re: Checking if 'Fired Off From' Nomads
« Last post by Mike King on July 14, 2023, 10:12:49 AM »Jeff
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.
-:run
TCB ( 8 )= 20
TCB ( 8 )= 0
TCB ( 8 )= 0
-:
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"
0080 RETURN
0090 test:
0100 PRINT "TCB ( 8 )=",TCB(8)
0110 RETURN
-:run
TCB ( 8 )= 20
TCB ( 8 )= 0
TCB ( 8 )= 0
-:
92
Web Services / Re: Google Maps
« Last post by Mike King on July 14, 2023, 09:39:58 AM »Here's another option:
https://geocode.maps.co/search?q=25+Centurian+Blvd,+Markham+Ontario
(Replace spaces with + as per standard URL encoding)
Returns JSON
https://geocode.maps.co/search?q=25+Centurian+Blvd,+Markham+Ontario
(Replace spaces with + as per standard URL encoding)
Returns JSON
93
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.
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.
94
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.
95
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?
thanks
jeff
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?
thanks
jeff
96
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?
Thanks!
Thanks!
97
Thin Client/WindX / Re: Windows 11 and WindX: switching window focus after NET USE
« Last post by Alain Stucki on July 12, 2023, 04:35:34 AM »Thank you very much for your fast replies, support and help!
98
Thin Client/WindX / Re: Windows 11 and WindX: switching window focus after NET USE
« Last post by Devon Austen on July 11, 2023, 03:37:31 PM »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.
https://ss64.com/nt/cmd.html
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.
https://ss64.com/nt/cmd.html
99
Thin Client/WindX / Re: Windows 11 and WindX: switching window focus after NET USE
« Last post by Alain Stucki on July 11, 2023, 03:20:09 PM »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:
*************************************************
Example:
invoke env("COMSPEC")+" /K DIR C:\WINDOWS"
Note:
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
Alain
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:
*************************************************
Example:
invoke env("COMSPEC")+" /K DIR C:\WINDOWS"
Note:
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
Alain
100
Thin Client/WindX / Re: Windows 11 and WindX: switching window focus after NET USE
« Last post by Alain Stucki on July 11, 2023, 02:53:39 PM »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
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