GLBasic forum

Other languages => GLBasic - de => Topic started by: mull on 2007-Jun-12

Title: Type im Typ
Post by: mull on 2007-Jun-12
TYPE tPoint
  X; Y
ENDTYPE
TYPE tM
  A; B
  St[1] AS tPoint
ENDTYPE
GLOBAL M AS tM

LOCAL Z, Q
FOREACH Z IN M.St[]
  Q = Z.X             // GEHT NICHT
  Q = M.St[0].X   // Geht
NEXT

Warum geht das eine und das andere nicht ?
Title: Type im Typ
Post by: Kitty Hello on 2007-Jun-12
LOCAL Z -> macht eine Zahl 'Z', und FOREACH Z macht eine weitere Variable 'Z' vom TYPE tPoint.
Evtl desshalb?
Lass' mal LOCAL Z weg.

[edit]
Fehler im nächsten Update behoben.
Title: Type im Typ
Post by: mull on 2007-Jun-12
Jo, ohne Local Z geht es.
Danke
Title: Type im Typ
Post by: Schranz0r on 2007-Jun-12
Mull mausert sich zum Bughunter.... :D
Title: Type im Typ
Post by: Kitty Hello on 2007-Jun-12
Bugs??? Das sind Feature!!

... fehlende... Feature.
Title: Type im Typ
Post by: Schranz0r on 2007-Jun-12
OK..... o.O