Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text file - repeating data removal
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01570495
Message ID:
01570498
Views:
48
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Gang!
>
>Question....
>
>Do you have any VFP code that will allow you to remove repetitious lines in a text file of data?
>
>For example.......
>
>
>NHC01A78717871         1 1         diaganosis                                                                                                  2    20130409095657
>NHC01A78717871         3 1         Lay off the Doritos                                                                                         2    20130409095657
>NHC01A78717871         4 1         Activity                                                                                                    2    20130409095657
>NHC01A78717871         5 1         Ancillary orders                                                                                            2    20130409095657
>NHC01A78717871         6 1         dr orders                                                                                                   2    20130409095657
>NHC01A78717871         7 1         rehabs                                                                                                      2    20130409095657
>NHC01A78717871         8 1         >This annoyed me pretty much                                                                                2    NHC01A78717871         1 1         diaganosis                                                                                                  2    20130409095657
>NHC01A78717871         3 1         Lay off the Doritos                                                                                         2    20130409095657
>NHC01A78717871         4 1         Activity                                                                                                    2    20130409095657
>NHC01A78717871         5 1         Ancillary orders                                                                                            2    20130409095657
>NHC01A78717871         6 1         dr orders                                                                                                   2    20130409095657
>NHC01A78717871         7 1         rehabs                                                                                                      2    20130409095657
>NHC01A78717871         8 1         >This annoyed me pretty much                                                                                2    
>
>.... and so on........
>
>
>
>As you can see, the data repeats every so often....... in general, it won't be this nice, but there will be repeating lines of data in the text file.
>
>I'd like to just send over unique lines of text, since the other end receiving it does not want repeating rows of data, they only want unique data.
>
>Thanks for any help!!!
>
>Tommy


Import it in a cursor, then SELECT DISTINCT and export it back as text file :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform