09-20-2024, 11:19 PM
(09-20-2024, 10:51 PM)SMcNeill Wrote: This one is simple. You're using two different variables of the same name and different types.Actually, I think I recall where the delusion came from... at some point someone said that if you declare a FUNCTION with a type, ie
Code: (Select All)Dim Shared cBlue As _Unsigned Long
In your program, you're using the variable named cBlue... But you DIM SHARED cBlue~&.... those aren't the same variables.
cBlue defaults to a single. cBlue~& is an unsigned long.
singles don't carry blue transparency values, so they get rounded to 0.
Code: (Select All)
Function MyFunction~& ( <params here/> )
MyFunction~& = <some value/>
End Function
Code: (Select All)
MyFunction~&(a, b, c)
Code: (Select All)
MyFunction(a, b, c)