|
FRM v1.4.2 |
||||||||
PREV SCRIPT NEXT SCRIPT | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | FUNCT | DETAIL: FIELD | CONSTR | FUNCT |
CompiledModule | +--emos_ddt_lib
Function Summary | |
String |
DDT_ask(in table,
in param,
in msg,
in flag)
A special-purpose function. |
String |
DDT_choose_table(in def_path,
out dir,
out name)
Displays a dialog wher you can either choose the default table or display the file-browser and pick any file you want. |
String |
DDT_close_table(in table)
Closes the table. |
String |
ddt_get_name_sep()
Getter function for sheet separator sign. |
String |
DDT_open_table(in table,
in mode)
Opens the given Excel table. |
String |
ddt_set_excel_sheet(in excel_filename,
in excel_sheetname)
Selects the specified sheet in the given Excel table. |
String |
ddt_set_name_sep(in sep)
Setter function for sheet separator sign (default: #). |
extern._int |
SetExcelSheet(in._string noName,
in._string noName)
Changes the active sheet in the given excel file. |
Function Detail |
public String ddt_set_name_sep(in sep)
public String ddt_get_name_sep()
public String DDT_open_table(in table, in mode)
DDT_open_table( "C:\\some_dir\\table.xls#sheet1" );
table
- (in) table namemode
- (in) (optional) DDT_MODE_READ or DDT_MODE_READWRITE [defult: DDT_MODE_READ]
public String DDT_close_table(in table)
table
- (in) table name
public String DDT_choose_table(in def_path, out dir, out name)
def_path
- (in) name of the default table (full path!)dir
- (out) name of the chosen directoryname
- (out) name of the chosen file
public String DDT_ask(in table, in param, in msg, in flag)
table
- (in) table name (full path)param
- (in) column namemsg
- (in) message to be displayed in case the substring is foundflag
- (in) (optional) substring that triggers the dialog [default: ?]
public extern._int SetExcelSheet(in._string noName, in._string noName)
1. Create an instance of Excel application 2. Open the given file in the application 3. Iterate through each worksheet in the file 4. If the worksheet name matches with the given Sheetname Then Set the sheet to Active 5. Save the excel file 6. Close Excel applicationUsage : SetExcelSheet ( "C:\sample.xls", "Sheet2");
public String ddt_set_excel_sheet(in excel_filename, in excel_sheetname)
excel_filename
- (in) name/path of the Excel tableexcel_sheetname
- (in) name of the excel shhet to be selected
|
FRM v1.4.2 |
||||||||
PREV SCRIPT NEXT SCRIPT | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | FUNCT | DETAIL: FIELD | CONSTR | FUNCT |