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

Naming objects

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

    Naming objects

    Hi everyone
    I am new to Alpha Five but I would like to no if I should
    use naming prefixes like putting

    lbl for labels
    tbl for tables
    fld for fields
    txt for text boxes
    btn for buttons

    I have done some studies with Microsoft VB and that is what
    I learned for naming objects

    Any help
    Ray

    #2
    RE: Naming objects

    Ray,

    I think everyone has their own conventions for naming objects. Normally, I leave field objects named the same as the field itself. It seems easier to keep track of them. I usually rename buttons with something more descriptive than "button1, button2". I normally use something like "Button_save". I do the same for other objects like text boxes, browses, etc. Maybe it's just me, but using short cryptic names is occasionally confusing. I prefer a short name that I can identify immediately.

    I will deviate on some objects where I may need to use values in an array to address them. An example would be an instance where I want to change the text in a series of text boxes or buttons. Then I will use a name with a number ("button1, button2" for example). Then I can use the array pointer to identify the object. The following is an example for a calendar that fills in numbers on buttons for each day in the month

    for i = day_wk to day_wk+num_days-1
    block = obj(":Pop Calendar:Button"+alltrim(str(i,2)))
    block.text = str((i - day_wk +1),2)
    next

    In this case, day_wk is the day of the week for the first of the month and num_days is the numberr of days in the month. The button naming method makes it easy to change the text using the variable.

    Others may have different ideas, but this works for me.

    Jerry

    Comment


      #3
      RE: Naming objects

      Hi Jerry

      Thank you
      Ray

      Comment


        #4
        RE: Naming objects

        Ray,

        I've been learning XBasic for a couple of years. Simutaneously, I have also been trying to learn VBA & VB. I have spent much more time with Alpha Five since most of what I do involves data management and "conditioning" and, as any Access user has experienced, the Jet Database Engine (used by Access and VB) is slow, bloated and ungainly.

        One of the things that impressed me about the VB world was that a lot of it was standardized -- vis a vis its naming conventions. I've found that VB's naming works fine in Alpha Five, and is especially useful to me when I either have a LOT of objects in a project or when looking at a list of object names.

        Not only does a naming convention help long after you've begun a project but, as you have probably discovered, the longer a project goes on, the more often you have to revise object names and be increasingly creative about the new ones you add.

        I have a client who insists that I work in Access/VBA for our project. In the course of working with Access, I found a cool addin which will search and replace text ANYWHERE in the project; so renaming things is easy.

        Say that you have created several saved queries upon which several sub reports and reports are based. Some of these titles and objects also appear in the code used to manipulate them. With this utility, I can change the name of a report in the database window, in the report itself, in any code that refers to that report and throughout any queries that interact with it, all in a single pass.

        I hope that Alpha FIve incorporates someting like this one day.

        Anywho, Welcome aboard!

        Best regards,

        Geoff HOllander

        Comment


          #5
          RE: Naming objects

          Personally, I've started using a naming convention (sporadically) simply because it seems like "good form" and it seems to be the accepted standard now. On the other hand, I find it to be just unnecessary typing in A5. The Xbasic explorer uses icons/structure which makes it obvious what you are working with and the context of Xbasic script usually makes it obvious as well. But, that's just my opinion.

          I think the key here is that any naming convention, at least in A5, is for your benefit. Do what works for you.

          Comment


            #6
            RE: Naming objects

            Hi Geoffrey
            Thank you very much

            Ray

            Comment


              #7
              RE: Naming objects

              Hi Cal

              Thank you very much
              Ray

              Comment

              Working...
              X