No one said there weren’t other good uses. What we are saying is most of the time you can get so much more flexibility out of building a class. Norman explains both sides in more detail above. It’s a very good explanation from someone we all trust uses each feature for their strengths.
Because just as you’ve done to me above, you cherry pick a sentence and then change directions. You aren’t sticking to the original question, which Norman has answered well. From this side of things it’s coming across like you’re looking for an argument.
You may actually run into problems with the UTF8 / CString differences that were mentioned. Someone with more knowledge than me would have more insight to that.
Personally, I prefer classes because of the flexibility they offer in allowing my project to grow as necessary. Structures are more strict, but you have experience that I do not working in such a mindset with Pascal.
The original post this all stemmed from seemed to indicate the original author didn’t know about classes and properties. For flexibility and ease with the Xojo framework, their use case offered the option of using a class. I think the reason people were suggesting classes was to educate this person about the framework features that can make building their app faster and easier.
Not as I’ve known you, no. I apologize for our miscommunications.
Sometimes it doesn’t matter what you want to say: people understanding it as an unfair question not related to the real needs. And sometimes when you come clear to a border the people reacting in the same wise. Jeannot muller had a nice wording for it. When and if the people like what you write you may get some nuts like a squirrel. If not you WILL get Stones smashed on your head. And yes, that is true.
So even if you where off topic you will get them definitely.
And for the question you have asked: as far as I can see it is the reduced functionality of a class with a not so fancy UI for that. I don’t want to say: use a class. But I would like to do it for that case. After reading the docs and playing a bit with it I found out that the docs are extremely incomplete and that the functionality itself is not bringing out what you probably want to get.
As an answer to your question I would prefer to say: people are not using Structures while classes are not only better documented but also more stable and reliable. You could do it instead of classes but that will be the most uncomfortable way you ca go.
Charonn0, I can’t agree with you. Why? While sometimes people are not interested if you say something - off topic or not - what is true and correct while they have a total different way of handling things. For them is - word for word - wrong what you say. That’s what I meant. And yes, that comes up often.
It is. but the behavior of the people is the behavior of the people. When nd if they don’t want to listen for truths for example you may have not much people really reading. But criticism is the normal way.
Short description, sorry tat I misunderstood what you wanted to say.
What I meant: you may have situations where you write correctly, not off topic, not wrong but you hit a political or personal point of the third party you are writing with. Then you may get no positive reaction.