- Julián Tagarro
- PowerBuilder
- Thursday, 30 April 2020 08:24 PM UTC
Hi All,
Please follow me through this steps:
* Inside a pbl I have a datawindow. In runtime, using LibraryExport, I export it to a string variable.
* Set a name for the object and add the header.
ls_dw_name = 'd_test'
ls_syntax = '$PBExportHeader$' + ls_dw_name + CharA(13) + ls_syntax
* Save ls_syntax to a file
ls_file = 'c:\temp\d_test.srd'
li_handle = FileOpen ( ls_file , TextMode! , Write! , LockReadWrite! , Replace! , EncodingUTF16LE! )
FileWriteEx ( li_handle , ls_syntax )
FileClose ( li_handle )
The problem is that when I try to import it to a tmp_pbl (using PB IDE) I get the "DataWindow syntax has incorrect release number". But when I add a blank space and save it using PB File Editor (not working with notepad or other text editor) then, I can import the datawindows without problems.
What am I missing in the proccess of generating the srd ? Why it "get fixed" when I save the file using PB File Editor ?
Best Regards,
_______________
Julián Tagarro
NeoSistemas SRL
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.