TYPE & END_TYPE doesn't work

Recently I’ve been trying to do the user defined functions to create my own array but for some reason Type and End_Type keeping coming up as invalid for me. Am I using Type and End_Type incorrectly? Do I have to do something before hopping into the code to allow myself to use user defined variables?

Nevermind, I figured out my own problem. I went into the Component files on the right tab and added another data sheet by right clicking the Data Types drop down menu. I have ran into another problem. It seems like several program organization units were created and are causing errors. Where do I delete them and which ones should I delete?

You can delete your own POUs (programs, functions and function blocks) from the „Components“ area, the same pane where you created the new Data Type sheet. Right-click on the POU and select „delete“. You can delete any of the POUs that you created, but that you don’t want any more.

Thanks to you I did notice that I had two POUs with the same versions up and running. Their tabs had locks and prevented me from deleting them. I figured out that I made a mistake by downloading every library that PLC Next had. I had to delete the POUs through the library tab. Again, thank you for the help and have a wonderful day!