Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get rid of hyperlink
Message
From
14/01/2013 09:14:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
13/01/2013 21:11:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01562409
Message ID:
01562427
Views:
45
>I am importing from a text file to a table timetemp.dbf
>the problem is that part of the text string i am importing is hyperlink
>example:
>mytext string 122333 end of string. ****the 122333 is hyperlink in the original email from which it is imported.
> the next command in programming is
>
>append from mytext.txt type sdf
>replace all rinfo with ltrim(rinfo) 
>
>is there a way for me to remove the hyperlink status associated with the numbers.
>I thought that text file would not carry the hyperlink tag. but apparently it does.
do while "<"$lcString
   lcCut=strextract(lcString, "<", ">",1,4)   && or whatever the flag is to mean "include delimiters"
   lcString=strtran(lcString, lcCut, "")
enddo
Here I'm assuming that the tags are opened and closed on the same line. If not, you may have to do a filetostr("mytext.txt"), remove tags, then use aLines() to get the text into an array and then loop thorough the array instead of scanning through your cursor.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform