Page 1 of 1

getting javascript object values

Posted: Fri Oct 09, 2020 9:42 pm
by Andy

Code: Select all

! v_rate = {}
! v_gSystem.getSoftwareFormat(v_rate, null, null)
! v_sbrate = v_rate.val
debug sbrate
In the above code (it works), i need to use rate.val with some sb commands. Is this the correct way to get a value from an object or is there a more direct way to access the data?

Re: getting javascript object values

Posted: Fri Oct 09, 2020 11:00 pm
by Peter
That really works?

gSystem.getSoftwareFormat() is to my knowledge a function and not a variable (iOS, right?). So the 'v_' would be wrong.

Re: getting javascript object values

Posted: Sat Oct 10, 2020 7:53 am
by Andy
Peter wrote:That really works?

gSystem.getSoftwareFormat() is to my knowledge a function and not a variable (iOS, right?). So the 'v_' would be wrong.

sorry Peter. It was a typo. I updated it