[파워빌더] columns 존재 유무 체크
string ls_test, ls_column, ls_result
ls_column = 'colname'
ls_column = 'report_copies'
//Check the column.id property.
// Describe returns the number of the column if the column exists.
// Describe returns an exclamation point (!) if the column doesn't exist.
ls_test =dw_order.Describe(ls_column+'.id' )
If ls_test = '!' then
ls_result = ls_column + ' (id='+ ls_test + ') ' + ': Column does not exist.'
else
ls_result = ls_column + ' (id='+ ls_test + ') ' + ': Column exists.'
end if
MessageBox ('Testing', ls_result )
ls_column = 'colname'
ls_column = 'report_copies'
//Check the column.id property.
// Describe returns the number of the column if the column exists.
// Describe returns an exclamation point (!) if the column doesn't exist.
ls_test =dw_order.Describe(ls_column+'.id' )
If ls_test = '!' then
ls_result = ls_column + ' (id='+ ls_test + ') ' + ': Column does not exist.'
else
ls_result = ls_column + ' (id='+ ls_test + ') ' + ': Column exists.'
end if
MessageBox ('Testing', ls_result )