In reply to rag123:
This is a race condition. There is no guarantee if the assignment trigger, or the event control @data executes first. A non-blocking assignment would fix this particular example.
In reply to rag123:
This is a race condition. There is no guarantee if the assignment trigger, or the event control @data executes first. A non-blocking assignment would fix this particular example.