/* String GetDWType ( string as_syntax )
*/
string s_DWType
integer i_rtn = 0
DataStore lds
lds = create DataStore
lds.create( as_syntax, s_DWType )
if Len(s_DWType) = 0 then
choose case lds.Describe("DataWindow.Processing")
case '0'
if Pos(as_syntax,'report') > 0 then
/* 하위에 report가 있으면 composite */
s_DWType = 'composite'
else
if long(lds.Describe("DataWindow.Header.Height")) = 0 then
/* Header Height 가 0 이면 */
s_DWType = 'freefrom'
else
if long(lds.Describe("DataWindow.Rows_Per_Detail")) > 0 then
/* 단수가 있으면 n-up */
s_DWType = 'n-up'
else
if Pos(Lower(as_syntax), 'group') > 0 then
/* group 이 있으면 group */
s_DWType = 'group'
else
s_DWType = 'tabular'
end if
end if
end if
end if
case '1'
s_DWType = 'grid'
case '2'
s_DWType = 'label'
case '3'
s_DWType = 'graph'
case '4'
s_DWType = 'crosstab'
case '5'
s_DWType = 'composite'
case '6'
s_DWType = 'ole20'
case '7'
s_DWType = 'richtext'
case '8'
s_DWType = 'treeview'
end choose
end if
return s_DWType