|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to delete first 3 characters from a query?
Hi,
I would like to delete the first 3 characters from a query result of a text data type. How can this be done? Thanks Maurice |
|
#2
|
||||
|
||||
|
hmm - not exactly sure what you mean, but check out the mid() function... that might help you.
|
|
#3
|
|||
|
|||
|
crudely, ltrim(ltrim(ltrm(myString)))
|
|
#4
|
||||
|
||||
|
Doesn't ltrim() just remove whitespace?
The mid() function allows you to chop off x amount of charatacters from the start of a string, then leave the rest, or y amount left. |
|
#5
|
|||
|
|||
|
Left(Right(strContent, Len(strContent)-3),180)
This solved it. Thanks for your help! Maurice |
|
#6
|
||||
|
||||
|
the mid function is essentially left(right())
|
|
#7
|
|||
|
|||
|
hm i don't know why i thought ltrim removed non-whitespace as well. oh well =)
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > How to delete first 3 characters from a query? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|