
If I define the color inside the sub, it's ok (see below).
Code:
private sub setlabel()
Dim B1
B1 = RGB (0,52,105)
me.label1.forecolor = B1
end sub
Code:
Function SetColor()
Dim B1
B1 = RGB (0,52,105)
End function
Code:
Private sub setlabel()
SetColor()
me.label1.forecolor = B1
end sub
Code:
private sub setlabel()
SetColor(B1)
me.label1.forecolor = B1
end sub
Again, this is probably some definition of arguments or dimensions that I am not aware of. Does any one have an idea how to predefine the colors in a function to give them a "short" code which I can call in any sub in the database?