PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → Table Programming
Table Programming
Iniciado por Hendrik Wijaya, fev., 05 2010 7:39 AM - 1 resposta
Publicado em fevereiro, 05 2010 - 7:39 AM
Hi,

I have a Table Control with 2 columns. "Code" and "Name".
In the column "Code" I make a program like this:

Whenever Modified of code (TABLE_Items) (server)
IF code = "1" THEN
name = "testing 1"
ELSE IF code = "2" THEN
name = "testing 2"
ELSE
name = "undefined"
END

When I enter "1" in the Code column and then I move the cursor using the Tab, then the Name field is not filled according to the program immediately (should appear "testing 1" in the Name column).
Column Name will be filled when I had moved on the next line.
How to fill a column Name when I came out of the column Code?
Publicado em março, 12 2010 - 3:09 PM
Hi Hendrik,
try this code:
IF TABLE_Items.code = "1" THEN
TABLE_Items.name = "testing 1"
ELSE IF TABLE_Items.code = "2" THEN
TABLE_Items.name = "testing 2"
ELSE
TABLE_Items.name = "undefined"
END

Regards,

Victoria Caballero

It happens that Hendrik Wijaya formulated :
Hi,

I have a Table Control with 2 columns. "Code" and "Name".
In the column "Code" I make a program like this:

Whenever Modified of code (TABLE_Items) (server)
IF code = "1" THEN
name = "testing 1"
ELSE IF code = "2" THEN
name = "testing 2"
ELSE
name = "undefined"
END

When I enter "1" in the Code column and then I move the cursor using the Tab,
then the Name field is not filled according to the program immediately
(should appear "testing 1" in the Name column). Column Name will be filled
when I had moved on the next line. How to fill a column Name when I came out
of the column Code?