Facing Error "duplicate declaration of ‘Screen2’" after copy screen

… then show your blocks, especially on Screen2.Initialize


That’s block i used in screen 2 initialize

You are intializing global switch as an empty list and on screen 2 intialize you just set global switch to 2.
Change global switch to 0 not an empty list

1 Like

I delete switch variable but same eror

Did you use any extension

Yes.but i delete all extention for this eror.only asynchronous image loader extention available

how did you copy the screen? manually? probably you made an error while copying?
Taifun

Nope…i copy screen directly from kodular

Do you have the duplicate Initialize event?

Otherwise, the block editor marks you an error?

this is a strange error… how can someone declare a screen twice?
probably a bug? you might want to provide your aia file, so someone can take a look…

Taifun

6 Likes

Tnx for suppor. But i create this app again​:weary:

But why don’t you let the community know what went wrong. We all want to learn …

1 Like

That was an unusuall bug.you can cheak this aia​:point_down: @Boban that the aia you asked me Custom_ListView_Demo.aia - Google Drive

I have same problem.I think this is a bug

1 Like

Don’t know how you did when copying the screen but you had a Vertical Arrangement named as Screen2 on Screen2 and thereby error, renamed it to something else and it works now

Custom_ListView_Demo1.aia (1.8 MB)

A thought though, you named your Arrangement to Screen2 on Screen1, copied Screen1 to Screen2 and you got the end result with two identical names

You should start introducing this naming to your components

2 Likes

Why you did this solution now.i already delete this project & again make this from beginning. Btw tnx

2 Likes

I could have given you the solution then, if you posted the aia at that time but since you added your aia 21 days later and I was curious what was wrong with it

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.