thank u so much for the reply rahul...How about the following ????????
Sorry i never mentioned that i have the number of bytes to be flashed known..
'WRITING THE DATA BYTES
progressbar.Max = number_records
For r = 0 To number_records
For b = 0 To bytes_per_record '
send record(r).byte(b)
recieve byte ' from target
check if recieved byte= sent byte ' byte level verification
Next b
check for checksum that is dependent on 16 bytes ' record level verification
progressbar.Value = progressbar.Value + 1 '
Next r
'VERIFYING THE DATA BYTES
progressbar.Max = number_records * bytes_per_record
For b = 0 To number_records * bytes_per_record
recieve byte ' from target
check if recieved byte= sent byte(b)
Next b
progressbar.Value = progressbar.Value + 1 '
***********************************************
I shall use one progress bar to perform my 'WRITE' and 'VERIFY' operations.
They wil be using the progress bar one after the other since it is a sequence process.
How far am I right ????