English
Forum

bow: Classes and & Loop in WhileLoop-creep

 

Jörg
Sellmeyer

CompileMarkSeparation
Class Test = Test@,
hLV&,
gethdl@

Proc Test.Test

    Parameters hwnd&,x%
    Declare n%,h&
    .hLV& = Create("GridBox",hwnd&,"test;0;80;Test;0;80",0,0,x%,400,100)
    h& = .hlv&

    WhileLoop 4

        AddString((h&),"Test|" + Str$(&Loop))so würde es funktionieren
        hier wird .hLV& nicht erkannt und stattdessen eine Fehlermeldung ausgegeben:
        Bereichsvariable ist nicht dimensioniert
        das passiert aber nur innerhalbeiner Schleife!
        AddString((.hLV&),"Test|" + Str$(&Loop))

    Wend

EndProc

Proc Test.gethdl

    Return .hLV&

EndProc

Cls
Declare AA#[5]
Var hTabCtrl& = Create("TabCtrl",%hwnd,"Test",0,24,Width(%hwnd),Height(%hwnd) - 24)

WhileLoop 7

    InsertTab(hTabCtrl&,&Loop,"Test" +Str$(&Loop))

Wend

WhileLoop 0,2

    AA#[&Loop] = New(Test,hTabCtrl&,(104 * &Loop + 26))

Wend

WhileLoop 0,2

    Print AA#[&Loop].gethdl()

Wend

WaitInput

In of/ one normalen While-Loop functions it however. under XProfan10 have I now too tested and it knallt ditto!
I find however, this is nothing, what somehow as feature deklarieren could: [...] 
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/27/08  
 




Dieter
Zornow
i think time it's located here dran

AA#[& Loop]
The Fehlermeldungen of Profan must one not To serious take. it'll fixes, that something not is correct and then something, by Zufallsgenerator angemeckert. have I often erlebt and one seek on the incorrect Space.
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
08/27/08  
 




Jörg
Sellmeyer
this is me already clear, that it on it lying. leaves itself indeed integrally simply to check on. simply these Loop insert, instead of the in the code:
CompileMarkSeparation
Declare l%

WhileLoop 0,2

    l% =&Loop
    AA#[l%] = New(Test,hTabCtrl&,(104 * &Loop + 26))

W
>

and already functions it. is Although a Workaraound, the others ought to but nevertheless functions.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/27/08  
 




Jörg
Sellmeyer
apparently one bow, whom Roland overlooking has...

Perhaps depends the so together: [...] 

These functions z.B. neither:
CompileMarkSeparation
Class b = s1$(5),s2$(5)
Declare x#,z$
Dim x#,b
Cls

With x#

    .s1$ = "Test"
    Print .s1$
    Input .s2$
    Print .s2$

EndWith

nput
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/21/11  
 




RGH
Hello Jörg,
in Your example goes it, if you at Input-commands x#.s2$ angibst. Offensichlich becomes with Input (who using so about?) The With-expansion overlooking.
I look time to. the should but always so his.

Greeting
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
10/21/11  
 




Jörg
Sellmeyer
it shining even not only at Input-commands so To his. If you time the Link follow - there has someone the Completed: Input #n,.s$
within of/ one procedure is the thoroughly meaningfully, if one Klassenprozeduren writes, in them even not the Bezeichner beforehand stand should.

probably can with the of/ one Parameter Passing the Klassenbezeichners solve but the find I Suboptimal.

have Thou whom Error of Eröffnungspost found?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/21/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.276 Views

Untitledvor 0 min.
RudiB.02/16/22
Uwe Lang01/17/17
Wilfried06/02/16
Erfurt07/15/12
More...

Themeninformationen



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