extractControlIdsCSV
extractControlIdsCSV();
The extractControlIdsCSV method of the Schema class creates a comma-separated values (CSV) file containing the generated Windows control id for each JADE control.
The control ids are used by testing tools to identify required elements on a form. The identifier (id) for a control on a form created in the JADE Painter is retained for the lifetime of the form (unless the control is deleted and re-added using the JADE Painter).
There is an entry for each control on every form in the schema (the receiver) and in its subschemas, in the following format.
schema_name, form_name, control_name, control_id
The method displays the common file open dialog, enabling you to specify the name and directory of the CSV file to be created. The default name is controlIds.csv.
The source for the extractControlIdsCSV method is provided, should you want to vary the calling approach.
vars file : File; cmd : CMDFileSave; subs : SchemaNDict; scm : Schema; begin create cmd; cmd.fileName := "controlIds.csv"; if cmd.open = 0 then create file transient; file.openOutput(cmd.fileName); create subs transient; subs.add(currentSchema); while subs.size() > 0 do scm := subs.first; scm.extractControlIdsCSVforSchema(file); subs.remove(scm); scm.getSubschemas(subs); endwhile; file.close; endif; epilog delete cmd; delete file; delete subs; end;