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

How do I display the Peso Chr in a field on a form?

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

    How do I display the Peso Chr in a field on a form?

    I want to display a different chr for the currency symbol depending on a variable named 'region'. (The application allows entry of currency in different currency units).
    I tried using bitmaps but this doesn't work well.
    So... I want to use a chr() function or similar eg Display_Var = chr(currentCurrency_Var) + str(value_Var)

    I can do this with the British pound and the American dollar... but the Philippines peso will not bend to my will!

    I located a font set that will display the peso: code2000 which is available for download.

    I can insert the peso character in a word or Open Office document. But when copied to anywhere in A5 I get a question mark chr eg: ? <-this was the peso chr copied from Word

    The Unicode value for the peso chr in the code2000 chr set is hex: U+20A7 or decimal: 8369

    Is there a way to get this to work?

    #2
    Re: How do I display the Peso Chr in a field on a form?

    Hi David,
    I get this from the interactive window.
    Code:
    x=chr(8369)
    ?x
    = "�"
    Is that correct?
    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


      #3
      Re: How do I display the Peso Chr in a field on a form?

      Given that the $ sign is apparently used universally for this..... Could you use chr(164) for the peso instead? ("universal currency sign") ----> ""
      (I've read elsewhere that ANSI does not support the strike-through "P". Could be wrong though.)

      A strike-through (HTML tag) with the letter "P" would work, but doesn't look good. (Also, html 4.01 depreciated the strike tag, and it's been eliminated in html 5.)

      You could of course use:

      $ (Dollar)
      € (Euro)
      � (Pound)
      � (Yen),....etc. (and then use the universal currency character as follows for formats not supported by ASCI)
      � (Peso)
      � (Rubies)
      � (Rubies)

      ~One other possibility would be to use an HTML object on the desktop to display this character using embedded html code?

      PS: The character you're looking for is: " " (I see the same code returned as Keith H.)
      Last edited by SNusa; 03-17-2013, 02:22 PM.
      Robert T. ~ "I enjoy manipulating data... just not my data."
      It's all about the "framework." (I suppose an "a5-induced" hard drive crash is now in order?)
      RELOADED: My current posting activity here merely represents a "Momentary Lapse Of Reason."

      Comment


        #4
        Re: How do I display the Peso Chr in a field on a form?

        SOLUTION: Use a html field to display the symbol and place this in the field:
        (You can obviously also include the data/amount within the control if you want to.)

        PHP Code:
        <font size="5">&#8369</font> 
        (Ignore the "PHP" thing, and you don't need the font tags. I had to place the code inside the PHP tags to keep it from resolving to the ₱ symbol on the forum after posting. Everything else resolve to display the symbol.)

        ie: "& # 8 3 6 9 ;" <-- Remove spaces, but enter exactly this into the html object.
        ~Without the quotes and spaces, you'll get this:

        PS: One added benefit of doing it like this is that you can conditionally code the HTML object to display the appropriate symbol.

        Snap 2013-03-17 at 15.20.32.png
        Last edited by SNusa; 03-17-2013, 03:24 PM.
        Robert T. ~ "I enjoy manipulating data... just not my data."
        It's all about the "framework." (I suppose an "a5-induced" hard drive crash is now in order?)
        RELOADED: My current posting activity here merely represents a "Momentary Lapse Of Reason."

        Comment


          #5
          Re: How do I display the Peso Chr in a field on a form?

          Thanks !!! This looks like it may work for me... BUT

          When I try to edit an HTML object that I placed on a form I get the error shown in the attached file.

          A5Error.jpg

          I tried this in both A5V10 and A5V11.

          I am running Windows V7

          Comment


            #6
            Re: How do I display the Peso Chr in a field on a form?

            Originally posted by David Boomer View Post
            Thanks !!! This looks like it may work for me... BUT

            When I try to edit an HTML object that I placed on a form I get the error shown in the attached file.

            [ATTACH=CONFIG]35063[/ATTACH]

            I tried this in both A5V10 and A5V11.

            I am running Windows V7
            I generated my example (previous post) using v.11 on Win-7 64bit build 3359.

            Are you dragging the HTML object from the toolbox? FYI, I was wrong about the html object and being able to enter conditional code there. (It's the RTF object that allows conditional programming.) ~ You could quite easily (however) make several overlaying HTML controls with a touch of Xb code, and keep the irrelevant ones/objects (incorrect symbols) hidden.

            Snap 2013-03-17 at 18.12.31.png
            Last edited by SNusa; 03-17-2013, 06:15 PM.
            Robert T. ~ "I enjoy manipulating data... just not my data."
            It's all about the "framework." (I suppose an "a5-induced" hard drive crash is now in order?)
            RELOADED: My current posting activity here merely represents a "Momentary Lapse Of Reason."

            Comment


              #7
              Re: How do I display the Peso Chr in a field on a form?

              I can't get that far...
              I click on the HTML object in the toolbar... drag the new object onto the form... click in the Edit icon (little pen)... and get the error msg that I sent above.

              Comment


                #8
                Re: How do I display the Peso Chr in a field on a form?

                Originally posted by David Boomer View Post
                I can't get that far...
                I click on the HTML object in the toolbar... drag the new object onto the form... click in the Edit icon (little pen)... and get the error msg that I sent above.
                Same problems with both versions of a5?
                Also, try on an empty form (just for kicks.)
                Last edited by SNusa; 03-17-2013, 07:28 PM.
                Robert T. ~ "I enjoy manipulating data... just not my data."
                It's all about the "framework." (I suppose an "a5-induced" hard drive crash is now in order?)
                RELOADED: My current posting activity here merely represents a "Momentary Lapse Of Reason."

                Comment


                  #9
                  Re: How do I display the Peso Chr in a field on a form?

                  Yes same problem with a5v10.5 and a5v11 latest build (march 16).
                  Doesnt matter which form i try to place the field.
                  I am running under win 7
                  I have tried setting compatibility mode to XP service pack 2 and running as administrator.

                  Comment


                    #10
                    Re: How do I display the Peso Chr in a field on a form?

                    Originally posted by David Boomer View Post
                    Yes same problem with a5v10.5 and a5v11 latest build (march 16).
                    Doesnt matter which form i try to place the field.
                    I am running under win 7
                    I have tried setting compatibility mode to XP service pack 2 and running as administrator.
                    "Canadian Windows?" ~ Just kidding.... There should be no need to run in "compatibility mode" or "admin mode", as I run a5 in standard mode without any issues. (I have found that you have to install as administrator though, or things don't work.) ~ And you can't just right click the install file and run as admin either. You have to temporarily change the account type to admin prior to opening file explorer & launching the a5 installation file.

                    Very strange... This whole thing about Alpha becoming dependent upon other windows services (since v.10.5) has always concerned me.
                    It's Windows 7 Pro you're using, right? If I didn't know better, I'd wonder whether something in win-7 is the culprit. Being an HTML object, one begins to wonder what Windows dependencies may exist... (And I suspect if you have a bad registered windows object/dll, problems like this might occur.)

                    In the past, I've experienced similar issues with a5 OLE object.
                    Last edited by SNusa; 03-17-2013, 10:53 PM.
                    Robert T. ~ "I enjoy manipulating data... just not my data."
                    It's all about the "framework." (I suppose an "a5-induced" hard drive crash is now in order?)
                    RELOADED: My current posting activity here merely represents a "Momentary Lapse Of Reason."

                    Comment


                      #11
                      Re: How do I display the Peso Chr in a field on a form?

                      Thanks Robert... I am pretty sure that you are right... I updated to IE10 and maybe this caused a problem... I'll keep working on it.

                      Comment


                        #12
                        Re: How do I display the Peso Chr in a field on a form?

                        FIXED!!

                        The problem was with the registration of A5 components...
                        I reported a bug and received an eMail form Selwyn... he described the error & suggested running RegisterFilesVistaWin7.bat in admin mode... which I did... which I did... at first it failed, even though I did run by right-clicking on the file in the A5V11 directory.
                        BUT when I did the following, all worked well:
                        Start->[Search Programs and Files]-> enter CMD-> righgt-Click on cmd -> run as administrator -> find the RegisterFilesVistaWin7.bat or RegisterFiles.bat (if you are using XP)... you should get a series of confirmation dialogs.

                        Thanks Selwyn... Thanks Robert, Thanks Keith !!!

                        Comment

                        Working...
                        X