I know you can use CopyMemory/peek/poke.
This line stops it; 'Protected.Newtest Attempt = ?Mystructure'
This is for reading only, not writing to.
Code: Select all
EnableExplicit
Structure NewTest
Value1.l
Value2.l
Value3.l
Value4.l
EndStructure
DataSection
MyStructure:
Data.l 4,16,64,256
EndDataSection
Define nl.NEWTEST
Procedure loadConfig(*t1.newtest)
Protected.Newtest Attempt = ?Mystructure
Protected.i x
x = ReadFile("JustChecking.txt"
If x
; do lots of stuff
CloseFile(x)
Else
*tl = *Attempt
EndIf
;*t1\Value1=1
;*t1\Value2=2
;*t1\Value3=4
;*t1\Value4=8
EndProcedure
loadConfig(@nl)
Debug nl\Value1
Debug nl\Value4
