Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Right-align #'s not lining up correctly

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Right-align #'s not lining up correctly

    Is there a glitch in v.9 for right-aligning #'s?

    Here is what is happening. I have 3 fields lined up (all 3 boxes are exactly the same size - height/width) and I used the "arrange" to make sure they are lined up to the right.

    The last box (field) I chose to have the format as $123,456.78

    See image below as to what is happening. The #'s in the bottom box are shifted over to the left a little.

    If I choose the format as 123,456.78, the #'s are lined up correctly with the #'s in the boxes above. As soon as I change it back to $123,456.78, the #'s do not line up with the boxes above.

    I had no problems with this in my earlier version.

    I've tried creating a form from scratch and it is doing the same thing.

    Carol

  • #2
    Re: Right-align #'s not lining up correctly

    Originally posted by cbauer50 View Post
    Is there a glitch in v.9 for right-aligning #'s?

    I had no problems with this in my earlier version.
    Earlier version being???? V8 or the previous build in v9?

    Open a form in the AlphaSports database and try it there. If the same thing happens in AlphaSports, then it's a bug for sure. If it works OK, it may still be a bug because it may be conflicting with something on your form that is not on the AS database form.

    I've seen numerous little things like that in my creations and I've come to the conclusion they are little gremlins. How one would give instructions so they can replicate the problem is beyond me. It's just not always possible. So, I either live with it or try a different approach.

    kenn
    TYVM :) kenn

    Knowing what you can achieve will not become reality until you imagine and explore.

    Comment


    • #3
      Re: Right-align #'s not lining up correctly

      Hi Carol:
      I noticed that if you choose a format that uses a symbol like the $ or ( ), A5 creates a space between the number and the right edge. To have all your numbers aligned they have to be formated the same way; all with $ or all with ( ) or all without any symbol.

      Comment


      • #4
        Re: Right-align #'s not lining up correctly

        Hi Carol,

        I have noticed this too. It is a bit of a bind but there are several work arounds.

        First you can keep the numbers in their normal format and drop the field into a RTF with the currency sign. Or, you can make all the fields calculated, convert them with Alltrim() and Str() and add the currency sign there.

        Just another thought for the pot.
        Regards
        Keith Hubert
        Alpha Guild Member
        London.
        KHDB Management Systems
        Skype = keith.hubert


        For your day-to-day Needs, you Need an Alpha Database!

        Comment


        • #5
          Re: Right-align #'s not lining up correctly

          Earlier version is v.5

          I opened the invoice in AlphaSports. All the fields for totals, etc. are with the $ sign.

          I changed all of them (except the bottom one) to the format without the $ sign (123,456.78) and the same thing is happening there, so it has to be a bug in the program.

          Carol



          Originally posted by forskare View Post
          Earlier version being???? V8 or the previous build in v9?

          Open a form in the AlphaSports database and try it there. If the same thing happens in AlphaSports, then it's a bug for sure. If it works OK, it may still be a bug because it may be conflicting with something on your form that is not on the AS database form.

          I've seen numerous little things like that in my creations and I've come to the conclusion they are little gremlins. How one would give instructions so they can replicate the problem is beyond me. It's just not always possible. So, I either live with it or try a different approach.

          kenn

          Comment


          • #6
            Re: Right-align #'s not lining up correctly

            That's a little crazy. I wouldn't think you should have to do that. If they are all right-aligned with 2 decimal places, they should still line up. I didn't have to have them all formatted in my v.5 - so I believe it's a bug.

            Carol


            Originally posted by gaby_h View Post
            Hi Carol:
            I noticed that if you choose a format that uses a symbol like the $ or ( ), A5 creates a space between the number and the right edge. To have all your numbers aligned they have to be formated the same way; all with $ or all with ( ) or all without any symbol.

            Comment


            • #7
              Re: Right-align #'s not lining up correctly

              Thanks, Keith. I have no idea how to do the work around - I am still learning just the basics. Maybe some day I'll know more about Alltrim(), Str()'s and that sort of thing.

              Carol


              Originally posted by Keith Hubert View Post
              Hi Carol,

              I have noticed this too. It is a bit of a bind but there are several work arounds.

              First you can keep the numbers in their normal format and drop the field into a RTF with the currency sign. Or, you can make all the fields calculated, convert them with Alltrim() and Str() and add the currency sign there.

              Just another thought for the pot.

              Comment


              • #8
                Re: Right-align #'s not lining up correctly

                Hi Carol,

                There is nothing to be afraid of and you will only hold your self back if you do not try and and do a little coding. Here is an example of what I am suggesting.
                Code:
                grand_total = "$"+alltrim(str(calc->sub_total+calc->amt_tax,10,2))
                This a calculated field from the Alphasports Invoice. It is still calculated but converted into a string. When it is right aligned, the blank to the right is no longer there.

                I agree this should not need to be done, but since there is the problem............
                Regards
                Keith Hubert
                Alpha Guild Member
                London.
                KHDB Management Systems
                Skype = keith.hubert


                For your day-to-day Needs, you Need an Alpha Database!

                Comment


                • #9
                  Re: Right-align #'s not lining up correctly

                  Originally posted by cbauer50 View Post
                  Is there a glitch in v.9 for right-aligning #'s?

                  Here is what is happening. I have 3 fields lined up (all 3 boxes are exactly the same size - height/width) and I used the "arrange" to make sure they are lined up to the right.

                  The last box (field) I chose to have the format as $123,456.78

                  See image below as to what is happening. The #'s in the bottom box are shifted over to the left a little.

                  If I choose the format as 123,456.78, the #'s are lined up correctly with the #'s in the boxes above. As soon as I change it back to $123,456.78, the #'s do not line up with the boxes above.

                  I had no problems with this in my earlier version.

                  I've tried creating a form from scratch and it is doing the same thing.

                  Carol
                  Carol

                  This is an issue with where the sign of the number is placed.

                  If you choose the format -$123,456.78 you will get the desired results. (Notice that the sign is now on the left side of the number...)

                  I don't have a previous version to compare with, but you can submit a bug report showing a difference between versions.
                  Al Buchholz
                  Bookwood Systems, LTD
                  Weekly QReportBuilder Webinars Thursday 1 pm CST

                  Occam's Razor - KISS
                  Normalize till it hurts - De-normalize till it works.
                  Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                  When we triage a problem it is much easier to read sample systems than to read a mind.
                  "Make it as simple as possible, but not simpler."
                  Albert Einstein

                  http://www.iadn.com/images/media/iadn_member.png

                  Comment


                  • #10
                    Re: Right-align #'s not lining up correctly

                    Okay - this works - but I don't understand why the other one doesn't. I would have never thought to use this format.

                    Thanks.

                    Carol

                    Originally posted by Al Buchholz View Post
                    Carol

                    This is an issue with where the sign of the number is placed.

                    If you choose the format -$123,456.78 you will get the desired results. (Notice that the sign is now on the left side of the number...)

                    Comment


                    • #11
                      Re: Right-align #'s not lining up correctly

                      I am so dumb, Keith - I wouldn't even know where to put this code!

                      I suspect it would go in the events, OnPush? OnInit???

                      Carol



                      Originally posted by Keith Hubert View Post
                      Hi Carol,

                      There is nothing to be afraid of and you will only hold your self back if you do not try and and do a little coding. Here is an example of what I am suggesting.
                      Code:
                      grand_total = "$"+alltrim(str(calc->sub_total+calc->amt_tax,10,2))
                      This a calculated field from the Alphasports Invoice. It is still calculated but converted into a string. When it is right aligned, the blank to the right is no longer there.

                      I agree this should not need to be done, but since there is the problem............

                      Comment


                      • #12
                        Re: Right-align #'s not lining up correctly

                        Hi Carol,

                        You are not dumb. What I have shown you is a calculated field, not an Event.

                        Open Invoice form in Alphasports in design mode. I know you know how to do this.

                        Click on the XY button on the toolbar, this will open the dialog box of calculated fields. This is where you will see all the calculated fields used on the form.

                        You will see in this dialog the calculation for grand_total, it is this field I have used the functions alltrim() and str().

                        I suggest you have a good look in the help file. This will help you get more from Alpha.
                        Last edited by Keith Hubert; 08-31-2009, 05:28 AM.
                        Regards
                        Keith Hubert
                        Alpha Guild Member
                        London.
                        KHDB Management Systems
                        Skype = keith.hubert


                        For your day-to-day Needs, you Need an Alpha Database!

                        Comment


                        • #13
                          Re: Right-align #'s not lining up correctly

                          I don't have a previous version to compare with, but you can submit a bug report showing a difference between versions.
                          Carol, have you submitted a bug report?

                          Comment


                          • #14
                            Re: Right-align #'s not lining up correctly

                            No, I have not had time. We have been out of town and we just got home and I have tons of stuff to catch up on.

                            If you want to do it, that would be fine.

                            Carol


                            Originally posted by gmeredith17 View Post
                            Carol, have you submitted a bug report?

                            Comment


                            • #15
                              Re: Right-align #'s not lining up correctly

                              I am doing it right now.

                              Carol

                              Comment

                              Working...
                              X