|
| |
|
|
mar0364
Posts: 3221 Joined: 4/5/2002 From: Florida, US Status: offline
|
A problem with trim - 9/17/2007 14:56:30
How do I fix it. I have this bit of code that works well
<%= Left((rstGetCompanyDetail.Fields.Item("FIN_AFFAIR").Value),10) %>
Now I want to do the same thing but from the right. I try the obvious.
<%= Right((rstGetCompanyDetail.Fields.Item("FIN_AFFAIR").Value),10) %>
I don't even get an error it just ignores and reads data to the page. So I try this: <% Dim strLeftText strExample = rstGetCompanyDetail.Fields.Item("FIN_AFFAIR") strLeftText = Right(strExample, 10) Response.Write strLeftText %> Acts just like it did when I did it the sloppy way. Thanks! Rich
_____________________________
Easy Web “Stay committed to your decisions, but stay flexible in your approach.”
|
|
|
|
ou812
Posts: 1603 Joined: 1/5/2002 From: San Diego Status: offline
|
RE: A problem with trim - 9/17/2007 15:19:31
I'm not sure I understand what it is or isn't doing for you, but maybe try trim, or get the len, to make sure you know what you're working with.
_____________________________
-brian EnterpriseDB: Enterprise-class relational database management system PostgreSQL: The world's most advanced open source database
|
|
|
|
mar0364
Posts: 3221 Joined: 4/5/2002 From: Florida, US Status: offline
|
RE: A problem with trim - 9/17/2007 15:26:52
It not removing characters from the left side of the string. For example biguglydog I want to only print dog. Is that more understandable?
_____________________________
Easy Web “Stay committed to your decisions, but stay flexible in your approach.”
|
|
|
|
mar0364
Posts: 3221 Joined: 4/5/2002 From: Florida, US Status: offline
|
RE: A problem with trim - 9/17/2007 16:05:51
The text does contain a url that is about 50 charcters long. Examples \\RLTLHNAS\folder\subfolder\file.pdf
_____________________________
Easy Web “Stay committed to your decisions, but stay flexible in your approach.”
|
|
|
|
ou812
Posts: 1603 Joined: 1/5/2002 From: San Diego Status: offline
|
RE: A problem with trim - 9/17/2007 16:09:37
Weird. I tried your example text and it works for me as well... Some of my test results: Left \\RLTLHNAS \\RLTLHNAS Right r\file.pdf er\file.pdf der\file.pdf lder\file.pdf
_____________________________
-brian EnterpriseDB: Enterprise-class relational database management system PostgreSQL: The world's most advanced open source database
|
|
|
|
mar0364
Posts: 3221 Joined: 4/5/2002 From: Florida, US Status: offline
|
RE: A problem with trim - 9/17/2007 16:12:32
Thanks! I 'll keep plugging away at it. Regards! Rich
_____________________________
Easy Web “Stay committed to your decisions, but stay flexible in your approach.”
|
|
|
|
mar0364
Posts: 3221 Joined: 4/5/2002 From: Florida, US Status: offline
|
RE: A problem with trim - 9/18/2007 8:27:19
Probelm is your so smart I didn't understand you. Spooky had to dumb it down for me. Really thanks!
_____________________________
Easy Web “Stay committed to your decisions, but stay flexible in your approach.”
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|