PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Need help for array problem
Need help for array problem
Iniciado por laurentjanuzaj, 19,feb. 2015 14:26 - 2 respuestas
Miembro registrado
1 mensaje
Publicado el 19,febrero 2015 - 14:26
Hi everyone,
I am a Programmer beginner and have to do a small programm which is made by arrays




If I press the first button then it shows me the value with "ich bin wert 1" //I am value 1,and so on.
I setted my two-dimensional arrays in the window code

garrMyArray is array of 3 by 3 strings
garrMyArray[1,1] = "ich bin wert 1"
garrMyArray[1,2] = "ich bin wert 2"
garrMyArray[1,3] = "ich bin wert 3"
garrMyArray[2,1] = "ich bin wert 4"
garrMyArray[2,2] = "ich bin wert 5"
garrMyArray[2,3] = "ich bin wert 6"
garrMyArray[3,1] = "ich bin wert 7"
garrMyArray[3,2] = "ich bin wert 8"
garrMyArray[3,3] = "ich bin wert 9"


and it prints it out in the "wert"EDT

but now Id like to change the value by writing a new value in the second EDT below and saving it. Has anyone an Idea what Id have to write in the save button?
Miembro registrado
18 mensajes
Publicado el 19,febrero 2015 - 17:07
So you want to change the value of the pressed button? In example, press ich bin wert 9, then type in #9 in the second text edit, then click the speichern button to change the ich bin wert 9 button to #9 button?
Publicado el 20,febrero 2015 - 09:39
Hi Karma,

Speichern = Save, right?

Your little program is all in memory. To save something you have to create external files (or a field in a database).

That is 'leider' way too long to explain. As you state you are a beginning programmer you might start well by reading the manuals. I know, it is far more exciting to start right away but from a professional view it is far more usefull to start with the right fundamentals.

In a week or so you might have read them all (that was the time I needed for the books of WinDev, WebDev and WinDev Mobile all together, but don't ask me to pass a test about them now).

Kind regards
Rudolf