The id must be the lastid+1 so I made this below.
But the function window_newId%() returning 0.
Thanks =)
But the function window_newId%() returning 0.
Type Window Field id% End Type Function window_newId%() wnd.window = Last Window DebugLog wnd\id% ;returns everytime 0 Return 3;(wnd\id%+1) End Function Function window() wnd.window = New Window wnd\id% = window_newId%() End Function While Not KeyHit(1) window() Delay 2000 Wend End
Thanks =)