[Lazarus] Can I delete a property from a collectionitem
Hi, I have a collection stored in a file. One property of each collectionitem is a value of what seeems to be a set but is not. That property is no longer needed. Is there a way to delete that property? I suppose I can do that by creating a new collectionitem type without that property and migrate the data. But then a have a different collection which meens a have to make lots of changes. If deleting a property isn't possible, how can I delete the value of that property? And an extra question is: how can I test whether the property has a value or not? The possible value is defined as followes: TTest = (test1, test2, test3); TTestValues = set ot TTest; -- mvg Frans van Leeuwen M 06-51695390 -- Dit e-mailbericht is met AVG-antivirussoftware gecontroleerd op virussen. www.avg.com -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Can I delete a property from a collectionitem
On Wed, 12 Oct 2022, nibbikfrans via lazarus wrote: Hi, I have a collection stored in a file. One property of each collectionitem is a value of what seeems to be a set but is not. That property is no longer needed. Is there a way to delete that property? I suppose I can do that by creating a new collectionitem type without that property and migrate the data. But then a have a different collection which meens a have to make lots of changes. Yet that is the only correct way. If you can make a descendent, you can override the property and simply discard the value when it is set in the setter. If deleting a property isn't possible, how can I delete the value of that property? In the file, in the instance of the collectionitem or where ? And an extra question is: how can I test whether the property has a value or not? The possible value is defined as followes: TTest = (test1, test2, test3); TTestValues = set ot TTest; The property has a set as value ? If the set is empty, then the property has no value ? Unless empty value is also a value. Michael. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Message for Lazarus developers
I haven't got the answer at hand Also not sure which wiki page you refer too? Have you looked into the image folder in the lazarus installation? There is a copyright file that has info on the licenses (and creators) of the images. So if you got the filename you can check if it is listed there. And who the author is, if the current license is not permissive enough. If the file is there, but not in the copyright list, then the git history might reveal who authored it. And hopefully under what license the lazarus project has received it. I, myself, am not a gfx artist, and I don't know much about what licenses are used for gfx, and/or what they permit. But it would be my guess, that at first it needs to be established, what rights the team has (i.e. under which license it was give to us). And, if the same license is in place for others. On 11/10/2022 21:58, Tony Stone via lazarus wrote: Hi, My name is Tony Stone. I am a long time user and fan of Lazarus. I am writing here to try and get permission of sorts for using the Lazarus logo as part of a online community a few IRC users have been setting up. Our community is not trying to appear to be directly affiliated with Lazarus or FPC and we make it clear in our home page of our Rocket.Chat server. But I do really want to replace the Rocket.Chat logo with something a little more friendly to our project and being as our chat community is a modern alternative to IRC and mailing lists I just want it to have a more modern appearance without third party branding. I would like to use the "Blue gear head" logo as part of the chats logo... so basically what i asked a graphics designer to do is put it inside a chat bubble thing with our Lazarus chat URL wrapping around it. I see on the wiki page it says they are free to use for promoting Lazarus and FPC, which is what our rocket.chat community is doing. The Wiki just is not very clear here on if modification is frowned upon. Again I am trying to make sure our site doesn't look like it is trying to compete with any of Lazarus or FPC officially preferred communication platforms. Thanks for your time. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Can I delete a property from a collectionitem
On Wed, Oct 12, 2022 at 6:21 PM Michael Van Canneyt via lazarus wrote: > > I have a collection stored in a file. One property of each collectionitem is > > a value of what seeems to be a set but is not. That property is no longer > > needed. Is there a way to delete that property? If you mean that it should not be read anymore from the .lfm file (after you changed the code so that it no longer has that property), you can use RegisterPropertyToSkip() (use Find in Files to search for examples). -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus