Although not strictly a bug this works in the IDE. obj is a Door library object.
name = "Sbar"
sort = "Scrollbar"
obj.Value = Control(name, Scrollbar).ControlRef
or
obj.Value = Control(name, "Scrollbar").ControlRef
or
obj.Value = Control(name, sort).ControlRef
but when optimised compiled Basic4ppc accepts
name = "Sbar"
sort = "Scrollbar"
obj.Value = Control(name, Scrollbar).ControlRef
or
obj.Value = Control(name, "Scrollbar").ControlRef
but not
obj.Value = Control(name, sort).ControlRef
It would be nice it the optimising compiler could also accept a variable as a parameter even if it meant losing
obj.Value = Control(name, Scrollbar).ControlRef
Also a slightly related anomaly. ControlType for a library control returns Namespace.Type whereas Basic4ppc only knows it as Type.
name = "Sbar"
sort = "Scrollbar"
obj.Value = Control(name, Scrollbar).ControlRef
or
obj.Value = Control(name, "Scrollbar").ControlRef
or
obj.Value = Control(name, sort).ControlRef
but when optimised compiled Basic4ppc accepts
name = "Sbar"
sort = "Scrollbar"
obj.Value = Control(name, Scrollbar).ControlRef
or
obj.Value = Control(name, "Scrollbar").ControlRef
but not
obj.Value = Control(name, sort).ControlRef
It would be nice it the optimising compiler could also accept a variable as a parameter even if it meant losing
obj.Value = Control(name, Scrollbar).ControlRef
Also a slightly related anomaly. ControlType for a library control returns Namespace.Type whereas Basic4ppc only knows it as Type.
Last edited: