Hi,
I want to delete Text- and ParaStyles.
In the online help it says about TFontInfos.Delete:
"Obsolete, please do not use.
In order to delete i-th item from text styles, use
TRVStyle.TextStyles.Free"
But is that also correct for BCB6?
TextStyles->Delete(i) and ParaStyles->Delete(i) seem to work fine, but
Free causes an access violation every time.
Thanks for help,
Usch Wildt
delete a style
-
- Site Admin
- Posts: 17565
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
There is a mistake in the help file, this method was removed already (it was in very old version).
New versions of Delphi/Builder have this method in collection by default. is the same as
(and almost the same as
)
New versions of Delphi/Builder have this method in collection by default.
Code: Select all
TextStyles->Delete(i)
Code: Select all
TextStyles->Items[i]->Free();
Code: Select all
delete TextStyles->Items[i];