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?

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top