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

DBASE: 10 Character Limit [Field Names]

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

    DBASE: 10 Character Limit [Field Names]

    Some strange things have happened in recent months and I don�t understand why, maybe someone in this forum can help.

    A5 uses the Dbase format to store data in those very familiar dbf files. I was told there is a maximum 10-character limit built into Dbase that Alpha obviously works around, thankfully allowing us to use more than 10 characters with field names. Here are a couple of recent scenarios, see what you think.

    I have a client who periodically sends me only the dbf files so I will have the latest data on my computer which of course has the same exact application. Sometimes, but not always, when I overwrite the older dbf files on my system with her new dbf files, Alpha will truncate any field names that are longer than 10 characters. The key word being sometimes, it doesn�t always happen and I find that baffling. Of course we now get around it by ensuring that she send the supporting files along with the dbf files.

    The above was a personal experience, now I have to relay info 2nd hand information. The president of our computer club in this area recently advised that when he switched from ver 4.03 to ver 4.05, Alpha truncated the names of all field names that were longer than 10 characters. Obviously he had problems opening forms and reports because Alpha couldn�t find the field name anymore. He claims the same thing happened when he switched to Windows XP.

    I asked if he made any changes to the application or moved/copied any files and he insisted there were none. He claims the application was working and the only change was upgrading to a newer version or a different OS.

    I have never personally experienced the loss of field names simply by upgrading the OS while nothing else changes. Has anyone else experienced the truncation of field names when upgrading to a later version of Alpha Five and/or to a newer Operating System?

    Thanks,
    Robert

    #2
    RE: DBASE: 10 Character Limit [Field Names]

    Robert,

    It's my understanding that fieldnames longer than supported directly by the Foxpro 2.6 format (10 chars I believe) are stored in the dictionary files for the table. If you just get the DBF from the client, you're not getting his long fieldnames. If yours are slightly different from his, then confusion can no doubt arise along the lines you describe.

    I bumped into this in a kind of reverse situation. I was using Alpha Five to copy a database table, and I only wanted the DBF to be copied to the destination folder. Try as I may I could never get it to copy just the DBF. A5 insisted on copying the dictionaries, too. Turns out I had some long fieldnames in the table. A5 was including the dictionaries because, otherwise, my long fieldnames would be in jeopardy. If I shortened all of them I could copy just the DBF and the dictionaries would not be included unless I so specified.

    I also think this is related to the issue some folks have with long indextag names. I suspect the long indextag names get stored in the dictionaries somewhere.

    -- tom

    Comment


      #3
      RE: DBASE: 10 Character Limit [Field Names]

      Tom,

      You are correct on both counts. Both field and index long names are stored in the data dictionaries. If you are using more than 10 charcters for a field name, then you need both the dbf and the data dictionary files. Same issue for indexes, you would need the cdx and the data dictionaries. There should be an article in an upcoming newsletter on how the data dictionaries store information. Much better to stick to 10 characters or less.

      Jerry

      Comment


        #4
        RE: DBASE: 10 Character Limit [Field Names]

        Robert:

        I have seen this problem only when I moved the dbf by itself.then opened it under a separate application ot related to the source.

        A5's data dictionary does keep track of the longer field names.

        I hope this helps.

        bob adler

        Comment


          #5
          RE: DBASE: 10 Character Limit [Field Names]

          I was aware that the data dictionary files store the information that allows users to have field names longer tha 10 characters. It's always nice to have information confired. As I stated earlier, I've learned from personal experience that one should always copy the supporting files, as opposed to just the dbf.

          Apparently I didn't make myself clear when I initially posted the question. I am far more concerned about the report I received from the president of the local computer club. He advised that Alpha truncated the names of fields longer than 10 characters merely by upgrading to Win XP and, another case, moving from ver 4.03 to version 4.5. He claims that NO changes were made to the application.

          I have never heard of that happening as a result of upgrading and wanted to know if anyone else had a similar experience.

          Comment


            #6
            RE: DBASE: 10 Character Limit [Field Names]

            Hi Robert,

            "He advised that Alpha truncated the names of fields longer than 10 characters merely by upgrading to Win XP and, another case, moving from ver 4.03 to version 4.5. He claims that NO changes were made to the application."

            I guarantee he did something in addition and forgot about it. He probably didn't change the application. Most likely he did some file management and alpha REcreated the dictionary files which then lacked the original long names.

            Bill
            Bill Hanigsberg

            Comment


              #7
              RE: DBASE: 10 Character Limit [Field Names]

              The real question is how the upgrade was done. Was XP just installed on the same computer or did the user move everything to a different computer. As Bill suggests, there is usually a good reason for these problems. I did it myself one time when I archived some work on a CD and moved the files to another computer and forgot to remove the readonly attribute on all of the files. Since Alpha couldn't open the data dictionaries, the program recreated them, losing some information. Which brings up a question. I am not up to speed on XP, but are there user rights that might restrict access to some files?

              Another possibility is corruption of the data dictionaries themselves. This could happen if the user modified something in v4.5 that uses actions unique to this version and then tried to reopen the database in v4.03. On my one computer I have both v4.03 and v4.5. Older databases that were designed in 4.03 open fine in v4.5.

              Jerry

              Comment


                #8
                RE: DBASE: 10 Character Limit [Field Names]

                I get data (dbf & fpt) only every day from many offices - but I have identical "dictionaries" in both the sending and receiving folders - which is all that is necessary, unless you make changes, in which case you have to send the dictionaries, too.

                I send and receive from and to 98/me/xp/xp-pro.
                Cole Custom Programming - Terrell, Texas
                972 524 8714
                [email protected]

                ____________________
                "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                Comment


                  #9
                  RE: DBASE: 10 Character Limit [Field Names]

                  Jerry and Bill:

                  Great answers from both of you, confirming what I already suspected.

                  Thanks so much,

                  Robert

                  Comment

                  Working...
                  X