General method for importing Excel data independent of rule configurations
An EXCEL, general method technology, applied in the computer field, can solve problems such as non-reusability, program crash, illegal data, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0023] as attached figure 1 Shown, the general method of the import EXCEL data that does not depend on rule configuration of the present invention comprises the following steps:
[0024] 1. Developer software implements general import components:
[0025] A. Define interface functions
[0026] / / Define the interface function
[0027] global function integer f_xls2dw (u_dw p_dw, boolean p_append)
[0028] B. Implement internal logic
[0029] / *1. Get Excel document* /
[0030] GetFileOpenName("Please select an Excel document",FullPathName,FileName,"",filetype)
[0031] / *2. Open the Excel document* /
[0032] Ole_xls.Application.Workbooks.Open(ls_FullPathName)
[0033] / *3. Match the column correspondence between the data-bound control DataWindow and Excel* /
[0034] / / Loop through the columns of the data-bound control DataWindow
[0035] FOR n = 1 TO Datawindow.column.count
[0036] ls_colname = p_dw.Describe("#" + String(n) + ".Name")
[0037] FOR nn ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 