[BLACKBOX] How to find out if a document is "dirty"

From: [at]} <Rainer>
Date: Mon, 16 Jul 2012 20:33:00 +0200

----boundary-LibPST-iamunique-53465943_-_-
Content-type: text/plain

Hi all,
in a form I have a command button which, when clicked, calls StdCmds.OpenDoc (<file name>).
The opened document is a source file which may be modified by the user.
A second command button, when clicked, calls the compiler on the opened source (thanks to Douglas G. Danforth; his mail "Compiling from a program").
Now I would like to ask the user to save his modifications before calling the compiler. So I need a simple way to find out if the opened document is "dirty", i.e. if the user has made any modifications.
Does anybody have an idea how to do this ?

Thanks in advance and best regards,
Rainer

----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-53465943_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGZiaWRpcyBcZGVmZjB7XGZvbnR0YmwN
CntcZjBcZnN3aXNzIEFyaWFsO30NCntcZjFcZm1vZGVybiBDb3VyaWVyIE5ldzt9DQp7XGYyXGZu
aWxcZmNoYXJzZXQyIFN5bWJvbDt9DQp7XGYzXGZtb2Rlcm5cZmNoYXJzZXQwIENvdXJpZXIgTmV3
O319DQp7XGNvbG9ydGJsXHJlZDBcZ3JlZW4wXGJsdWUwO1xyZWQwXGdyZWVuMFxibHVlMjU1O30N
Clx1YzFccGFyZFxwbGFpblxkZWZ0YWIzNjAgXGYwXGZzMjAgSGkgYWxsLFxwYXINCmluIGEgZm9y
bSBJIGhhdmUgYSBjb21tYW5kIGJ1dHRvbiB3aGljaCwgd2hlbiBjbGlja2VkLCBjYWxscyBTdGRD
bWRzLk9wZW5Eb2MgKDxmaWxlIG5hbWU+KS5ccGFyDQpUaGUgb3BlbmVkIGRvY3VtZW50IGlzIGEg
c291cmNlIGZpbGUgd2hpY2ggbWF5IGJlIG1vZGlmaWVkIGJ5IHRoZSB1c2VyLlxwYXINCkEgc2Vj
b25kIGNvbW1hbmQgYnV0dG9uLCB3aGVuIGNsaWNrZWQsIGNhbGxzIHRoZSBjb21waWxlciBvbiB0
aGUgb3BlbmVkIHNvdXJjZSAodGhhbmtzIHRvIERvdWdsYXMgRy4gRGFuZm9ydGg7IGhpcyBtYWls
ICJDb21waWxpbmcgZnJvbSBhIHByb2dyYW0iKS5ccGFyDQpOb3cgSSB3b3VsZCBsaWtlIHRvIGFz
ayB0aGUgdXNlciB0byBzYXZlIGhpcyBtb2RpZmljYXRpb25zIGJlZm9yZSBjYWxsaW5nIHRoZSBj
b21waWxlci4gU28gSSBuZWVkIGEgc2ltcGxlIHdheSB0byBmaW5kIG91dCBpZiB0aGUgb3BlbmVk
IGRvY3VtZW50IGlzICJkaXJ0eSIsIGkuZS4gaWYgdGhlIHVzZXIgaGFzIG1hZGUgYW55IG1vZGlm
aWNhdGlvbnMuXHBhcg0KRG9lcyBhbnlib2R5IGhhdmUgYW4gaWRlYSBob3cgdG8gZG8gdGhpcyA/
XHBhcg0KXHBhcg0KVGhhbmtzIGluIGFkdmFuY2UgYW5kIGJlc3QgcmVnYXJkcyxccGFyDQpSYWlu
ZXJccGFyDQpccGFyDQotLS0tXHBhcg0KVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdp
dGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8gTElTVFNFUlZATElTVFMuT0JFUk9OLkNIfX0A
AAAAAA=
----boundary-LibPST-iamunique-53465943_-_---
Received on Mon Jul 16 2012 - 20:33:00 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:01 UTC