为什么这不起作用?
if WizardForm <> nil then
WizardForm.StatusLabel.Caption := 'blah'
else
Log('WizardForm not initialized yet!');
我得到这个例外:
Runtime Error (at 15:118):
Internal error: An attempt was made to access WizardForm before it has been created.
我知道 WizardForm 尚未初始化,这就是我检查 nil 的原因,检查不起作用!我在这里做错了什么?