Home > database >  The contents of the PB in how the SingleLineEdit direct output to the TXT or excel file
The contents of the PB in how the SingleLineEdit direct output to the TXT or excel file

Time:09-25

The contents of the PB in how the SingleLineEdit direct output to the TXT or excel file

CodePudding user response:

1, take out the text content, using the fileopen - filewrite - fileclose, this way the disadvantage is that only wrote on existing files, and can only be written to TXT in
2, establish the datastore for the datastore to specify a contains only one char (7999) column of type dataobject, then remove the singlelineedit text, and importstring to the datastore, saveas then datastore for operation, such defect is when text contains tabs, will cause the text to be intercepted
3, datawindow to replace singlelineedit controls directly, so you can direct the saveas, faults with 2 is the same, you also need to additional handling datawindow the resize event

CodePudding user response:

reference 1st floor yyoinge response:
1, take out the text content, using the fileopen - filewrite - fileclose, this way the disadvantage is that can only be written to the existing documents, and can only be written to TXT in
2, establish the datastore for the datastore to specify a contains only one char (7999) column of type dataobject, then remove the singlelineedit text, and importstring to the datastore, and then the datastore and then to s...

1, estimate how you haven't been used, not heard that can only be written to existing file, according to the different parameters, brothers;
2, 3, the method is very stupid method,

CodePudding user response:

Why not use the DW to handle

CodePudding user response:

If you must use SingleLineEdit, can put the SingleLineEdit the content inside out in a dw, and saveas dw to go,

CodePudding user response:

refer to the second floor youzhi1007 response:
reference 1st floor yyoinge response:
1, take out the text content, using the fileopen - filewrite - fileclose, this way the disadvantage is that only wrote on existing files, and can only be written to TXT in
2, establish the datastore for the datastore to specify a contains only one char (7999) column of type dataobject, text, and then remove the singlelineedit and importstring datas...


Ha ha, thank youzhi1007 brother teach, today the resourcefulness, thinking is the premise of filewrite fileopen, not how to open the file, ha ha, I was wrong, and then see F1
 fileaccess 
(optional) A value of the FileAccess enumerated type that specifies been the file is the opened for reading or writing. Values are:? The Read! ? (the Default) the Read - only access? The Write! ? The Write - only accessIf original concept does not find the file, a new file is created if the fileaccess argument is set to Write!
  • Related