Español
Wünsche y Sugerencias

Integrierte Estructuras

 

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
Var R# = New(xpRect,0,0,100,100)
Print R#.x!
WaitInputre>
 
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 X2
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
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!
 
06.04.2012  
 




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?
 
06.04.2012  
 




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ón
Class 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  
 



Respuesta


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

9.506 Views

Untitledvor 0 min.
H.Brill12.10.2022
Matthias Arlt22.06.2020
p.specht07.05.2016
Michael Klumb19.02.2016
Más...

Themeninformationen

Dieses Thema ha 3 subscriber:

Jörg Sellmeyer (5x)
iF (2x)
RGH (2x)


Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie