|
°°Àº DW¸¦ º¹»çÇÒ·Á¸é RowsCopy¸¦ »ç¿ëÇÕ´Ï´Ù.
Çåµ¥ °°Àº Å×À̺íÀ» ¾²Áö¸¸ ÇÑÂÊÀº Á¶ÀεǾî ÀÖ°í ÇÑÂÊÀº ±×³É ÇѰ³ÀÇ Å×À̺íÀÌ´Ù.
º¸Åë ¿¢¼¿·Î ÀڷḦ ³»¸±¶§ ºÒÆíÇÏÁö¿ä
º¹»çµÇ´Â DWÀÇ Ä÷³À» ±âÁØÀ¸·Î ¿øº»¿¡¼ ÀڷḦ º¹»çÇØ ºÃ½À´Ï´Ù.
PS,. À̸§ÀÌ ´Ù¸£´õ¶óµµ Ä÷³¹øÈ£¸¦ ÀÌ¿ëÇÏ´Â ¹æ¹ýµµ ÀÖ½À´Ï´Ù.
//wf_savecopy(adw, tdw) string ls_objects, ls_column[], ls_col,
ls_coltype long ll_pos, row, irow integer i tdw.Reset() ls_objects
= tdw.describe ("Datawindow.Objects") ls_objects += '~t' ll_pos = 0 ;
ll_pos = pos(ls_objects, '~t') Do While ll_pos > 0 ls_col =
Left(ls_objects, ll_pos - 1 ) if tdw.describe(ls_col + ".type") = 'column'
then ls_column[UpperBound(ls_column) + 1] = ls_col end
if ls_objects = Mid(ls_objects, ll_pos + 1 ) ll_pos = 0 ll_pos =
pos(ls_objects, '~t') Loop
for row = 1 to adw.rowcount() irow = tdw.insertrow(0) for i = 1 to
UpperBound(ls_column) ls_coltype = tdw.describe(ls_column[i] +
".coltype") if pos(ls_coltype,'(') > 0 then ls_coltype =
Left(ls_coltype, pos(ls_coltype,'(') - 1) choose case ls_coltype case
'decimal' tdw.SetItem(irow, ls_column[i], adw.GetItemDecimal (row,
ls_column[i]) ) case 'number', 'long' tdw.SetItem(irow,
ls_column[i], adw.GetItemNumber (row, ls_column[i]) ) case
'char' tdw.SetItem(irow, ls_column[i], adw.GetItemString (row,
ls_column[i]) ) case 'date' tdw.SetItem(irow, ls_column[i],
adw.GetItemDate (row, ls_column[i]) ) case
'datetime' tdw.SetItem(irow, ls_column[i], adw.GetItemDateTime(row,
ls_column[i]) ) end choose next next |