利用pb本身的功能,反编译pbd文件中的dw
<p>主要的核心代码如下:</p><p>string ls_pbd = 'e:\例子目录\例子文件.pbd'<br/>setlibrarylist(ls_pbd)<br/>if pos(getlibrarylist(),ls_pbd)>0 then<br/> if fileexists(ls_pbd) then<br/> else<br/> return<br/> end if<br/>else<br/> return<br/>end if<br/>string ls_dir</p><p>string ls_dataobject[] = {'d_debug','d_params','d_procexec','d_search','d_edit_userlist','d_columns','d_export_info','d_export_tables','d_search_exact','d_triggers','zz_d_toolbars'}<br/>datastore ld<br/>.....<br/>.....<br/> ld = create datastore<br/> j = upperbound(ls_dataobject)<br/> for i = 1 to j<br/> ld.dataobject = ls_dataobject<br/> ls_swap = '$PBExportHeader$'+ls_dataobject+'.srd~r~n'+ld.describe('datawindow.syntax')<br/> af_writefile(ls_dir+ls_dataobject+'.srd',ls_swap) //写文件<br/> next<br/> destroy ld<br/>....<br/>MessageBox('信息','完成。')</p>[此贴子已经被作者于2008-2-1 16:58:35编辑过]
看看 <p>真可以吗,看看</p> 活学活用,支持~ :victory:看看 真得很想学 不错~~~~~~~~~~~~~~~~~~~~~· Very Good :'( 进来是学习的
页:
[1]