Search found 844 matches

by Bugala
Sun Mar 29, 2020 12:33 pm
Forum: General programming
Topic: I suppose Hollywood doesnt support nested functions?
Replies: 7
Views: 206

Re: I suppose Hollywood doesnt support nested functions?

And thanks again p-OS, it was thanks to you that I realized where my "bug" was.
by Bugala
Sun Mar 29, 2020 12:30 pm
Forum: General programming
Topic: I suppose Hollywood doesnt support nested functions?
Replies: 7
Views: 206

Re: I suppose Hollywood doesnt support nested functions?

Ah, silly me, just realised where my "bug" is. I only declared the function, never called it. Now it is working fine when I add line: test() Only thing is, is there any possibility that function declarations inside other functions could be moved to the bottom? Due to that code readability example th...
by Bugala
Sun Mar 29, 2020 12:24 pm
Forum: General programming
Topic: I suppose Hollywood doesnt support nested functions?
Replies: 7
Views: 206

Re: I suppose Hollywood doesnt support nested functions?

oh, and p-OS, thanks from the local function tip, that will be very useful when this starts working first.
by Bugala
Sun Mar 29, 2020 12:24 pm
Forum: General programming
Topic: I suppose Hollywood doesnt support nested functions?
Replies: 7
Views: 206

Re: I suppose Hollywood doesnt support nested functions?

Seems theres a bug then. I am using Windows 10 Hollywood 8.0 Regardless If I put the test2 function first or last, it still doesnt do any of the degubprints, nor does it give me any error. The whole input I get in Hollywood IDE is following: Loading plugin rebelsdl.hwp...done Opening script Unnamed1...
by Bugala
Sat Mar 28, 2020 2:02 pm
Forum: General programming
Topic: I suppose Hollywood doesnt support nested functions?
Replies: 7
Views: 206

I suppose Hollywood doesnt support nested functions?

I did a try to see if Hollywood supports nested functions: Function test() test2() DebugPrint("test11") Function test2() DebugPrint("test2") EndFunction EndFunction However, it also didn't give any error message. Which gives me two questions, one which is half a wish. 1. Would it be difficult to add...
by Bugala
Sat Mar 28, 2020 1:43 pm
Forum: RapaGUI
Topic: Textview class: how can write a „&“ ?
Replies: 7
Views: 276

Re: Textview class: how can write a „&“ ?

are you looking for this:

Code: Select all

text = "to use \"quote\""
TextOut(100, 100, text)
WaitRightMouse() 
This "\" can be used for others too.
by Bugala
Tue Mar 24, 2020 11:59 am
Forum: General programming
Topic: SetInterval or WaitEvent(OnMouseUp) happens first?
Replies: 2
Views: 225

Re: SetInterval or WaitEvent(OnMouseUp) happens first?

Made sort of hack to get around it. Next time I will be wiser and take that into consideration beforehand.
by Bugala
Mon Mar 23, 2020 11:05 am
Forum: General programming
Topic: SetInterval or WaitEvent(OnMouseUp) happens first?
Replies: 2
Views: 225

SetInterval or WaitEvent(OnMouseUp) happens first?

I have here a situation due to bad coding that I should have took into consideration already earlier. Thing is, I have set this interval that keeps checking if LeftMouse is down. If it is not, then it cancels the situation. At same time I have OnMouseUp event on a button that as long as situation is...
by Bugala
Sun Mar 22, 2020 11:55 pm
Forum: General programming
Topic: Anyway to make Function calculations already when formed?
Replies: 2
Views: 184

Re: Anyway to make Function calculations already when formed?

Yeah, that is actually how I solved it myself in the end after having written here, but was wondering if there would be some simpler way.
Especially if there happens to be more than one cemented value, it might end up having to send more than one userdata.

But thanks for giving suggestion.
by Bugala
Sun Mar 22, 2020 9:17 pm
Forum: General programming
Topic: Anyway to make Function calculations already when formed?
Replies: 2
Views: 184

Anyway to make Function calculations already when formed?

Dont know what word to use, but what I want to do on fly is to make functions calculations done already when formed I have this situation where I am trying to put to "OnMouseOver = Function() stuff EndFunction" where I want part of that "stuff" to be decided at that point already. Let me give you an...