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

Importing Fractions in a String?

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

    Importing Fractions in a String?

    Hi Guys,

    I have a problem importing fractions from a spreadsheet that are in a string.

    Here is the original: 10⅝" x 3⅝" (270 x 92) (Aperture 6�" x 1�") (Bolt Ctr 8�")
    Here is how it comes into the table: 10?" x 3?" (270 x 92) (Aperture 6�" x 1�") (Bolt Ctr 8�").
    From what I can see from looking at a number of records, it seems that if the fraction contains an 8th then it gets converted to a ?.

    Suggestions as to how to overcome this would be appreciated.

    The sooner us Brits drop these fractions the better.

    Another example to show that it is on all fractions with an 8th, not just 5/8:
    Code:
    [SIZE=3]11⅛" x 2⅜"  (282 x 60) 
    11?" x 2?"  (282 x 60) [/SIZE]
    Last edited by Keith Hubert; 03-13-2015, 05:18 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!

    #2
    Re: Importing Fractions in a String?

    Keith,

    The fractions in your "string" probably are being stored in the spreadsheet using an ascii character value that DBF can't interpret. It's as though the string contains a foreign character, if you see what I mean. i.e. One high order ascii character for the fraction. Alpha is expecting separate ascii values for the "5" the "/" and the "8". You might try importing the string to a blob field because the source "string" is likely a mix of character values and "foreign" characters.

    If my guess is correct, don't ask me how you're going to parse this. I fear it's going to be messy.
    Last edited by Tom Cone Jr; 03-13-2015, 06:57 AM.

    Comment


      #3
      Re: Importing Fractions in a String?

      I am sure, as Tom said, it has to do with the ASCI charaters.
      Without delving too much in the issue and doing any creative maneuvers in the import and without overthinking or trying to be too bright, too smart, too clever, too creative specially I just woke up to this, my impulsive reaction to this is why don't you just "rig it", i.e.import it with the question mark, then replace that with an 1/8 when you get it in alpha? Or replace it with .125

      P.S.
      Surprisingly, there is no ASCI equivalent for 1/8 that I am aware of. There is one for 1/4, 1/2, 3/4 but no other fractions!

      Comment


        #4
        Re: Importing Fractions in a String?

        I say there is no ASCI for 1/8 but then how does it show on the spreadsheet?! There has to be one.

        Comment


          #5
          Re: Importing Fractions in a String?

          I think they're being inserted into the sheet from a typographic symbols code page. Check Excel help topics on special characters and special symbols.

          Comment


            #6
            Re: Importing Fractions in a String?

            I understand that, but if it show on a screen or prints on paper, there has to be an ASCI equivalent. I understand ASCI is adding more and more characters and symbols from time to time.

            Comment


              #7
              Re: Importing Fractions in a String?

              There isn't an ASCII equivalent it is Unicode 'Vulgar Fraction One Eighth' (Unicode code point U+215B)
              Andrew

              Comment


                #8
                Re: Importing Fractions in a String?

                Hi Andrew,

                Thanks for Unicode code point U+215B, how do I find all the ? and replace it with the Unicode code point U+215B? The other problem is that there are a number of different 8th fractions.
                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: Importing Fractions in a String?

                  There's this search engine with the odd name of google............
                  There can be only one.

                  Comment


                    #10
                    Re: Importing Fractions in a String?

                    I'm an working on a way to translate it but I do not think that it can be done with Alpha5 built in functions.

                    Code:
                    1/8 - U+215B
                    3/8 - U+215C
                    5/8 - U+215D
                    7/8 - U+215E
                    Andrew

                    Comment


                      #11
                      Re: Importing Fractions in a String?

                      Keith,

                      I think you're asking the wrong question.

                      Unless I'm missing something, you can't store unicode values in an Alpha character field.

                      Comment


                        #12
                        Re: Importing Fractions in a String?

                        Stan, what is that Gooooogl thing. Never heard of it.

                        Bet it's not as smart as Alpha. Can it tell me how to replace the ?

                        Thanks Andrew that is very useful. I know I can use CHR(n) to ascii values, do you know if there is an Alpha function to recognise Unicode?
                        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: Importing Fractions in a String?

                          if there is an Alpha function to recognise Unicode?
                          No.

                          On the Excel side, if you do a find and replace on ⅛ with .125, it works. One can't search for U+215B, U+215C, U+215D, or U+215E.
                          Last edited by Stan Mathews; 03-13-2015, 01:11 PM.
                          There can be only one.

                          Comment


                            #14
                            Re: Importing Fractions in a String?

                            Hi Stan,

                            Thanks for suggestion.

                            The 8th is not a calculation value. It is part of a description to show the size of a Letter box plate that some of us strange Brits have in our front doors. If I could get away with using the .125 then I would.
                            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


                              #15
                              Re: Importing Fractions in a String?

                              If you search (in Excel) for ⅛ and replace with 1/8, space before the 1/8 the first translates to 11 1/8". Is that acceptable?
                              There can be only one.

                              Comment

                              Working...
                              X