Question

Today I face some problem: when I try add lines to TMemo on another form:

workingForm.scanLog.Lines.Add('Page ' + link + ' proceed.');

It's returning a error: enter image description here

What I doing wrong?

Was it helpful?

Solution

Place a breakpoint on that line, and verify that workingForm and scanLog are not nil.

You should either make sure that they are assigned, or you need to check if they are before you use them.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top