aling left

foronavisionforonavision Member Posts: 79
edited 2006-01-20 in Navision Attain
Hello.

I'm making a report to export information to a file. In this file text fields have to be left aligned but I don't find any function that makes this. Can anybody help me?

Thank you very much!!

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    You can write some function that fills the export value with spaces.
  • krikikriki Member, Moderator Posts: 9,112
    I thought text-fields are always left-aligned. :o
    Or am I still sleeping when I read the post :?:
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • SavatageSavatage Member Posts: 7,142
    kriki wrote:
    I thought text-fields are always left-aligned. :o
    Or am I still sleeping when I read the post :?:

    Yes, I thought the same...
  • kinekine Member Posts: 12,562
    Yes, but if you want to write fixed format file, you sometime need add spaces to the right... :-) And you need some function for that...

    And one warning! If you will want to allign code field, you will be not sucessfull. Why? Because Navision trims the white spaces from both sides.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • zarrynzarryn Member Posts: 29
    You could use the Format function with the Filler or Filler Character Attribute. Take a look at the c/side help for the Format Property. Hope this helps.
    Zarryn
  • fbfb Member Posts: 246
    And, for text and code, PADSTR(...) will produce a 'fixed length' string.
Sign In or Register to comment.