English
Forum

variables with Whileloop produce and read?

 

Georg
How can I with whileloop whom Edits a Variable z.B. "edit6& = ..." allocate?

How can I The variables edit1& .... edit5& in a whileloop read?
CompileMarkSeparation
DECLARE BUTTON1&,ENDE%,x%,y1%, Mon$,edit1&,edit2&,edit3&,edit4&,edit5&
DEF GETSYSCOLOR(1) !"USER32","GetSysColor"
WINDOWSTYLE 63
WINDOWTITLE "Neues Fenster"
WINDOW 22,20-977,500
CLS GETSYSCOLOR(15)
USEFONT "MS Sans Serif",13,0,0,0,0
x% = 1
y1% = 87

WhileLoop 31

    @Create("Edit",%HWND,"",y1%,86,22,20)
    x% = x% +1
    y1% = y1% + 20

endwhile

edit1& = @Create("Edit",%HWND,"1",107,106,22,20)
edit2& = @Create("Edit",%HWND,"2",127,106,22,20)
edit3& = @Create("Edit",%HWND,"3",147,106,22,20)
edit4& = @Create("Edit",%HWND,"4",167,106,22,20)
edit5& = @Create("Edit",%HWND,"5",187,106,22,20)
waitkey
 
02/19/13  
 




Jörg
Sellmeyer
the goes best with a aray:
CompileMarkSeparation
Declare Edits&[31]
DECLARE BUTTON1&,ENDE%,x%,y1%, Mon$,edit1&,edit2&,edit3&,edit4&,edit5&
DEF GETSYSCOLOR(1) !"USER32","GetSysColor"
WINDOWSTYLE 63
WINDOWTITLE "Neues Fenster"
WINDOW 22,20-977,500
CLS GETSYSCOLOR(15)
USEFONT "MS Sans Serif",13,0,0,0,0
x% = 1
y1% = 87

WhileLoop 0,30

    Edits&[&Loop] = @Create("Edit",%HWND,Str$(&Loop),y1%,86,22,20)
    x% = x% +1
    y1% = y1% + 20

endwhile

WhileLoop 0,30

    Print "Text: " + GetText$(Edits&[&Loop]) + " Handle: " + Str$(Edits&[&Loop])

Wend

waitkey
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
02/19/13  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.595 Views

Untitledvor 0 min.
E.T.01/14/24
RudiB.03/17/22
ecki04/01/19
Jörg Sellmeyer05/15/18
More...

Themeninformationen

this Topic has 2 subscriber:

Jörg Sellmeyer (1x)
Georg (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