473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Using the 'Replace' statement....

Hello,

Quick question.
If I have a whole list of text, (Technical Specifications), I
understand that I can replace keystrokes with line breaks etc.

What if my listing needs to like something like:

-------------------

Video

Maximum Resolotion 1600x120............
Video Compatability Blah Blah Blah
Etc Etc.......

How do I deal with the spaces inbetween the Sub Header and it's detail,
i.e

Maximum Resolotion < SPACES> 1600x12000 <End of line>.

and how would I deal with this line, where there are multiple lines of
data per sub header ?

DDC < SPACES> HHHDFHDHHDFHFDGHHHDFGH <End of line>.
HHHDFHDHHDFHFDGHHHDFGH <End of
line>.
HHHDFHDHHDFHFDGHHHDFGH <End of
line>.
Appreciate your help
Thanks
David

Jan 11 '06 #1
1 1346
You could replace spaces by &nbsp; and <end of line> by <br>.

Note also that it will work only for proportional fonts. Non proportional
wouldn't align. I would really format the data using HTML.

If I didn't understood rephrase the problem with the exact point that raises
a problem...

--
Patrice

"David" <go********@googlemail.com> a écrit dans le message de
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

Quick question.
If I have a whole list of text, (Technical Specifications), I
understand that I can replace keystrokes with line breaks etc.

What if my listing needs to like something like:

-------------------

Video

Maximum Resolotion 1600x120............
Video Compatability Blah Blah Blah
Etc Etc.......

How do I deal with the spaces inbetween the Sub Header and it's detail,
i.e

Maximum Resolotion < SPACES> 1600x12000 <End of line>.

and how would I deal with this line, where there are multiple lines of
data per sub header ?

DDC < SPACES> HHHDFHDHHDFHFDGHHHDFGH <End of line>.
HHHDFHDHHDFHFDGHHHDFGH <End of
line>.
HHHDFHDHHDFHFDGHHHDFGH <End of
line>.
Appreciate your help
Thanks
David

Jan 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: middletree | last post by:
What's wrong with this code? strLongDesc = Replace(Replace(Replace(Replace(Trim(Request.Form("LongDesc")),"'","''"),vbC rLf,"<br>"),"<",&lt;),"<",&gt;) Background: This field is a textarea, and I...
1
by: eddie wang | last post by:
I try to replace the following STATEMENT ONE with STATEMENT TWO. But it doesn't work. How to make it work??? Thanks. STATEMENT ONE: <td colspan="10" align="center"><a...
0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
4
by: Japhy | last post by:
Hello, I'm am pulling data from a mysql db and want to use the data to populate a <ul. Here are relavent parts of my code : $wohdate = mysql_result($wohRS,$wohndx,woh_date); $woh_display...
19
by: Paul | last post by:
hi, there, for example, char *mystr="##this is##a examp#le"; I want to replace all the "##" in mystr with "****". How can I do this? I checked all the string functions in C, but did not...
2
by: bj daniels | last post by:
I am not certain which group to post this to - sorry if this is the wrong group: I have a table that holds the location of various media and such (mostly images). One field is the Media name,...
3
by: Andy Sutorius | last post by:
Hi, I read the thread (2/16/05) regarding a replace function in C# however it didn't answer my question. I have a string which is building an insert sql statement and I would like to replace...
2
by: Justin Fancy | last post by:
Hi everyone, I need some help. I'm placing text files into a created database using vb.Net. The problem is that, i need two seperate sql statements to add both files because they are in...
2
by: Jeremy | last post by:
I am trying to replace a string "P" with "\P" as long as the string "P" does not already have a "\" in front. for my search string I've used @"(P)" so my regex replace statement is: ...
10
by: Chris H | last post by:
Greetings, I'm trying to update an address field with "standard" abbreviations so that I can do a comparison of various accounts to one another on the address. I can update a set of records for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.