What this phrase {$R *.dfm}
in the code editor?
I tried This :
//{$R *.dfm}
You'll want to keep that in there. The $R
directive links a resource file into the EXE. The *.dfm
means "the file that has the same filename as this .pas
file, but with a .dfm
extension instead."
What it does is makes sure that when the compiler builds the project, that your form data ends up compiled in. Without this, when your code tries to load up the form, it won't be able to find the form data and it will crash.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With