Execute on screen initialization

These instructions work on a button but not when initializing the screen.

Is there any way to make them run on screen initialization?

Hello Juan Antonio,

Are you giving value to the "centros" variable with what you have read from the csv file? If so, the problem may be when you use it next, if the file has not been read yet and the value has not been assigned to the variable. is this the problem?

You can place the rest of the logic in the block File.GotText, to ensure the content has been read from the file.

Indeed, the correct form is as follows
Thank you