Writing methods in a file without class/structs?

Hello :slight_smile:

I want to know, if I can define a file, in former pascal: (unit) and just define methods without being embedded in classes/records?

**
For better understanding, I just want to write methods inside the .pas file, like in C with the C headers, where you dont have classes and such. Is this possible??

Would love to know :_)

Best regards,

Shpend

Sure. Select enable globals in the project settings and start writing :slight_smile:

1 Like

Can I define also records globally within this file then?

records are always global?

UUppps, yeah of course, sry mind-error :smiley:

thx!