Koen Piller
Programmer
Hi,
This is more or less the same as my question in Thread 184-896484.
I would like to show in my grid in field Sale alternate a label with SOLD or a label with nothing.
So I followed Mike's advise in Thread 184-896484 and
created 2 labels lblSold with text and lblStock without any text
The controlSource for Column17 is Artikele.Verkocht (logical)
Have therefor made following in the init:
And added the 2 labels with following code:
However VFP does not like this at all, since I am presented with following errorcode:
Error with Column17 - CurrentControl : Expression evaluated to an illegal value.
I am at a loss to correct this. Anybody around with a good advice?
Stay healthy,
Koen
This is more or less the same as my question in Thread 184-896484.
I would like to show in my grid in field Sale alternate a label with SOLD or a label with nothing.
So I followed Mike's advise in Thread 184-896484 and
created 2 labels lblSold with text and lblStock without any text
The controlSource for Column17 is Artikele.Verkocht (logical)
Have therefor made following in the init:
Code:
DoDefault()
THIS.Column17.DynamicCurrentControl = 'IIF(Artikele.Verkocht, "lblSold", "lblStock")'
And added the 2 labels with following code:
Code:
With This.Column17
.RemoveObject('Text1')
.Width = 14
.Header1.Caption = 'Verkocht'
.CurrentControl = 'lblSold'
.CurrentControl = 'lblStock'
.ControlSource = 'Artikele.verkocht'
.Sparse = .F.
.ReadOnly = .T.
Endwith
Error with Column17 - CurrentControl : Expression evaluated to an illegal value.
I am at a loss to correct this. Anybody around with a good advice?
Stay healthy,
Koen