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

From: [at]} <>
Date: Tue, 17 Jul 2012 09:58:35 -0500


I thought I might mention that one of my deliberate practices is to compile code from a viewer, and to refrain from saving code that does not compile correctly. Occasionally, I will discard edits at the end of a session if I have to go do something else and the code does not compile.

I find that this allows me to get more work done, as I have significantly less re-orientation to do at the start of a session.


On Tue, Jul 17, 2012 at 9:30 AM, Rainer Neubauer <rainer.neubauer{([at]})nowhere.xy


        Dear Marc,
        thanks a lot for your very quick response to my problem.
        I incorporated your code (slightly modified) in the gard procedure of my "second button" which calls the compiler.
        The button gets disabled as soon as the user modifies the document and will be reenabled again after the user had saved his modification.
        
        So your solution to my problem works much better than expected :-)
        
        Thanks again and best regards,
        Rainer
        
        
        Am 17.07.2012 um 06:18 schrieb Marc Frei:
        

> Dear Rainer,
>
>> So I need a simple way to find out if the opened document is "dirty"
>

> Please have a look at the StdCoder encoded snippet below.
>
> Kind regards,
>
> Marc
>
> StdCoder.Decode ..,, ..uS....3Qw7uP5PRPPNR9Rbf9b8R79FTvMf1GomCrlAy2xhX,Cb2x
> hXhC6FU1xhiZiVBhihgmRiioedhgrZcZRiXFfaqmSrtuGfa4700zdGrr8rmCLLCJuyKtYcZRiX
> 7.2.s,sDD.,6.5Qw7uP51QCPuP7PNN9F9vQAy1xB.gdj,UBxhYhAbf9P0G2sIdvPZntgcghghZ
> cZRC8T0E.k4P.H.9g,2.,U08J99SdfJHPNjvQCJuGKfaqmY6MwdONl1QCh0708T,U..w.wZ4.,
> sUGpmWbBxhYhAbndMHT9NY6Mw.sQq2Y6cwB.0.n7,w,Aa2E.0.YR2U00.bnUGLu8ro8quGrmCL
> WKqtE0E.kHE.0.p.0.4.0EJYjyC.6.VQ.El8.1cUZT1E.6C6.c4E.k.Ue.E.mP,UAU.oK6.sIX
> g.iFL8U0Cy2hgqRcjhhhBgiZgZJinpZHZCh0E.4TWKKv.Uio8.,cw5.0..o.6.K,O,yzayIWKJ
> aKIE0JtaKvGoo8LuarRqk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.UG.,..W.0.A,,UMSdn73Ptc
> 0MyfU.az864T8OGNMW7QS,...
> --- end of encoding ---
>
>> -----Original Message-----
>> From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
>> Rainer Neubauer
>> Sent: Montag, 16. Juli 2012 20:33
>> To: BLACKBOX{([at]})nowhere.xy
>> Subject: [BLACKBOX] How to find out if a document is "dirty"
>>
>> 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
>>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
        
        
        ----
        To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
        




-- 
Aubrey McIntosh, Ph.D.
1502 Devon Circle
Austin TX 78723-1814
http://home.grandecom.net/~amcintosh/aubrey/Search/
512-348-7401 
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
Received on Tue Jul 17 2012 - 16:58:35 UTC

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