|
-
Nov 25th, 2021, 04:20 AM
#18
Re: [RESOLVED] Read Text file and make changes to text by searching a string
Here in above data file string 3 is 11.2 and string 4 is 16.43. same way in full file in need to replace the value of string 4 to string 3 and a option of + or - thr value of text 1.text.
please explain better, what should string 3 now be, and what is the criteria for the option of + or - and detail what the output line should look like with example including content of text1
.maxfilesize does not do what you expected, it is for the size of the filenames returned, when multiple files are selected not the space of the file on the disk, max value 32k, default 256
If the data file ismore than 2 mb error shows
at which line does the error occur?
the size of the saved file is not affected by any thing from the common dialog
i was able to write files in excess of 32gb using similar code, takes a while though
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|