I have a lot of chess books because I've been playing for a long time.
For a special opening I am always looking for variants, but they are difficult to find in my literature.
Now - when I've found something - I want these moves
transferred to a separate Foxpro table.
This would also have the advantage that you can then use a program to remove duplicate variants, or to index or recognize transpositions of moves, etc.
It's faster than writing it down, and I programmed a keyboard to do this.
In the photo you can see this keyboard at the top left.
The program works fine up to this point.
Example 1:
The move with the rook on the e4 square is displayed after clicking R-e-4 in the text field (text1, yellow).
Now I want this content in the table below
in the field M1 (means: Move No.1).
Field-names are M1 to M20
Then I want to type the next move on the keyboard again
and that should then be saved in field M2.
This is how it should go on .... next move in M3 .... etc.
So it is a horizontal filling of the table.
Example 2:
The table should look like this:
Row 1: e4 c5 Nf3 Nb6 d4
Row2: d4 Nf6 Nc3 d5 Bg5 c6
That means the length of the variants can be different.
My table is sufficient for 20 moves (half moves).
Each time a new series of moves is entered, a
new data set is necessary.
Maybe someone can help what the code behind the button "Transfer to table" (red) could be like, or there is a better idea.
I would be very pleased.
Thank you.
Greetings Klaus
By the way:
If you wanted to record all possible moves within a game of chess in a database, then there would be
big problems: at some point I read that there were 10 to the power of 35 possibilities. (So a 10 with 35 zeros).
Peace worldwide - it starts here...
For a special opening I am always looking for variants, but they are difficult to find in my literature.
Now - when I've found something - I want these moves
transferred to a separate Foxpro table.
This would also have the advantage that you can then use a program to remove duplicate variants, or to index or recognize transpositions of moves, etc.
It's faster than writing it down, and I programmed a keyboard to do this.
In the photo you can see this keyboard at the top left.
The program works fine up to this point.
Example 1:
The move with the rook on the e4 square is displayed after clicking R-e-4 in the text field (text1, yellow).
Now I want this content in the table below
in the field M1 (means: Move No.1).
Field-names are M1 to M20
Then I want to type the next move on the keyboard again
and that should then be saved in field M2.
This is how it should go on .... next move in M3 .... etc.
So it is a horizontal filling of the table.
Example 2:
The table should look like this:
Row 1: e4 c5 Nf3 Nb6 d4
Row2: d4 Nf6 Nc3 d5 Bg5 c6
That means the length of the variants can be different.
My table is sufficient for 20 moves (half moves).
Each time a new series of moves is entered, a
new data set is necessary.
Maybe someone can help what the code behind the button "Transfer to table" (red) could be like, or there is a better idea.
I would be very pleased.
Thank you.
Greetings Klaus
By the way:
If you wanted to record all possible moves within a game of chess in a database, then there would be
big problems: at some point I read that there were 10 to the power of 35 possibilities. (So a 10 with 35 zeros).
Peace worldwide - it starts here...