- Code: Select all Expand view
- #include "Fivewin.ch"
FUNCTION MAIN()
USE CUSTOMER
? last
last := "TEST"
? last
RETURN NIL
EMG
#include "Fivewin.ch"
FUNCTION MAIN()
USE CUSTOMER
? last
last := "TEST"
? last
RETURN NIL
Antonio Linares wrote:Enrico,
It works because the alias is specified. Remove the alias and it will fail.
Antonio Linares wrote:Marc,
It fails because the field "hexcode" is type char and you are assigning it a nil value:
aadd( aMail ,{ cdd, If( cHex == nil, "", cHex ) } )
Antonio Linares wrote:Marc,
fields assignment must use ":="
shopcolor->kleuren := cKleur
shopcolor->hexcode := Chex
Enrico Maria Giordano wrote:Antonio Linares wrote:Marc,
fields assignment must use ":="
shopcolor->kleuren := cKleur
shopcolor->hexcode := Chex
It's not true. In that context, the two operators = and := are equivalent.
EMG
Antonio Linares wrote:Marc,
fields assignment must use ":="
shopcolor->kleuren := cKleur
shopcolor->hexcode := Chex