Search found 40 matches
- Sun Dec 27, 2020 8:51 am
- Forum: Javascript
- Topic: Remove black border
- Replies: 2
- Views: 5132
Re: Remove black border
Thanks, missed that for some reason. That post will help with many other tweaks
- Sat Dec 26, 2020 4:19 pm
- Forum: Javascript
- Topic: Remove black border
- Replies: 2
- Views: 5132
Remove black border
Does anyone know how to remove the black borders around clicked gadgets like buttons and lists?
- Mon Dec 07, 2020 11:53 am
- Forum: Javascript
- Topic: Access SB List from Javascript?
- Replies: 2
- Views: 6086
Re: Access SB List from Javascript?
nice
i was looking at the debugger and found
i was looking at the debugger and found
Code: Select all
t_mystructure.current._mydata.array[v_arrayindex]
- Mon Dec 07, 2020 11:39 am
- Forum: Javascript
- Topic: Access SB List from Javascript?
- Replies: 2
- Views: 6086
Access SB List from Javascript?
Hi, i have a structure that contains an array as one of its element. I need to access this array from javascript code. I can access an array directly using !a_arrayname. How can we get the array contents in a list from javascipt?
Thanks
Thanks
- Tue Nov 03, 2020 7:11 am
- Forum: Javascript
- Topic: Javascript const
- Replies: 6
- Views: 6566
Re: Javascript const
Thanks Peter, i get it now. 'Protected' ensures that the variable is local inside the procedure even if the same variable exists globally so that the return value is always that of the procedure.
- Mon Nov 02, 2020 3:43 pm
- Forum: Javascript
- Topic: Javascript const
- Replies: 6
- Views: 6566
Re: Javascript const
yes, i just found it in the console. it does not matter that var_audio is not a const? i just have to make sure i dont change the value of this variable?
- Mon Nov 02, 2020 3:36 pm
- Forum: Javascript
- Topic: Javascript const
- Replies: 6
- Views: 6566
Re: Javascript const
Thanks Peter
Out of curiosity. What is the transpiled javascript for the code you fixed?
Out of curiosity. What is the transpiled javascript for the code you fixed?
- Sun Nov 01, 2020 11:09 am
- Forum: Javascript
- Topic: Javascript const
- Replies: 6
- Views: 6566
Javascript const
Procedure initAudio() !const AudioContext = window.AudioContext || window.webkitAudioContext !const v_audio = new AudioContext() ProcedureReturn audio EndProcedure The above code does not work unless i change !const v_audio = new AudioContext() to !var v_audio = new AudioContext() Is this normal?
- Sat Oct 10, 2020 7:53 am
- Forum: Coding Questions
- Topic: getting javascript object values
- Replies: 2
- Views: 1010
Re: getting javascript object values
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
- Fri Oct 09, 2020 9:42 pm
- Forum: Coding Questions
- Topic: getting javascript object values
- Replies: 2
- Views: 1010
getting javascript object values
Code: Select all
! v_rate = {}
! v_gSystem.getSoftwareFormat(v_rate, null, null)
! v_sbrate = v_rate.val
debug sbrate