Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Type add members
#1
Is possible run the code without "previous declaration is different. Change?"

Macro
Code:
Copy      Help
type test1 str's1 i1
ARRAY(test1) at1.create(10)
at1[0].s1="x1"
at1[0].i1=1


type test1 str's1 i1 i2
at1[0].i2=3

out at1[0].s1
out at1[0].i1
out at1[0].i2

or exist a better way to add members in runtime?
#2
No. Changing data members is dangerous. QM does not track which functions use variables of that type. If currently nobody uses them, then it is safe to change the type, else better restart QM.


Forum Jump:


Users browsing this thread: 1 Guest(s)