In comments field i want the text to be displayed in lines. with the following code it is displaying
{
TheApplication().SetProfileAttr("NewLine", "/ "+String.fromCharCode(13)+String.fromCharCode(10));
var boSP = TheApplication().GetBusObject("System Preferences");
var bcSP = boSP.GetBusComp("System Preferences");
with(bcSP)
{
ClearToQuery();
ActivateField("Name");
ActivateField("Value");
SetSearchSpec("Name", " ");
ExecuteQuery(ForwardOnly);
if(FirstRecord())
{
var strUrl = GetFieldValue("Value");
TheApplication().SetProfileAttr("", strUrl);
}
}
bcSP = null;
boSP = null;
return(ContinueOperation);
}