Jump to content
Viji

Modified property in vcl Xe builder

Recommended Posts

Hi,

 

I need to check if a file is modified. In Rad studio 10.2 there is "Modified" property in TMemnIniFile. This property is not there in Xe buidler.

Do we have any similar property in Xe Builder

Share this post


Link to post
32 minutes ago, Viji said:

need to check if a file is modified

Which kind of file? For which purpose?

You can consider using FindFirstChangeNotification to get notified when the file changes.

 

 

Share this post


Link to post

 image.thumb.png.cd6b0aeb352f0c60b1b09d5838eb1311.png

File type used is TMemIniFile, "Modified" property is not available for C++ Xe builder.  Is there some similar property or function to check if a TMemIniFile is modified in C++ Xe Builder?

 

Share this post


Link to post

You want to check if the modification has been done using TMemIniFile properties or methods, or do you want to check for modification done outside of your application, for example when someone change the associated file using NotePad.

Share this post


Link to post

You have to explicitly update an TMemIniFile file that you made changes to. So that flag is an internal function of the TMemIniFile class and tells if the "file" has been modified in memory. It will not say anything on what is happening with an actual file. I just do UpdateFile before closing or .Free'ing so i never need to check that property.

 

That said, what is you scenario that you need it, @Viji?

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×