Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Replace
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Replace

 Post Reply Post Reply
Author
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Topic: Replace
    Posted: 20 January 2005 at 10:41am
I have a file wrote in this format:
Quote
[1:1]
text text text text text text text text text text text text
text text text text text text
 
[1:2]
text text text text text text text text text text text text
text text text text text text
and so on, (>10000 records)..
 
now, i want to enter these 10000 record in database, each record in a row.  how can this be done?
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2005 at 10:45am
I tried something like this with fron page:
i replaced the ] by <tr><td>
i replaced the [ by </td></tr>
 
and wrote at the begining <table> and at the end </table> and just deleted the [ and the last ]
it worked since i can see it as a table each record in a row in html, but still i can het red of the numbers before and after :
 
can this be done through the replace function?
 
i.e. take the whole page and do a function over it, so to detects the : and delete the numbers and brackets before and after it?
 
or there is a simpilar way?
 
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2005 at 11:29am
im not sure what you mean by

"but still i can het red of the numbers before and after :"
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2005 at 12:19pm
Yes, vbCrlf can be used.  vbCrlf is a line break, so between two records there seem to be two line breaks.  So you would do:

Split(file,vbCrlf & vbCrlf)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.