|
Buy Support
Incidents |
|
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
|
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
|
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
|
Click Here
|
Buy Support
Incidents |
|
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
|
Click Here
|
|
| Searching for line breaks |
| Author |
Message |
|
|
| Posted : 2007-06-27 05:09:05 |
Greetings,
I am doing some querying of the Item.SalesDesc field. Some of the descriptions have a line break at the end. This is causing me serious problems. I am using ASP classic with QODBC v7 and QB Enterprise 2007.
I have done some searching and tried the replace function looking for the following: \n \\n \r \\r chr(10) chr(12) System.Environment.NewLine vbcrlf If I remove the last character, of the field, it works, but that is not the way to do things. Does anyone have any ideas as to how to find the newline character and remove it?
Thanks,
Andrew |
|
|
|
| Tom |
 |
| Group | : Administrator |
| Posts | : 5510 |
| Joined | : 2006-02-17 |
|
| Profile |
|
| Posted : 2007-06-27 09:32:45 |
Carriage returns are lost in long descriptions using QOBDC. The normal fix for the problem is to use the VB replace function within the sql statement like this:-
INSERT INTO Local_ItemInventory ( Part, Description, QuantityOnHand ) " & _ SELECT Name, replace(PurchaseDesc,chr(10),chr(13) & chr(10)), QuantityOnHand " & _ FROM ItemInventory " & _ WHERE IsActive=Yes" |
|
|
|
|