Search found 1040 matches

by Bugala
Mon May 30, 2022 7:13 pm
Forum: Hollywood bugs
Topic: strstr() doesnt recognise scientific notations
Replies: 3
Views: 302

strstr() doesnt recognise scientific notations

Not sure this is necessarily a bug, but worth a notice anyway. string = 2.3e-5 newstring = StrStr(string, 2) DebugPrint(newstring) As you can see, when using StrStr() Hollywood fails to recognize scientific notation e format, and result of this one is strangely "2.3e" which makes no sense. Since the...
by Bugala
Sat May 28, 2022 4:40 pm
Forum: Windows IDE
Topic: IDE double Crash Bug when with certain text (s:MakeButton(I)
Replies: 12
Views: 1073

Re: IDE double Crash Bug when with certain text (s:MakeButton(I)

Yeah, I wasn't able to reproduce it myself either, except with the whole code. It seems like there might be Trigger A and Trigger B. Trigger B is shown in the video, which crashes IDE. However, Trigger B won't do anything, until Trigger A has happened first, which I wasn't able to figure out what th...
by Bugala
Wed May 25, 2022 9:40 am
Forum: Newbie questions
Topic: ArraytoStr how does it work?
Replies: 8
Views: 486

Re: ArraytoStr how does it work?

That is very good to know. And actually very useful to me right now too as I am having this difficulty of trying to make sure my numbers are strings and not numbers.
by Bugala
Wed May 25, 2022 8:44 am
Forum: Newbie questions
Topic: ArraytoStr how does it work?
Replies: 8
Views: 486

Re: ArraytoStr how does it work?

That's surprising, I always thought using " or ' would both be the same.

So can someone explain what exactly is the difference between using " or ' technically speaking?
by Bugala
Wed May 25, 2022 8:37 am
Forum: Newbie questions
Topic: Is there command to do reverse of Chr()?
Replies: 3
Views: 202

Re: Is there command to do reverse of Chr()?

Thanks! Didn't realize that one when I was looking through the String Library.
by Bugala
Tue May 24, 2022 7:57 pm
Forum: Newbie questions
Topic: Is there command to do reverse of Chr()?
Replies: 3
Views: 202

Is there command to do reverse of Chr()?

I can do: Var = 65 debugprint(chr(var)) and it will print A However, I would need the reverse of this, is there something like: Var = "A" Debugprint(ReverseofChr(var) Which would then return 65. Does that exist? I can only see Val() command that looks like it, but that looks like it makes a whole st...
by Bugala
Tue May 24, 2022 6:30 pm
Forum: Newbie questions
Topic: ArraytoStr how does it work?
Replies: 8
Views: 486

Re: ArraytoStr how does it work?

Yeah, that what it debugprints here too, problem is, it doesnt print the string. There are two debugs in that code. First one is to debugprint everything inside t_sum, which is the: 1 2 2 3 0 1 Then I am trying to use ArraytoStr for that t_sum, to make it into a string. What I expect to happen with ...
by Bugala
Tue May 24, 2022 2:00 pm
Forum: Newbie questions
Topic: ArraytoStr how does it work?
Replies: 8
Views: 486

ArraytoStr how does it work?

I have here this piece of code:

Code: Select all

t_sum = {"1", "2", "3"}

ForEach(t_sum, DebugPrint)
string = ArrayToStr(t_sum)
DebugPrint(string)
And as can be seen, string is empty.

I am trying to make a string that would be numbers, like "0.123" but cant I use ArrayToStr to do that?
by Bugala
Mon May 23, 2022 7:59 am
Forum: Hollywood bugs
Topic: Minus from Table Item fails, Bug or feature?
Replies: 9
Views: 586

Re: Minus from Table Item fails, Bug or feature?

Okay, this is a partial fix, but still not completely working. When using "%.5g" it does result in the right answer, and even when using "%.9g" (which is what I need to use) it still works fine, but using for example "%.13g", it happens to result in 0.6234299999996, since the 14th digit is 1, and ro...
by Bugala
Fri May 20, 2022 2:05 pm
Forum: Hollywood bugs
Topic: Minus from Table Item fails, Bug or feature?
Replies: 9
Views: 586

Re: Minus from Table Item fails, Bug or feature?

So is there a way to get around it?

That how can I make that calculation and receive the right answer?