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
Your solution is correct. "Char(13) + Char(10)" works fine. I was missing Char(10) !!!!!
I'm migrating from PowerBuilder 9 and "ls_syntax = '$PBExportHeader$' + ls_dw_name + Char(13) + ls_syntax" (without Char(10)) was working fine.
Thanks for all your help.
Regards,
________________
Julián Tagarro
NeoSistemas SRL