Hi bmihura!
So when the method to change the VI's icon is run, the VI does not show its dirty bit, but the VI is still aware that it has unsaved modifications. You can use the VI Modifications Bitset property to check for this -- the top two bits indicate that the VI has been changed. I don't know of a way to force the VI to think it has unsaved changes when it doesn't, as this property is read only.
Regardless, you can always force a save on the VI, whether or not anything has changed. See the attached VI which shows each of these methods/properties. Hope this helps!
Message Edited by Doug M on 05-03-2007 05:21 PM
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂