English
Forum

OOP: Structure of class transfer

 
- Page 1 -


be I To dusselig?

How can I a globaldefinierte and dimensionierte structure by Konstruktorparameter on a Class pass, sodaß I in with-senses grab can...?
 
09/26/06  
 



 
- Page 1 -



Michael
Wodrich
struct xy = x&,y&
proc obj.meth
parameters b#
with b#
.x& = ...
.y& = ...
endwith
 
Programmieren, das spannendste Detektivspiel der Welt.
09/26/06  
 




Michael
Wodrich
Long goes too, but You can whom Parameter same as area indicate - it must then but too of/ one his. goes faith I first ex v9, before was long coercive.
 
Programmieren, das spannendste Detektivspiel der Welt.
09/26/06  
 



Michael Wodrich
struct xy = x&,y&
proc obj.meth
parameters b#
with b#
.x& = ...
.y& = ...
endwith


I thought the scheiternd probiert to have, again Syntax to check on...
 
09/26/06  
 



OK differently...

I have a structure
CompileMarkSeparation
Struct xy=x&,y&
und eine Klasse
class my=+my@,#xy#(8)
//konstruktor

proc my.my

    parameters .xy#

    with .xy#

        *jammer*

    endwith

endproc

declare myclass#,myxy#
dim myxy#,xy
myclass#=new(my,xys=s2>)

is me yet To help?
 
09/26/06  
 




Michael
Wodrich
class my=+my@,#xy#(8)

class my=#xy,+my@ structure directly indicate

otherwise must You intern in the method a Strukturbereich lay out and tricksen.
(Zeiger verbiegen, in the Helpfile is to a example)
 
Programmieren, das spannendste Detektivspiel der Welt.
09/26/06  
 



i was hoping ums Zeigerholen drumherumzukommen!
 
09/26/06  
 




RGH
and How is it so:
CompileMarkSeparation
!
Struct Xy = x&, y&
und eine Klasse
Class My = +My@,
#Xy#(8)
konstruktor

Proc My.my

    Parameters Pos#

    With Pos#

        Print .x&
        Print .y&

    Endwith

Endproc

Declare Myclass#,
Myxy#
Dim Myxy#, Xy

With Myxy#

    .x& = 45
    .y& = 75

EndWith

Myclass# = New(My, Myxy#)
WaitInput

so functions it correct.

Greeting
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
09/26/06  
 



Yes very, so I had me the too virtual - and it functions!

I had well something on the Syntax wrong.
 
09/26/06  
 




RGH
iF
Yes very, so I had me the too virtual - and it functions!

I had well something on the Syntax wrong.


Yes, You tried instead of the structure self The Typdefinition the structure To übergen:

myclass#=new(my,xy)

and the can't gutgehen. otherwise can Structures (not its Typdefinitionen) and Objects (not The Thread-speed?) directly over Parameters transfer go.

Greeting
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
09/26/06  
 



Hm clear lol naturally - have simply not enough attention...

thanks Roland!
 
09/26/06  
 



 
- Page 2 -


is it eigendlich only z.B. with of/ one Klassenvariable possible the Destructor automatically beizubringen the the area again Disposed becomes?
 
09/26/06  
 




Michael
Wodrich
can You whom set time something zerpflücken and new formulieren?
 
Programmieren, das spannendste Detektivspiel der Welt.
09/26/06  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.595 Views

Untitledvor 0 min.
Jörg Sellmeyer01/24/13

Themeninformationen

this Topic has 3 subscriber:

iF (8x)
Michael Wodrich (4x)
RGH (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie