Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Name clash with script object "util". How we can resolve?

tarekahf
Level 8
Level 8

In one of the forms, I wanted to use "util.scand()" function, however, I noticed that there is already script object name "util", which is effectively hiding the built-in script "util". The exiting "util" script (embedded) has been used extensively and very risky to rename it now.

How I can resolve this naming conflict with minimum risk?

Tarek

1 Accepted Solution
radzmar
Correct answer by
Level 10
Level 10

In the XML Source view press [Ctrl]+[H] and replace „util.“ (with a trailing dot) with „utils.“ (or another name).

This will replace all references to the current script object „util“ in the entire template.

Then rename the script object too and you should a habe a template where no object or reference is named „util“ anymore.

View solution in original post

1 Reply
radzmar
Correct answer by
Level 10
Level 10

In the XML Source view press [Ctrl]+[H] and replace „util.“ (with a trailing dot) with „utils.“ (or another name).

This will replace all references to the current script object „util“ in the entire template.

Then rename the script object too and you should a habe a template where no object or reference is named „util“ anymore.

View solution in original post