i'm sorry James you are right...i was getting the asc mixed up with the hex...lets just disregard this post....i'm just going to trap for it with an error branch for now.
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.
#2
Language / Odd Behavior -64
September 09, 2025, 04:51:00 PM
I'm not sure what category to even put this under.
we have an an array that contains data like this:
key_pair$[1]="order_number$"+$01$+"123456"
we do
read data from key_pair$,sep=$01$ to variable$,value$
after that we do a via to assign value to variable...
here is the weird thing:
every now and then we will get one of the characters in order_number$ will be like -64 in terms of ascii value
so the _ is asc 95
we will get the asc 31 character instead
sometimes the R asc 82 will be asc 18
has anyone ever had anything at all like this happen?
thanks jeff
we have an an array that contains data like this:
key_pair$[1]="order_number$"+$01$+"123456"
we do
read data from key_pair$,sep=$01$ to variable$,value$
after that we do a via to assign value to variable...
here is the weird thing:
every now and then we will get one of the characters in order_number$ will be like -64 in terms of ascii value
so the _ is asc 95
we will get the asc 31 character instead
sometimes the R asc 82 will be asc 18
has anyone ever had anything at all like this happen?
thanks jeff
#3
Nomads / Re: ... in List Box
August 18, 2025, 09:47:33 AM
Hi James
no it is the first column and no images.
and i did a break point and i'm definitely changing right line of code.
watching it load.
thank you though.
jeff
no it is the first column and no images.
and i did a break point and i'm definitely changing right line of code.
watching it load.
thank you though.
jeff
#4
Nomads / Re: ... in List Box
August 18, 2025, 09:31:23 AM
Hi James
when i did an stp the column data it changed it but it just removed the space between the ...
so instead of
EKJKSX48WL ...
it showed
EKJKSX48WL...
when i did an stp the column data it changed it but it just removed the space between the ...
so instead of
EKJKSX48WL ...
it showed
EKJKSX48WL...
#5
Nomads / Re: ... in List Box
August 18, 2025, 09:28:18 AM
Hi James,
i tried that and it didnt seem to work
maybe i altered wrong line of code
i'll try again.
thanks
jeff
i tried that and it didnt seem to work
maybe i altered wrong line of code
i'll try again.
thanks
jeff
#6
Nomads / Re: Grid Images
August 18, 2025, 09:24:14 AM
Hi HendersonS,
I used to get notified when i was on a thread and someone replied to it. I'm not sure what i changed in my settings. I know Mike already replied but here was my call program where you pass in the Image Path
27000 ! ^1000
27010 COPY_IMAGE_TO_CLIPBOARD:
27020 ! This was originally Needed so Internal/External Users could right click and copy pictures to send to their customers.
27030 ! The Powershell Script was found on line.
27040 ! Mike King (5/8/2025) said that there was not a way to copy an image in Pxplus at this time.
27050 enter (IMAGE_PATH$)
27060 if nul(IMAGE_PATH$) then goto *end
27070 call "CAIREPOS;CREATE_TEMP_FILE",POWERSHELL_SCRIPT$,".ps1" ! This just creates a blank text file with a Unique Name
27080 let POWERSHELL_SCRIPT=unt; open lock (POWERSHELL_SCRIPT)POWERSHELL_SCRIPT$
27090 print (POWERSHELL_SCRIPT)"Add-Type -AssemblyName System.Drawing, System.Windows.Forms"
27100 print (POWERSHELL_SCRIPT)"$bitmap = New-Object System.Drawing.Bitmap("+quo+IMAGE_PATH$+quo+")"
27110 print (POWERSHELL_SCRIPT)"[System.Windows.Forms.Clipboard]::SetImage($bitmap)"
27120 close (POWERSHELL_SCRIPT)
27130 let CMD$="^powershell.exe -ExecutionPolicy Bypass -File "+quo+POWERSHELL_SCRIPT$+quo
27140 call "MCSYSC",CMD$ ! This internal program executes the powershell script
27990 exit
I used to get notified when i was on a thread and someone replied to it. I'm not sure what i changed in my settings. I know Mike already replied but here was my call program where you pass in the Image Path
27000 ! ^1000
27010 COPY_IMAGE_TO_CLIPBOARD:
27020 ! This was originally Needed so Internal/External Users could right click and copy pictures to send to their customers.
27030 ! The Powershell Script was found on line.
27040 ! Mike King (5/8/2025) said that there was not a way to copy an image in Pxplus at this time.
27050 enter (IMAGE_PATH$)
27060 if nul(IMAGE_PATH$) then goto *end
27070 call "CAIREPOS;CREATE_TEMP_FILE",POWERSHELL_SCRIPT$,".ps1" ! This just creates a blank text file with a Unique Name
27080 let POWERSHELL_SCRIPT=unt; open lock (POWERSHELL_SCRIPT)POWERSHELL_SCRIPT$
27090 print (POWERSHELL_SCRIPT)"Add-Type -AssemblyName System.Drawing, System.Windows.Forms"
27100 print (POWERSHELL_SCRIPT)"$bitmap = New-Object System.Drawing.Bitmap("+quo+IMAGE_PATH$+quo+")"
27110 print (POWERSHELL_SCRIPT)"[System.Windows.Forms.Clipboard]::SetImage($bitmap)"
27120 close (POWERSHELL_SCRIPT)
27130 let CMD$="^powershell.exe -ExecutionPolicy Bypass -File "+quo+POWERSHELL_SCRIPT$+quo
27140 call "MCSYSC",CMD$ ! This internal program executes the powershell script
27990 exit
#7
Nomads / ... in List Box
August 18, 2025, 09:18:50 AM
Hi All
we have a list box that has plenty of space to hold data in columns yet after certain column data we get ...
it causes confusion for Order Entry folks because they are not sure if they are picking the right item number.
Does anyone know what i can do to stop this?
i attached a file here.
jeff
we have a list box that has plenty of space to hold data in columns yet after certain column data we get ...
it causes confusion for Order Entry folks because they are not sure if they are picking the right item number.
Does anyone know what i can do to stop this?
i attached a file here.
jeff
#8
Language / Re: generating json from associative array
July 29, 2025, 03:42:51 PM
it does James thank you.
#9
Language / generating json from associative array
July 29, 2025, 02:31:36 PM
Hello,
I've generated JSON from an associative Array before. However, this next project i'm working on kind of requires an outer array (i.e. square brackets)...i'm not sure how to do that but the sample file looks like this:
[
{"Order":"123456",
"Customer":"ABC Co",
}
{"Order":"123457",
"Customer":"XYZ Co",
}
]
do i need to just build the inner JSON portions and then append the Square Brackets to beginning and end of the String before posting to web service?
thanks
jeff
I've generated JSON from an associative Array before. However, this next project i'm working on kind of requires an outer array (i.e. square brackets)...i'm not sure how to do that but the sample file looks like this:
[
{"Order":"123456",
"Customer":"ABC Co",
}
{"Order":"123457",
"Customer":"XYZ Co",
}
]
do i need to just build the inner JSON portions and then append the Square Brackets to beginning and end of the String before posting to web service?
thanks
jeff
#10
Language / Re: Precedence / Logical Operators
July 07, 2025, 03:02:15 PM
Hi James,
Thank you. I did read that. I dont know why but i had it my head that AND's would get executed first and i'm of course wrong.
Stated another way -> would you agree that in the absence of parentheses that multiple and/or's would get executed from left to right?
Thank you. I did read that. I dont know why but i had it my head that AND's would get executed first and i'm of course wrong.
Stated another way -> would you agree that in the absence of parentheses that multiple and/or's would get executed from left to right?
#11
Language / Precedence / Logical Operators
July 07, 2025, 01:41:36 PM
Hi All,
When looking at code that didn't use parentheses I want to understand what pxplus is doing behind the scenes.
in the following
X=1 OR 0 AND 0
PRINT X
X WILL EQUAL 0.
Can someone state why this is? (Michael Scott: "Explain it me like I'm 5")
When looking at code that didn't use parentheses I want to understand what pxplus is doing behind the scenes.
in the following
X=1 OR 0 AND 0
PRINT X
X WILL EQUAL 0.
Can someone state why this is? (Michael Scott: "Explain it me like I'm 5")
#12
Nomads / Re: Grid Images
May 07, 2025, 03:17:19 PM
Hi Mike,
i found a three line powershell script.
it worked great. Exactly what we needed.
thanks again.
jeff
i found a three line powershell script.
it worked great. Exactly what we needed.
thanks again.
jeff
#13
Nomads / Re: Grid Images
May 07, 2025, 11:57:00 AM
Hi Mike, so is there no way to copy the image that you know of
#14
Language / PxPlus Licenses Windows
May 07, 2025, 11:56:26 AM
Hello All,
is there any file or util that we could look at to see what processes are using Licenses.
the customer is trying to figure out which pxplus processes are using the licenses and which ones are not
thanks
jeff
is there any file or util that we could look at to see what processes are using Licenses.
the customer is trying to figure out which pxplus processes are using the licenses and which ones are not
thanks
jeff