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

Red '; When it Should be Black.

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

    Red '; When it Should be Black.

    The '; in red is supposed to be black yet Alpha insists on making it red which I think is supposed to mean there is an error in the code. When the code is run, I get an error message: Expected '.'.

    Fn = �EVID NUM';

    Perhaps the red is why I'm getting the error message but it should be good code because that is the format Alpha shows in the example. How do I get the '; to be black, thus signaling the code is good to go?
    TYVM :) kenn

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

    #2
    Re: Red '; When it Should be Black.

    Are using a MAC?

    The first single quote is � not '
    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


      #3
      Re: Red '; When it Should be Black.

      No, Win 7 Home Premium. I use the same key to insert before and after. That is the way it inserts the ' marks.

      What I' trying to do is to place a button in a column which when clicked, will copy the current row to the new row. This is the code Selwyn used to do this in his video based on v10. The only thing I changed is the column name and I'm only show here, the code for one column. The code for the other columns is the same except for the column name. This code works for Selwyn but not for me. I get an error message: Expected ','

      Fn = �EVID NUM';
      var val = {grid.Object}._getValue (�G', �fn�, {Grid.RowNumber});
      {grid.Object}._setValue(�G',fn,-1, val);
      Last edited by forskare; 11-28-2011, 11:43 PM.
      TYVM :) kenn

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

      Comment


        #4
        Re: Red '; When it Should be Black.

        Ken, as Al pointed out, your code is using the wrong character for the single quote. Your code shows a backtick (`), which is at the top left of the keyboard, on the key to the left of the 1. The correct character to use is ', which is on the same key as the double quote ("), near the enter key. (Assuming a standard US English keyboard.)

        If you use Word or a similar word processor instead of the Alpha Five code editor to write your code, it may be replacing the single quote with a backtick for you behind the scenes.
        Last edited by Lenny Forziati; 11-29-2011, 11:20 AM. Reason: typo

        Lenny Forziati
        Vice President, Internet Products and Technical Services
        Alpha Software Corporation

        Comment


          #5
          Re: Red '; When it Should be Black.

          Originally posted by Lenny Forziati View Post
          If you use Word or a similar word processor instead of the Alpha Five code editor to write your code, it may be replacing the single quite with a backtick for you behind the scenes.
          Hi Lenny,

          Yes, that is what happened. However, just deleting the` and replacing it with ' while in Alpha doesn't change anything. I had to delete the whole row and retype it. Actually, I deleted the entire code and retyped it using the Alpha place holders and Grid Methods. Now, it works. Well, almost works. Instead of copying the cell values, it puts the row number of the current record into each cell copied. So, if I copied row 10, the number 10 appears instead of the value.

          This is the code:

          fn = 'EVID_NUM';
          var val = {grid.Object}.getValue('G',fn,{Grid.RowNumber});
          {grid.Object}.setValue('G',fn,-1,{Grid.RowNumber});

          Selwyn's example uses the {Grid.RowNumber} placeholder and that's what's giving the row number. In his example, it copies the cell value and not the row number. Is there a difference between v10 and v11 that's causing this? This is the link to Selwyn's video:

          http://blog.alphasoftware.com/2010/0...to-create.html
          TYVM :) kenn

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

          Comment


            #6
            Re: Red '; When it Should be Black.

            Kenn,

            Code:
            var val = {grid.Object}.getValue('G',fn,{Grid.RowNumber});
            says to get the value in the fn field of the current row number and put it into a variable called val.

            Your next line
            Code:
            {grid.Object}.setValue('G',fn,-1,{Grid.RowNumber});
            says to set the value of the fn field in the first new row (-1) to the value of {Grid.Rownumber}.

            I think your second line should be
            Code:
            {grid.Object}.setValue('G',fn,-1,val);
            Jim Coltz
            Alpha Custom Database Solutions, LLC
            A5CustomSolutions.com
            [email protected]

            Comment


              #7
              Re: Red '; When it Should be Black.

              That make sense. However, I got the code for that line from the example in the Grid Method link which says:

              //Set value in 'LASTNAME' field from the Grid part, 'current row'.
              //Note that field name must be uppercase.

              {grid.object}.setValue('G','LASTNAME',{grid.rowNumber},'Smith');

              That's why I included {grid.rownumber}. I replaced {grid.rownumber} with val and now it works. But, I get an error message telling me val is undefined. I don't know why it gives the error message as it does copy the current row properly. How can the val be undefined?
              TYVM :) kenn

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

              Comment


                #8
                Re: Red '; When it Should be Black.

                I don't think 'val' is a good choice to name a variable; it may be protected. Not sure but you could try some other variable name.
                Frank

                Tell me and I'll forget; show me and I may remember; involve me and I'll understand

                Comment


                  #9
                  Re: Red '; When it Should be Black.

                  Originally posted by Clipper87 View Post
                  I don't think 'val' is a good choice to name a variable; it may be protected. Not sure but you could try some other variable name.
                  No, it's a good choice because Selwyn used it in his demo., See above link.

                  I did try other variable names and got the same results. I works but throws the error message that: 'val' is undefined. I'm thinking this is a bug because I don't understand why it would work if - val - is undefined. Is my logic correct? I've got 200+ records to enter and canceling the error message every time is a huge first class pain.

                  This is the code and I think it's the last line that throws the error message.

                  fn = 'EVID_NUM';
                  var val = {grid.Object}.getValue('G',fn,{Grid.RowNumber});
                  {grid.Object}.setValue('G',fn,-1,val);
                  Last edited by forskare; 11-29-2011, 11:31 PM.
                  TYVM :) kenn

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

                  Comment


                    #10
                    Re: Red '; When it Should be Black.

                    Ahhhh HA!! I opened alphaSports and created an updatable grid based on the based on the Invoice Items table. I created the duplicate or copy code and ran the Working Preview. It worked like a charm. Since the code in my app was correct, I created a new grid and copied the code. It also worked as it should. Then, I simply deleted the problem grind and renamed my test grid.

                    I have no idea what the problem was but it is now solved. A big THANK YOU to those to responded with corrections needed and suggestions.
                    TYVM :) kenn

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

                    Comment

                    Working...
                    X