TA的每日心情 | 开心 2016-8-25 11:11 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
When I change the size of my Excel file the ddt_get_row_count function will not refresh to a lower value.
Code:
_____________________________________________________________
Row_Count = null;
My_File = "c:\\documents and settings\\Testing.xls";
rc = ddt_open(My_File);
if (rc!= E_OK && rc != E_FILE_OPEN)
pause("Cannot open table.");
ddt_get_row_count(My_File,Row_Count);
____________________________________________________________
Row_Count was stuck on 17. The last file size. Testing.xls file was changed to 30 rows, Row_Count updated to 30. When I reduced Testing.xls to 4 rows Row_Count=30. I have closed WR and ran the script again but Row_Count remains at 30. Is there some way to 'clear the cache'? As I increment the .xls above the last Row_Count it will increment but not decrement/refresh.
转自
http://www.sqaforums.com/showfla ... p;page=0#Post576782 |
|