f? = Gfa_Dirty
Gfa_Dirty = f?
Gfa_Dirty, Gfa_Dirty= gets or sets the program's saved status, indicating whether a project has changed since it was last saved. The function has the Boolean type and gets one of the following values:
True Indicates that the program has been changed since it was created or last saved.
False Indicates that the program has not been changed since it was last saved.
Setting the dirty status of the program indicates that the program has been changed and needs saving. The dirty status is marked by a * in the caption of the IDE window.
The following example gets the saved status and saves the program when it has been changed.
Sub Gfa_Ex_S // Shift+Ctrl+S
If Gfa_Dirty Then Gfa_Save
End Sub
The dirty status is set when as soon the source code text is changed, but also when the :Files section is updated or when a form in the form editor is modified. In particular, the Gfa_Dirty might be set when a program is compiled to create an exe, gll, or lg32. A change in any of the fields of the Compile dialog box changes the project that contains the compiler settings. So, after compiling the project must be resaved.
{Created by Sjouke Hamstra; Last updated: 08/10/2014 by James Gaite}