I keep getting this error. On FGetZoneData
I have:
var
SelectedDept: String;
implementation
procedure TFGetZoneDept.GetClick1(Sender: TObje
You're calling the method on a class (I assume TfDB
is a class name) not on an instance. Only class methods can be called that way. What you have to do is to create an instance, then call the method on it:
var DB: TfDB;
begin
DB := TfDB.Create(); // create an instance
adept := DB.GetDeptDBName(SelectedDept); // call the method
See the E2076 This form of method call only allowed for class methods topic in docwiki.