| |
|
|
 Georg | ¿Cómo se puede Yo en whileloop el Edits una Variable z.B. "edit6& = ..." zuweisen?
¿Cómo se puede Yo el Variables edit1& .... edit5& en un whileloop auslesen? KompilierenMarcaSeparaciónDECLARE 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
|
|
|
| |
|
|
|
 Jörg Sellmeyer | Es al besten con un Array: KompilierenMarcaSeparaciónDeclare 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 ...  | 19.02.2013 ▲ |
|
|
|