getting javascript object values

Just starting out? Need help? Post your questions and find answers here.
Andy
Posts: 46
Joined: Sat Feb 15, 2020 5:19 pm
Location: Larnaca, Cyprus
Contact:

getting javascript object values

Post 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?
Last edited by Andy on Sat Oct 10, 2020 7:53 am, edited 1 time in total.
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: getting javascript object values

Post 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.
Andy
Posts: 46
Joined: Sat Feb 15, 2020 5:19 pm
Location: Larnaca, Cyprus
Contact:

Re: getting javascript object values

Post 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
Post Reply