Have you tried passing "true" or "false" instead of 1 or 0?
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
General Announcements / Re: PVX Plus August 2025 Update
October 21, 2025, 10:29:21 AM
Registration ran fine.
Has the program started? It's been about 1/2 hour since scheduled start, and still in the waiting room.
Has the program started? It's been about 1/2 hour since scheduled start, and still in the waiting room.
#3
Registration and Setup / Re: Moving PvxPlus
October 14, 2025, 02:08:20 PM
The client (WindX) is the client. The server (Linux, Unix, Windows, etc.) is the server. One side of the client-server pair can talk with the other side, regardless of the mix.
Caveat: If you have system calls to one type of server (e.g., Linux), they may need to be modified or changed to retrieve the desired information from another server (e.g., Windows).
Caveat: If you have system calls to one type of server (e.g., Linux), they may need to be modified or changed to retrieve the desired information from another server (e.g., Windows).
#4
Web Services / Re: Unexpected Response in an HTTP Request
September 19, 2025, 03:06:49 PM
This probably doesn't have a bearing on the situation, but do you have <CR> characters with the <LF> where POSTMAN does not?
#5
General Announcements / Re: PxPlus 2025 Patch 2 Update is now available
September 10, 2025, 10:46:47 AM
The downloads only seem to have updates for Windows and WindX. Do the updates affect any of the other builds?
#6
Language / Re: *INIFILE
September 10, 2025, 10:43:15 AM
It seems to follow the same search logic for non-exename ("mystuff.ini") files as well, instead of the prefix sequencing.
#7
Language / Re: *INIFILE
September 09, 2025, 06:07:43 PM
After resetting a few things, including restarting a new session, it looks like all is working as documented.
(Still curious about the default path, though...)
(Still curious about the default path, though...)
#8
Language / Re: Odd Behavior -64
September 09, 2025, 05:11:06 PM
Presuming you have confirmed the source of the transmission sent it properly...
There is a phenomenon that is pretty rare earthside, but seems to happen more commonly outside the atmosphere: cosmic ray bit-flipping. The 64 value change suggests that, as it's just a single bit in the byte. If it happens consistently at the same character, that might also suggest a memory error or failure of some sort.
Not sure what you're referring to with "the R asc 54 will be asc 12", as "R" is ascii 82.
There is a phenomenon that is pretty rare earthside, but seems to happen more commonly outside the atmosphere: cosmic ray bit-flipping. The 64 value change suggests that, as it's just a single bit in the byte. If it happens consistently at the same character, that might also suggest a memory error or failure of some sort.
Not sure what you're referring to with "the R asc 54 will be asc 12", as "R" is ascii 82.
#9
We're looking at using an INI file on our Linux server for some startup information. The documentation indicates the file spec can include a path, but that doesn't seem to be the case. It also doesn't look for the file in the same directory as the executable, which is what we would expect if no path is specified. It's actually in the user launch (home) directory. (We've got that part under control, btw)
Is there something wrong in the usage? The documentation? Other? We're using v15.10 (I know...) on RHEL 7 through WindX.
Is there something wrong in the usage? The documentation? Other? We're using v15.10 (I know...) on RHEL 7 through WindX.
#10
Nomads / Re: ... in List Box
August 18, 2025, 09:36:54 AM
If you're not adding it in there (accidentally?), then I'm not sure what else it could be.
Are you including images that might overflow the column size?
Are you including images that might overflow the column size?
#11
Nomads / Re: ... in List Box
August 18, 2025, 09:21:07 AM
Looks like it's space-padded. Remove those and "..." should go away.
#12
Programming / Re: Set Exel Column Widths
August 05, 2025, 12:25:54 PM
My apologies...I just re-read your original post and saw that you wanted to set the column widths before loading data. What I provided was to set the widths after loading the data.
That said, we also try to pre-set the widths before loading the data, with something like this:
This provides a preliminary sizing, with the AutoFit applied after all of the data is loaded in, and only referring to cell A1.
That said, we also try to pre-set the widths before loading the data, with something like this:
Code Select
N_Cols=<#Columns>
ColWidth[*]=<Column Widths>
! fnCell$(Col,Row) returns the Cell ID for Excel (eg, (4,6) returns "D6")
! fnColumn$(Col) returns the Column ID for Excel (eg, (30) return "AD")
!
for C=1 to N_Cols
Stat=MyExcel'SetRange(fnCell$(C,1))
Stat=MyExcel'SetColumnWidth(ColWidth[C])
! Assign MyExcel'Excel'Columns(fnColumn$(N))'NumberFormat$ if appropriate
next CThis provides a preliminary sizing, with the AutoFit applied after all of the data is loaded in, and only referring to cell A1.
#13
Programming / Re: Set Exel Column Widths
August 04, 2025, 04:20:31 PM
We use the *obj/excel object to export to Excel. With that set in MyExcel, we do 2 steps:
Code Select
Stat=MyExcel'SetRange("A1")
if Stat then Stat=MyExcel'Excel'Columns'AutoFit()This ensures we don't limit the sizing to only part of the spreadsheet, and then have Excel set the optimal fit for each column. #14
Language / Re: generating json from associative array
July 29, 2025, 03:31:48 PM
Basically, what you're doing is creating a JSON array. In PxPlus (v15.1 at least), an array has to have a name of some sort. In our experience, we've used "records". Then have an incrementing counter to identify the relative record within the array.
We send arrays with records that have a key value and a set of data values. Our associative array keys come out looking like:
and the result looks like:
For your example, the keys may come out like:
with the output looking like:
Hope this helps...
We send arrays with records that have a key value and a set of data values. Our associative array keys come out looking like:
Code Select
records.1.key_value
records.1.data.fieldnand the result looks like:
Code Select
{
"records":[
{
"key_value":"12345",
"data":{
"fielda":"abcde",
...
"fieldx":"xyz"
}
},
{
"key_value":"12346",
"data":{
"fielda":"abcdx",
...
"fieldx":"qqq"
}
}
]
}For your example, the keys may come out like:
Code Select
records.1.Order
records.1.Customer
records.2.Order
records.2.Customerwith the output looking like:
Code Select
{
"records":[
{
"Order":"123456",
"Customer":"ABC Co"
},
{
"Order":"123457",
"Customer":"XYZ Co"
}
]
}Hope this helps...
#15
Language / Re: Precedence / Logical Operators
July 07, 2025, 03:04:47 PM
That is "standard procedure" for any expressions. Those expressions at the same "precedence level" will be operated on from left to right.
And yes, parentheses will clarify any precedence questions (though not necessarily make it easier to read...).
And yes, parentheses will clarify any precedence questions (though not necessarily make it easier to read...).