| |
|
|
 Jörg Sellmeyer | Yo fände lo ausgesprochen nützlich, si uno el Werte el integrierten Estructuras con New() igual füllen podría: KompilierenMarcaSeparación |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 05.04.2012 ▲ |
|
|
|
|
 RGH | Lo hindert Usted niemand, el passenden Konstruktoren a escribir (PROC xpRect.xpRect) y Deinem Programa hinzuzufügen, etwa una INC con allen Konstruktoren.
Saludo Roland |
|
|
| XProfan X2Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 05.04.2012 ▲ |
|
|
|
|
 Jörg Sellmeyer | Sí, ya klar. Aber wieviel praktischer wäre lo, si el igual ya drin wäre! |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 05.04.2012 ▲ |
|
|
|
|
 | Como el StartPaint-Stack!  |
|
|
| |
|
|
|
 Jörg Sellmeyer | RGH (05.04.12)
Lo hindert Usted niemand, el passenden Konstruktoren a escribir (PROC xpRect.xpRect) y Deinem Programa hinzuzufügen, etwa una INC con allen Konstruktoren.
Saludo Roland
Ach sí - como haben mi Versuche por desgracia, no el gewünschte Ergebnis gebracht  Das jedenfalls bringt nix: KompilierenMarcaSeparación
Proc xpRect.xpRect
Parameters b#,a!,b!,c!,d!
b# = New(xpRect)
With b#
.posx! = a!
.posy! = b!
.x! = c!
.y! = d!
EndWith
Dispose b#
EndProc
Var R# = New(xpRect,R#,10,10,100,100)
With R#
Print .posx!, .posy!
Print .x!,.y!
EndWith
WaitInput
|
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 06.04.2012 ▲ |
|
|
|
|
 | Exactamente, como el StartPaint-Stack!
[offtopic]falsches Thema stimmts?  [/offtopic]
Übersehe Yo ahora qué oder es el Disponer fehl al Platz? |
|
|
| |
|
|
|
 Jörg Sellmeyer | Es sicher komplett falso. Aber deshalb frage Yo en efecto después de... |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 06.04.2012 ▲ |
|
|
|
|
 RGH | Sí, el es komplett falso! Siehe Ayuda para Thema "Konstruktor".
Zu berücksichtigen es, dass lo hier en Estructuras es. Und Estructuras enthalten natürlich keinerlei Métodos, also auch no Konstruktoren. Aber uno kann el Struktur uno Klasse vererben, el una Konstruktor ha: KompilierenMarcaSeparaciónClass myRect = xpRect, myRect@
Proc myRect.myRect
Parameters a!,b!,c!,d!
.posx! = a!
.posy! = b!
.x! = c!
.y! = d!
EndProc
Var R# = New(myRect,10,10,100,100)
With R#
Print .posx!, .posy!
Print .x!,.y!
EndWith
WaitInput
Saludo Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 06.04.2012 ▲ |
|
|
|
|
 Jörg Sellmeyer | Ok - ahora verstehe Yo, lo que quiere decir. Das Tuve me auch ya zusammengebaut. Aber así una eingebauter Konstruktor para el internen Estructuras hätte doch qué, oder? |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 06.04.2012 ▲ |
|
|
|