问题-[Delphi]MainFrame.pas(4340): E2036 Variable required

时间:2023-03-09 01:12:32
问题-[Delphi]MainFrame.pas(4340): E2036 Variable required

问题现象:写了一个TObjectList的Sort方法,但是写成ObjectList.Sort(@SortBridgeEDOReportQtys); 再F9时提示“E2036 Variable required”。 
问题原因:[DCC错误] MainFrame.pas(4340):要求E2036变
解决方法:ObjectList.Sort(@SortBridgeEDOReportQtys); 改成ObjectList.Sort(@MainFrame.SortBridgeEDOReportQtys);  就可以了。