Thanks Dave and Sushovan.
I used the way Dave suggested and solve this problem.
-----Original Message-----
From: Dave Schorsch [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 07, 1999 2:31 PM
To: [EMAIL PROTECTED]
Cc: Hong Yu
Subject: Re: [ND] Trailing Spaces
I used the following code when preserving the esc code (0x1b) in a text
string:
CSpMultiSQL DataObject1 = (CSpMultiSQL) CSpider.getDataObject
("DataObject1");
if (DataObject1.succeeded ()) {
CSpDBResultTable table =
DataObject1.getLastResults().getResultTable();
String frameText = table.getRowDataNoTrim(rowIndex,
5).stringValue();
char esc2 = '\u001b';
String esc3 = String.valueOf(esc2);
frameText = CSpUtil.replaceSubstringAll(frameText, esc3, "[esc]");
setDisplayFieldValue("*SIGN_CANNED_MSG_DATA_FRAME_TXT",
new CSpString(frameText));
}//endIf
getRowDataNoTrim() is a method in CSpDBResultTable. sending something to
the database is not trimed by netdynamics.
dave
[EMAIL PROTECTED]
From: Hong Yu <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [ND] Trailing Spaces
Date: Fri, 7 May 1999 13:31:14 -0500
How to prevent ND from trimming leading and trailing spaces?
I like to save the text field with its trailing spaces to the database
but
the ND automatically trim it. Someone has asked the same questions in
ND3
but no answers have been posted. If anyone has successfully done that
please tell us how.
Thanks in advance.
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]