Page 1 of 1

FillMemory() float and double flags

Posted: Tue Jun 09, 2020 9:59 pm
by Psychophanta
Please add #PB_Float and #PB_Double for FillMemory() function.

Re: FillMemory() float and double flags

Posted: Tue Jun 09, 2020 11:18 pm
by idle
+1

in mean time you can do this

Code: Select all

Procedure FillMemoryFloat(*mem,size,val.f) 
 Protected *p.long = @val  
 FillMemory(*mem,size,*p\l,#PB_Long) 
EndProcedure 

Dim ar.f(10) 

FillMemoryFloat(@ar(0),10*4,#PI) 

For a = 0 To 9 
  Debug ar(a) 
Next