[futurebasic] Re: [FB] Where are my glasses?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2012 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Wed, 21 Mar 2012 09:07:48 -0700
On Mar 20, 2012, at 10:33 PM, Brian S wrote:

>> FN FiddleWithVoltage (voltage(x,y,z)) //??
> 

A single array element may be passed by reference and that specific data modified in the called fn.

'---------------
local fn DoSomeThingElse( x as ^SInt32 )
x.nil& = 7890 
end fn

local fn GetSomeData
dim as SInt32  myData( 5, 6, 5000 )

fn DoSomeThingElse( @myData( 1, 1, 2000 ) )
print myData( 1, 1, 2000 )
end fn

fn GetSomeData
RunApplicationEventLoop
'---------------



Brian S