How to do Right Justified in the mappin

Hi friends,
Can you help me to do the right justified for example 39.56- this should right side not from left. this field length is 11. infront of this 39.56 should be blank spaceses paded. how to do this
please help me
Thanks
ramidi

Ramidi,
Create simple UDF. Let say my input parameter name is "abc" . Write the below code in it
StringBuffer pad= new StringBuffer();
String ret_string="";
int add=0;
int trunc=0;
if(abc.length()<=11)
add =11-abc.length();
if(abc.length()>11)
ret_string =abc.substring(0,11);
else
for(int i=0;i<add;i++)
pad.append(" ");
ret_string = pad.toString()""abc;
return""ret_string"";
Hope it helps!!!
Best regards,
raj.

Similar Messages

  • How do I right click using the mouse on the mac desktop ?

    how do i right click using the mouse on the mac desktop

    does this involve iPhoto for the Mac in any way?
    the simple answer given no actual information is to press down on the right mouse button
    LN

  • Is it possible and if so how can I right click on the on screen touch keyboard

    Is it possible and if so how can I right click on the on screen touch keyboard.

    No it not design for that. I just tried it. Left click only. I recomend that you do not mess with setting with in the software it self you may end up causing the keyboard to malfunction and crashing your computer.I all so just double check our computers help and support On screen keyboard settings. There was no option given for switching the mouse clicker.  Just sticky keys and short cuts are listed. Sorry I hope this answered your question. I would all so not recomend trying to install other software you may find on switching key board setting unless it came from HP company design especially use on these types of computers. You may end up destroying your hard drive and computer all together.

  • How does one right click using the iPad?

    how does one right click when using the iPad?  I am needing this in a citrix app

    You can usually just tap and hold on certain things to access the right-click menu. It works in almost all cases. :)

  • How do I "Right Click" on the Trackpad?

    I know this is a "newbie" question but what is the motion on the trackpad for a "right click". Please bear with me, this is my first Mac laptop. Thanks!

    Hi,
    two options: hold CNTRL while doing a click.
    The preferred one is to use a two-finger tap for right-click. You have to enable that feature via System preferences -> Mouse/Trackpad. This is where you also see all the small movies about multi-touch options for the trackpad.
    Volker

  • How can I only justify in the mobile and tablet view and justify and indent in the desktop view?

    I need to have the text to appear in the mobile and tablet view 100% wide.  I need the same text indented by 200px on both side in the desktop view.

    Great! You're welcome.
    Lynda.com has excellent tutorials (video walkthroughs, exercise files, etc to complement it) that will get you going in no time. It is usually a paid subscription but it's definitely worth every penny.
    Here are some basics that I'd recommend for you:
    Web Foundation - Learn Web Foundations with Video Courses and Tutorials from lynda.com
    Web Development - Learn Web Development with Video Courses and Tutorials from lynda.com
    CSS - CSS Video Courses and Tutorials from lynda.com
    Dreamweaver - Dreamweaver Video Courses and Tutorials from lynda.com
    If you get the basics right (1,2 & 3) DW should be very easy to follow and so would any other authoring software. End of the day, DW is only an application to author with and not a language/ code in itself - it's on the last of my list.
    Good luck and happy learning!

  • How can I right click without the mouse to bring up context menu?

    On Windows systems there is a special key that brings up the context menu of the currently focused item. I would like to be able to do the same on the Mac. I don't want to reach for the mouse every time I need to bring up the context menu as some applications rely heavily on those.
    Is it possible?

    No there is no contextual menu button or hot key combination for OS X. I'm sure there are some third-party applications that enable this, but nothing that I know of. You might search http://www.versiontracker.com for Mac applications/utilities that have to do with contextual menus, and see what pops up.

  • How can the numbers in numbered lists be right-justified?

    In numbered lists, the numbers are by default left-justified. Is there a way to make the numbers in a given list right-justified, so the periods line up? Is there a way to change the default?

    As a writer, I also need to be able to have the numbers in a list line up in an acceptable word processing way, so that the decimal points line up when you get to 2 digits.
    8.
    9.
    10.
    I do not want it to look like this.  I have had to work around by numbering a long list with alphabet letters.
    On another occasion, I created my list using 2 columns in numbers, where the numbers automatically right justify.  Then pasted it into my pages document.
    I don't want to have to do that.  AND I don't want to have to deal with tabs.  I should be able to handle this in Preferences, or Inspector, where I handle most everything else.    If I can, I can't figure it out, and there doesn't seem to be a help in the manual or Help menu.
    Perhaps I'm out of date and it is now proper to not have the decimal point line up????  Don't think so.
    Message was edited by: suzannefrombrooksville

  • I don't seem to be able to right click on the macbookair mousepad; how do i right click?

    How do I right click with the MacBook Air using the mousepad?

    Silly rabbit wrote:
    Hold down the shift key
    On yours it's the SHIFT key?
    Out of the box, most Macs use the "fn" key in concert with the trackpad tap to perform right clicks.
    On all three of my Macs, it is the fn key that is used. The shift key does nothing in regard to trackpad clicks, except It does however make all text selected to the right of the cursor.

  • Tab delimited and Right justified fields

    Hi
    My requirement is to produce an output file where the line items consists of 5 fields of variable lengths and all of them are tab delimited and right justified at the same time
    for eg.
    ABC       123456ghtje  4567.45678   67.45678  pqr
    where all the values in the first field 'ABC' and 2nd field '123456ghtje' are right justified and are tab delimited and asme is the case for '4567.45678' , '67.45678' and 'pqr'
    they are all separated from each other by a tab but are not fixed lengths
    How can i achieve that ? i am using File Receiver Adapter ??
    Can it be done without Adapter Module ?
    Thanks
    Dev
    Edited by: sd on Feb 22, 2010 2:25 PM
    Edited by: sd on Feb 22, 2010 2:26 PM

    > they are all separated from each other by a tab but are not fixed lengths
    When thay are not fixed length fields, why do you have to worry about left or right justification? In delimetted files, you would only have the delimitter between the fields. You do not need to fill spaces for justifying them.
    VJ

  • Right justify output

    Hi, how do u right justify the output for the below code - not GUI based.
    for (int x=7; x<=10; x++){
    System.out.println(x);
    The output is:
    7
    8
    9
    10
    but i want this format:
    (space)7
    (space)8
    (space)9
    10
    thank you.

    Well, the %d format specifier wants an integer, and you're passing it a string.
    Calling a method as the value passed to printf should not in itself be a problem.
    You probably want to do something more like:
    System.out.printf("%02d    %d%n", x, test());Depending on what test() returns.

  • Cursor Doesn't display in numeric right justified fields

    We have an aplication that we deployed at a client. Normally the cursor blinks in the field that has focus. However, at this particular client the cursor doesn't show on numeric fields that are right justified. The user can type in the values though. Please help.
    Alok

    Hello,
    Maybe you can increase the width of field.
    Regards,
    George
    We have an aplication that we deployed at a client. Normally the cursor blinks in the field that has focus. However, at this particular client the cursor doesn't show on numeric fields that are right justified. The user can type in the values though. Please help.
    Alok

  • How do I right click on OLD Apple mouse that is white / oval shape?

    How do I right click on the older version of Apple mouse?
    Please do not tell me to buy a new one, I myself have new mac mini with trackpad, but need to help friend in wheelchair who lives in healthcare facility fix an app on his iMac, need to right click to do it.  We cannot get on internet there to download mouse drivers for a different mouse.
    Thank you in advance for your thoughts.

    Look for secondary (right) click settings in Mouse system preference.  If there are none then the mouse does not have right-click.  In that case you can right-click by holding the Control key while clicking.

  • How do you right click on an ipad?

    How do I right click on the iPad screen?

    I did try that, but got only three options: open, open in new window, and copy. I'm trying to download a PDF file that's posted on https://bb.uis.edu/webapps/login/. It'd be nice to do that directly to my iPad without having to go home, download it to my computer, and then transfer it to my iPad.
    It's hard to believe that the feature just isn't there, since this is such a common Web operation. I keep thinking that I just need to find the right trick.

  • Right Justify Numbered List

    In a very simple table, within Pages Layout - I want to list 10 numbered items and have the numbers be right justified. not the entire text, just the numbers. I do not find a way to do that. Thanks for any help.

    fruhulda wrote:
    I think OP is talking about a Table in Layout mode. If you have both text and number in the same cell you need to use tab BUT in a table you have to hold down the Alt key when using the Tab key, otherwise you only move to the next cell. In the Inspector you can change it to a right adjusted tab.
    Is that working for you?
    Here on my machine, if I put a decimal tab stop in the cell's ruler,
    the number aligns correctly when I insert a tab (alt + tab)
    but it returns to the left side when I leave the cell.
    It seems that the feature was designed for the old tables (those in iWork 1 and 2) but fails with the tables using the Numbers structure.
    Only the alignment buttons give a correct behavior (but the decimal characters are aligned only if the number of decimals is fixed and if the font used is a monospaced one. Boring, isn't it ?
    Yvan KOENIG (from FRANCE dimanche 14 juin 2009 19:06:04)

Maybe you are looking for