Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need some Improvement (STRTRAN Function)
Message
From
13/11/2017 12:55:13
 
 
To
13/11/2017 12:32:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01655516
Message ID:
01655560
Views:
45
Sir, I have learnt a lot from this forum and particularly yourself, so have great respect for you. So how can I be stubborn if a teacher( as I have learnt from you a lot) is asking to me that too for my own cause.

What I have, I have already given.

Now what I need is that I need to Extract the strings that starts with _123456789_123456789 and Ends with /MediaBox and Change it my string at the entire location in the Given Sample File.

Say in the given sample there is '_123456789_123456789_123456789__0 R /MediaBox' , I need to Extract this and change it with '3 0 obj /MediaBox' or what ever (Each String with Different string like 3 0 obj /MediaBox for first one, 4 0 obj /MediaBox for second case etc)

Regards
Harsh


>OK, you tell me what you have. But you don't tell me what you want! I am not a mind reader, and I don't want to analyze your file and try to understand what you want. Unless you tell me, I can't help you.
>
>Please read my earlier messages again! And don't be so damn stubborn, answer my question!!!
>
>>The complete sample PDF Files are attached herewith. I am trying to repair or you can say edit these Files by going inside the files.
>>
>>https://www.dropbox.com/s/ortwm9qyyx7i542/Sample.7z?dl=0
>>
>>
>>
>>
>>>I give up! You keep on repeating yourself instead of answering my simple question. What's so difficult with providing some sample, a la this:
>>>
>>>1. Data: 'fsdjfsdsdlfds' I want 'dsd'
>>>2. Data: 'dfgdføfdfgdf' I want 'fdf'
>>>
>>>Please read the question we ask!!!!! We don't know what you know, so you must tell us what we ask for!
>>>
>>>>Sir Here is the link with Real Data. in Text File
>>>>
>>>>https://www.dropbox.com/s/p2ud6aknblqwxw3/123Data.txt?dl=0
>>>>
>>>>I need to do what STREXTRACT() do it for records.
>>>>
>>>>i.e want to extract string between _123456789 and /Mediabox in all the cases and replace that extracted Text with my own Specific string.
>>>>
>>>>Each of the above extracted String so extracted will be replaced by each Unique string.
>>>>
>>>>Thanks
>>>>
>>>>
>>>>>I am no mind reader, soI try a third (and last) time: Please show some realistic data, and what you want as a result. The more samples the better.
Harsh
Previous
Reply
Map
View

Click here to load this message in the networking platform