Koen Piller
Programmer
Hi,
I would like to have one of the textboxes on my form to have a function as controlsource, which I believe should be possible. However when I apply following code into the ControlSource I get when I click Apply I get error "The data source for this object must be a variable reference"
Any idea what I am doing wrongly here?
Regards,
Koen
I would like to have one of the textboxes on my form to have a function as controlsource, which I believe should be possible. However when I apply following code into the ControlSource I get when I click Apply I get error "The data source for this object must be a variable reference"
Any idea what I am doing wrongly here?
vfp said:Icase(Between(Val(Result.Outcome),Val(Component.Defaultmin) ,Val(Component.Defaultmax)), 'Default', Val(Result.Outcome)<Val(Component.Defaultmin),'-'+Transform(Val(Component.Defaultmin) - Val(Result.Outcome)), Val(Result.Outcome)>Val(Component.Defaultmax),'+' + Transform(Val(Result.Outcome) - Val(Component.Defaultmax)))
Regards,
Koen