你要打開不同的窗口只需要改變字符變量的值就可以了;
window w_stock_win[ ]
string ls_stock_type[4]
ls_stock_type[1] = "w_stock_wine "
ls_stock_type[2] = "w_stock_scotch "
ls_stock_type[3] = "w_stock_beer "
ls_stock_type[4] = "w_stock_soda "
FOR n = 1 to 4
//該語句執(zhí)行后,w_stock_win[n]的窗口從ls_stock_type[n]變量中指定的窗體創(chuàng)建
Open(w_stock_win[n], ls_stock_type[n])
NEXT