@Fox The first place I noticed the problem was when I added a visual to the interface. I added a text link to the interface from the 'textlink' section in the open blocks and inserted an image into it. My aim was to have no text inside and only redirect to a link when the image is clicked. However, no matter how much I removed the predefined "New Link" text, whenever I made an addition or deletion to the interface, it would reappear. To solve this issue, I set the font-size of the text link to 0 using CSS, which prevented the "New Link" text from appearing. The problem I'm talking about is probably similar to what I experienced with the text link. The default values assigned by the system, even if you change them, revert back to the values defined by the system when something new is added to the interface or when a setting is changed (for example, background color or deleting a button). Currently, to overcome this issue, I am constantly keeping a backup of the HTML. Whenever I make a new change, I copy the content from the backup, and this is how I'm trying to deal with it, but it's clear there is a problem. Hopefully, it will be resolved soon.
I think i found a bug
-
I was using javascript function to generate random numbers(i know there is function in bas already, came to know it later) :
lets say i set, max_variable = 100 AND min_variable = 90 , so random numbers results should be from 90-100 but the results are generating from 0 to 100syntax of javascript function:
Math.floor(Math.random()*(max_variable-min_variable+1)+min_variable);
so the random numbers are genrated from 0 to 100when i put the value of min_variable at the last part of javascript function manually it works perfectly, so it means that BAS is not able to put value of min_variable(in BOLD) -->> Math.floor(Math.random()*(max_variable-min_variable+1)+min_variable);
-
Update: i was reading the integer numbers from a text file and BAS was reading it as string so i think that is the problem, so if any math operations are performed it is creating problems? can you please tell me how to convert string to integer or i am doing something wrong? @support
-
@support thank you for the fix but i have about 10 variables which is read through file, although they are integers, i need to convert them to integers using javascript parseInt([[VARIABLE]]) function, and similar problem occurs when int type is used with database by importing csv file. It will be awesome if you add a new function which converts string numbers to integers numbers in bulk so we don't need to convert them one by one, it will be easy for beginners also :)