홈 · 개발 참고자료

개발 참고자료

[파워빌더] columns 존재 유무 체크

작성자
웨이브
작성일
2015-07-03
조회
10737
분류
파워빌더
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 )