TatScriptRefactor.AddUsedUnit Method
Adds the unit AUnitName to the uses clause of the script source, if not already present.
Remarks
Adds a unit named AUnitName to the list of used units in the uses clause. If the unit is already being used, nothing is done. If the uses clause is not present in the script, it is included, like the following code.
AddUsedUnit('Classes');
You can also include several units at once by separating them with commas.
AddUsedUnit('Classes,Graphics,Controls');
Syntax
Unit: atScript
procedure TatScriptRefactor.AddUsedUnit(AUnitName: string); virtual;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AUnitName | string |