Hi,
Actually, the indexing of all the files is done inside a function similar to what you write, so I just call the function before the READ EVENTS.
as show below, the function IndexSysDb just do part of the indexing before displaying the form. On exit, it will continue to do the rest of the indexing.
Please advise. Thank you.
IndexSysDb(.F.)
DO FORM frmDisplay
READ EVENTS
>Hi.
>
>Do you mean something like this:
>
>INDEX ON somefield TAG sometag
>READ EVENTS
>
>and the index on doesn't finish before the read events?
>
>>Hi,
>>
>>One of my application function which just do simple indexing when run in the main prg just do part of the indexing, not yet completed the whole function code when it run the next instruction. The next instruction is a READ EVENTS code. So, when I exit the application, it will continue doing the rest of function code where it left off before finally exiting the whole program. what did I miss out.
>>
>>Any advise or help is very much appreciated. Thank you.
Best Regards
Virusim