consoleLib.clearFieldsByName() システム関数を使用すると、指定した画面上のフィールドをクリアすることができます。いずれのフィールドも指定していない場合は、すべてのフィールドをクリアします。 この関数は、表示されたフィールドにバインドされている変数に影響を与えません。
この関数は、フィールド自体ではなくフィールドの name プロパティーの値を参照する点を除いて、consoleLib.clearFields() と同様です。 EGL は I4GL との互換性のためにこのバリアントを必要とします。
consoleLib.clearFieldsByName(
fields STRING in)
以下の例は、consoleLib.clearFieldsByName() 関数を示しています。
Record Form_1 type ConsoleForm
{formSize = [24, 80]}
* ConsoleField {
position = [2,2],
value = "Customer Number" };
custNum ConsoleField {
name = "Customer",
position = [2,20],
fieldLen = 10,
dataType="int"};
* ConsoleField {
position = [3,2],
value = "Customer Name" };
custName ConsoleField {
name = "Name",
position = [3,20],
fieldLen = 25,
dataType="char"};
end
...
myCustForm Form_1;
consoleLib.clearFieldsByName("Customer", "Name");