03-12-2025 05:30 PM
I want to create a small car management application using clusters. This application will allow users to add, delete, save, and modify car information via clusters. Each cluster contains the brand (string), color (string), year of release (integer > 0), and user rating out of 20 (decimal) for a car. The graphical interface includes a cluster for entering data, a table to display the list of cars, and buttons "Add", "Modify", "Delete", and "Save" to manage the data. The functionalities allow users to add a car to the table, modify its information, delete it, and save the list in a CSV file. For example, a user can enter "Ford, Blue, 2020, 17.8", click "Add" to insert it into the table, and then modify or delete this entry later.
03-12-2025 05:41 PM
@amsba88 wrote:
I want to create a small car management application using clusters. This application will allow users to add, delete, save, and modify car information via clusters. Each cluster contains the brand (string), color (string), year of release (integer > 0), and user rating out of 20 (decimal) for a car. The graphical interface includes a cluster for entering data, a table to display the list of cars, and buttons "Add", "Modify", "Delete", and "Save" to manage the data. The functionalities allow users to add a car to the table, modify its information, delete it, and save the list in a CSV file. For example, a user can enter "Ford, Blue, 2020, 17.8", click "Add" to insert it into the table, and then modify or delete this entry later.
Shouldn't you include medium and large cars as well? 😄
03-12-2025 07:30 PM
So build your cluster, already. You might consider not using Strings in any of your cluster elements (like "Ford", "Buick", "Honda") but create a Type (called, say, "Cars") that is an Enum, whose elements are called "Ford", "Buick", "Honda", etc. Same with "Color", or other named Attributes. Saves typing and writing "Toyuta" by mistake ...
Bob Schor
03-13-2025 04:03 AM
I have started to work on the example, but I cannot understand how to proceed. Who can help me? Here is the example:
I want to create a small car management application using clusters. This application will allow users to add, delete, save, and modify car information via clusters. Each cluster contains the brand (string), color (string), year of release (integer > 0), and user rating out of 20 (decimal) for a car. The graphical interface includes a cluster for entering data, a table to display the list of cars, and buttons "Add", "Modify", "Delete", and "Save" to manage the data. The functionalities allow users to add a car to the table, modify its information, delete it, and save the list in a CSV file. For example, a user can enter "Ford, Blue, 2020, 17.8", click "Add" to insert it into the table, and then modify or delete this entry later.
03-13-2025 05:53 AM
Make your cluster into a Type Def so any changes is synched to all places if you need to change it (like changing the Brand to an Enum). Build array is better than Insert into array. The reason it's broken because you for some reason have made a 2D array when it should be a 1D.
03-14-2025 02:13 AM
The 'Add' section is not functioning properly and adequately. I kindly ask for your assistance in completing this example.
03-14-2025 02:31 AM - edited 03-14-2025 02:33 AM
Hi amsba,
@amsba88 wrote:
The 'Add' section is not functioning properly and adequately.
Please define "not functioning properly" and "adequately"…
@amsba88 wrote:
I kindly ask for your assistance in completing this example.