You need to sign in to do that
Don't have an account?
SFDummy
insert tab '\t' to string
I am not able to add tab the sting I created
Notice the tab I want to insert between the old valud and new value in the description.
description = description + 'Changed Product Type from: ' + oldMap.get(key).Product_Type__c + '\t'+ ' to: ' + newmap.get(key).Product_Type__c + '\n' ;
'\n' new line feed is working
'\t' tab is not working
Any suggestions how I can add tab or space between strings?
Unfortunatly string do not understand Tab (\t) so you can only do is :
String tabStr = ' ' ;
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Check with this '\r\t'
Thanks,
Roshan
Roshan,
I think this will introduce a new line between the two words.
Try this in debug logs to know more:
Thanks
Ankit Arora
Blog | Facebook | Blog Page
I tried both solutions.
adding '\r\t' and empty string tabStr = ' ';
Neither of them added any space or line between my strings
https://salesforce.stackexchange.com/questions/65381/convert-ascii-code-to-equivalent-character