[Gambas-user] MIN and MAX from a (JSON) Collection

KKing kicking177 at gmail.com
Fri May 5 17:26:17 CEST 2023


I have roughly the following and bit more around looping through to plot 
on a chart

> Dim intCount As Integer
> Dim strJson As String
> Dim strWork01 as String
> Dim cJson As Collection
>
> cJson = JSON.Decode(strJson)
>
> intCount = cJson["data"]["group"][0]["datetime"].Count
> strXAxisValue = cJson["data"]["group"][0]["datetime"][intCount - 1]
> strYAxisValue = cJson["data"]["group"][0]["values"][intCount - 1]

Question is it possible to get the MIN and MAX value of each series?

Or do I need to loop through myself to determine?

K.


More information about the User mailing list