How to make the transfer of general information entered in the fields to be filled in the desired table cells? And count the number of occurrences of the symbol "&" in a text table?

    1 answer 1

    The first part of the question is not quite clear: if the table is TStringGrid, then it has the goEditing setting in the Options property, it needs to be set True, and you can enter data from the keyboard into the grid.

    The second part of:

    1. We create variables: number of characters, row counter, column counter, row length, row element index (all variables are integers);
    2. number of characters = 0;
    3. We loop the cycle from 0 to the number of lines -1;
    4. We loop the cycle from 0 to the number of columns -1;
    5. Take a row from the cell;
    6. Assign its length to a variable;
    7. Then we loop the cycle from 1 to the length of the string;
    8. If the symbol = "&", then the number of characters = number of characters + 1.
    9. Display the result.

    Something like that.

    The first part of the task: you can see here , if, of course, it helps.

    • I’m giving a clearer salary experience of 50,000 1 When you press a button, it changes to something like this: seniority salary 1 50000 - Victor Khorolsky