Some Questions.

Discuss any general programming issues here
Post Reply
User avatar
fingus
Posts: 271
Joined: Fri Sep 16, 2011 9:53 am

Some Questions.

Post by fingus »

I´ve got some Questions:

- Is there an "onerror"-eventhandler?
- Is it possible to show a display on the current active screen after hidedisplay(), showdisplay() ?

And to follow the Workbench-Tooltypes-Rules:

- Is it possible to use Tooltypes in this way:

(NOSOUND) means "disabled" or "FALSE"
NOSOUND means "enabled" or "TRUE"

instead of:

NOSOUND=VALUE

- Every Hollywood-App is handled as Commodity, so it is possible to add a CX_Key?
User avatar
airsoftsoftwair
Posts: 5848
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Some Questions.

Post by airsoftsoftwair »

I´ve got some Questions:
- Is there an "onerror"-eventhandler?
No, but something like this is planned for easier error handling. Allanon has also already requested this.
- Is it possible to show a display on the current active screen after hidedisplay(), showdisplay() ?
Currently not, but might be added in the future.
And to follow the Workbench-Tooltypes-Rules:
- Is it possible to use Tooltypes in this way:
(NOSOUND) means "disabled" or "FALSE"
NOSOUND means "enabled" or "TRUE"
instead of:
NOSOUND=VALUE
That's already working here! Which Hollywood version do you use?
- Every Hollywood-App is handled as Commodity, so it is possible to add a CX_Key?
Currently not, but might be added in the future :)
Bugala
Posts: 1395
Joined: Sun Feb 14, 2010 7:11 pm

Re: Some Questions.

Post by Bugala »

I guess by now this OnError has happened, what was the implementation?

Im recalling Hollywood had some command to disable crashing on error and instead just continue, but I dont remember this commands name as I by defailt would not use it. Now, however, I exceptionally have one line where I want to avoid crashing in case it errors.
Flinx
Posts: 347
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: Some Questions.

Post by Flinx »

Bugala wrote: Tue Dec 02, 2025 7:52 am I guess by now this OnError has happened, what was the implementation?
Maybe this one?

But I usually use the the construct from here, for example:

Code: Select all

Local err, id=?LoadBrush(Nil,vfile$)
If err<>#ERR_NONE
	...
plouf
Posts: 671
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Some Questions.

Post by plouf »

ExitOnError()
Enables and disables quit/raise error

You can activate before your command enable later

Or you put on top of script to not crash everywharee
Christos
Bugala
Posts: 1395
Joined: Sun Feb 14, 2010 7:11 pm

Re: Some Questions.

Post by Bugala »

Yes, this was it, thanks!

Couldn't figure out the name, although funnily, I did check the forum with OnError, but not the Hollywood manual.
Post Reply