What I am trying to do:
- Create MyButton
- Set MyButton.X# in the function and have the value retain when I try this: message str$(MyButton.X#)
- It won't so I try this: MyButton = Create_Button(MyButton).
- That doesn't work so I tried what I posted below.
Type Button
X#
Y#
EndType
MyButton as Button
MyButton.Y# = 1
NewButton as Button = Create_Button(MyButton)
Message str$(NewButton.X#) ` Why does this return 0
do
loop
function Create_Button(MyButton as Button)
MyButton.X# = 2
endfunction MyButton
This is a big draw back in DB Pro!
Thanks for your help!
Dark Fire