English
Bugs and vermeintliche

actually Version: XProfan X4

Error aray Objects Parameter Übergabe

 

Jörg
Sellmeyer
One merkwürdiger Error, the me over ands over again time Etliches on Suchzeit cost

Class TestKlasse = parent&,\
hdl&,\
Bild&,\
Back&,\
x&,y&,\
Size&,\
TestKlasse@

Proc TestKlasse.TestKlasse

    Parameters parent&,groesse%,Bild&,Back&
    .parent& = parent&
    .Bild& = Bild&
    .Back& = Back&
    .Size& = groesse%
    .hdl& = Create("Button",.parent&,Str $(.Back&) + " " + Str $(Bild&),340,280,groesse%,groesse%)

ENDPROC

Class TestButton = TestKlasse,\
Anzahl&,\
TestButton@

Proc TestButton.TestButton

    Parameters b#[],parent&,Anzahl&,gr%,back&,Img&

    WhileLoop 0,Anzahl& -1

        b#[&Loop] = New(TestKlasse,%hwnd,gr%,back&,Img&)
        print b#[&Loop].hdl&,

    Wend

ENDPROC

Cls
Declare TestButton#[],Test%
Var Test# = New(TestButton,TestButton#[],%hwnd,8,140,-23456,345673)
print
print "If one at first Schleifendurchlauf 0 types knallt es"

While 1

    Input Test%

    If Test%

        Print Test%,"If Test% a worth has and these row carryed out becomes,\nkann one in the further course again 0 prompt."
        'if these row not carryed out becomes knallt it
        Print SizeOf(TestButton#[])

    Else

        Print Test%,"draußen"

    EndIf

    With TestButton#[0]

        Print .parent&,.hdl&

    EndWith

Wend

 
XProfan X3
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
05/30/18  
 




Michael
W.
TestButton#[]
Evtl. one dynamisches aray first with

SetSize TestButton#[],1

vivify and then allocate??
 
Alle Sprachen
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
05/31/18  
 




Jörg
Sellmeyer
is Yes then just as one Workaround, How my ploy. I point SizeOf() simply of/ one temporären variables To and then works it. but the can Yes not sense the thing his.
 
XProfan X3
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
05/31/18  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.791 Views

Untitledvor 0 min.
Stringray01/05/22
RGH07/05/20
Rolf Koch01/15/20
Thomas Zielinski08/31/19
More...

Themeninformationen

this Topic has 2 subscriber:

Jörg Sellmeyer (2x)
Michael W. (1x)


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