To replace comma with new line in edit plus.
clrl h in eclipse, enter the character you want to replace, in this case ,
for the new line, click on the downward arrow next to the text and then select new line. See the picture below.
Cheers,
Sonu
Friday, January 29, 2010
Eclipse VM Args
Multiple VM args can be entered to eclipse by separating them with a space. See the picture below :
2) Issue : Eclipse doesnot allow spaces in vm arguments.
You can force eclipse to take a space by wrapping the value of your argument in double quotes.
-Dpropsfile="H:/user data/eclipse/workspace/wires/etc/dev.config.props"
Cheers,
Sonu
2) Issue : Eclipse doesnot allow spaces in vm arguments.
You can force eclipse to take a space by wrapping the value of your argument in double quotes.
-Dpropsfile="H:/user data/eclipse/workspace/wires/etc/dev.config.props"
Cheers,
Sonu
Friday, January 15, 2010
Friday, January 8, 2010
Perl ternary operator
I was trying to use an if else stmt in perl inside a join. And it was throwing compilation errors. In this case you can use a ternary operator to serve as if else :
ex :
($Bond{$_}{CFAC} ==-1 ?”N/A” : $Bond{$_}{CFAC})
ex :
($Bond{$_}{CFAC} ==-1 ?”N/A” : $Bond{$_}{CFAC})
sybase convert float to char
Sybase function to convert float to char
convert(char(10),isnull(convert(char(18), pi.factor),'N/A')) as factor
convert(char(10),isnull(convert(char(18), pi.factor),'N/A')) as factor
Subscribe to:
Posts (Atom)