
The following works, but is it the "proper" way? I just want something easy and reliable.
ProcedureDLL DoubleByRef(*num1.Double)
*num1\d = 17
EndProcedure
Define d1.d = 7
DoubleByRef( @d1 )
; Now d1 = 17
Yes, it's the proper way.TeraByte wrote:The following works, but is it the "proper" way? I just want something easy and reliable.
Code: Select all
ProcedureDLL DoubleByRef(*num1)
PokeD(*num1, 17.0)
EndProcedure
Define d1.d = 7.0
DoubleByRef( @d1 )
Debug d1
Yes, it's the proper way, but you might want to look at modifying how you do it.TeraByte wrote:The following works, but is it the "proper" way? I just want something easy and reliable.
Code: Select all
Structure MyData
Var1.i
Var2.s
EndStructure
Procedure Test(*Me.MyData)
*Me\Var1 = 99
*Me\Var2 = "abc"
EndProcedure
Me.MyData
Test(@Me)
Debug Me\Var1
Debug Me\Var2