Menu

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.

Show posts Menu

Messages - Aaron Woodhouse

#1
Programming / Re: JSON get_num validation
December 02, 2025, 09:05:36 AM
We'll look further into error trapping for the JSON Object to make it work better using ERR.

In the meantime, another solution could be to use the 'Exists(key$) function, which would tell you if it's safe to get a value, since it'll return 1 or 0.
#2
Programming / Re: JSON get_num validation
November 24, 2025, 03:40:05 PM
Hi Martin,

The error 11 was meant to be a hard error, but you can use something like a try-catch to handle values not being found. Alternatively, you may have better use with the no_validation flag, since you can just compare the return value.

DOM=*next is meant for use with indexed data, but with associative arrays, and hence JSON, we store data as key-value pairs, which are not indexable. There are JSON Object functions that actually allow you to index it, but it should be avoided.

Like Mike mentioned; depending on what you are doing you could alternatively disable the 'NE' parameter.
#3
Programming / Re: JSON get_num validation
October 24, 2025, 09:14:52 AM
Hi Rob!

Using the get_num function normally without the no_validation flag will return an error 11 if the key doesn't exist. It does some checks within the object's keys to make sure your provided key will work.

If you use the no_validation flag, it will skip this initial key check, and instead return an error 23 since it can't actually find the value.

It will return an error either way, but the key validator would tell you the issue is due to the key, not that there is no value.
#4
Language / Re: 'XK'
August 19, 2025, 04:28:14 PM
I believe you can. As long as XK is enabled, a KEYED LOAD will rebuild the key structure in VLR format. Could always make a test copy to try on.

The XK doc page has some programs included that can check the block sizes of the file.
https://manual.pvxplus.com/?/parameters/xk.htm
#5
Language / Re: generating json from associative array
August 07, 2025, 12:27:12 PM
As a side note, you may also find good use of the JSON Object that was added in v22.00  :)
https://manual.pvxplus.com/?/utilities/obj_json.htm
#6
Off Topic / Re: Reference Manual Web Page
June 05, 2025, 01:49:54 PM
Hi James,

Thanks for noticing this. It was due to some css styling.

The old truncating behaviour should now be used again after refreshing your browser page & cache by using shift-f5
#7
v22.00 will be out very soon
Keep your eyes peeled ;)

Make sure to check out the release notes when it does, we've got some cool stuff coming 8)
#8
Programming / Re: Visual Studio extension
September 25, 2024, 04:57:38 PM
Hello,

Just to answer your question on VS Code: VS Code does not include the ability to compile without the use of a compiler extension. It was built as a "Code Editor", unlike Visual Studio which has the ability to compile and run your code directly.

Hope this helps!