Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
custom type variable question
#5
Macro Macro2762
Code:
Copy      Help
type TOTO str's str'd int'r
TOTO g
g.s="mmm"; g.d="vvvv"; g.r=8


str file="C:\test\TOTO.txt"

str s1.getstruct(g 1)
s1.setfile(file)

str s2.getfile(file)
;out s2
TOTO g2; s2.setstruct(g2)
out g2.d

;del file

Not all types are supported with setstruct/getstruct. For example types with arrays are not supported.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)