Error: TZhProgressBar property out of range

Forum for DBF Commander discussing.

Error: TZhProgressBar property out of range

Postby somethingsimil » Wed Apr 01, 2015 8:16 pm

When the following command is given...
"C:\Program Files (x86)\DBFCommander\dbfcommander.exe" -e "test.DBF" "C:\Users\Administrator\test.XLS"

...and the input file is a valid DBF (which opens in DBF Commander), but has zero rows, the following error occurs and DBFCommander crashes...

"Error: TZhProgressBar property out of range"


Normally, I wouldn't need to convert an empty DBF, but the program is scripted and occasionally there are no results to a certain query. Alternatively, is there a way for me to determine if the DBF has no rows before executing?
somethingsimil
 
Posts: 30
Joined: Tue Jul 08, 2014 6:05 pm

Re: Error: TZhProgressBar property out of range

Postby Admin » Wed Apr 01, 2015 8:39 pm

No, there is no way to determine row count in command-line mode. Although, you can execute
Code: Select all
SELECT COUNT(*) FROM table1
query, but I've no idea how to use it in a batch mode.

The property range bug will be fixed in the next version.
Best regards,
Oleg Zhechkov
User avatar
Admin
Site Admin
 
Posts: 124
Joined: Wed Apr 21, 2010 7:27 pm

Re: Error: TZhProgressBar property out of range

Postby somethingsimil » Wed Apr 01, 2015 8:59 pm

Ah, great thank you!
somethingsimil
 
Posts: 30
Joined: Tue Jul 08, 2014 6:05 pm


Return to DBF Commander Professional

Who is online

Users browsing this forum: No registered users and 10 guests

cron