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

logicalrecord_get() funtion not found under V11

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

    logicalrecord_get() funtion not found under V11

    I have bee using this code since Alpha 9. logicalrecord_get() now it gives error.

    recno = table.current().logicalrecord_get()
    recs = a5_get_records_in_query("t_customer",current_filter.value)
    recs2 = a5_get_records_in_query(table.current().name_get(),current_filter.value)
    ttlrecs = table.current().records_get()
    rec_string = "Viewing record "+calc->recno+" of "+calc->recs+" out of a total of "+calc->ttlrecs

    Every time I create a new app under V11, I get the error logicalrecord_get() function not found.

    The thing is that the applications developed earlier, now under Alpha 11 works. The issue is at creating and trying to use that function in a new app.

    Any Ideas?

    #2
    Re: logicalrecord_get() funtion not found under V11

    Mike, I just opened Alpha Sports, copied the example in the help documentation and ran the script. This ran "OK".

    Code:
    dim tbl as P
    dim inx as P
    tbl = table.open("customer")
    tbl.fetch_first()
    ui_msg_box("First record", "The first record is " + tbl.LogicalRecord_Get()+ " for " + tbl.Lastname)
    tbl.fetch_next()
    ui_msg_box("Next record", "The next record is " + tbl.LogicalRecord_Get()+ " for " + tbl.Lastname)
    query.order = "customer->Lastname"
    inx = tbl.query_create()
    tbl.fetch_first()
    ui_msg_box("First record", "The first record is " + tbl.LogicalRecord_Get()+ " for " + tbl.Lastname)
    tbl.fetch_next()
    ui_msg_box("Next record", "The next record is " + tbl.LogicalRecord_Get()+ " for " + tbl.Lastname)
    tbl.close()
    Alpha 5 Version 11
    AA Build 2999, Build 4269, Current Build
    DBF's and MySql
    Desktop, Web on the Desktop and WEB

    Ron Anusiewicz

    Comment


      #3
      Re: logicalrecord_get() funtion not found under V11

      Ronald Thanks for responding.
      I did tried the script in a button and I did get simmilar response/error.
      It seems that LogicalRecord_Get() is either corrupted or missing. Yet any code previously created, works well.
      It just when I try to create new code.

      Comment


        #4
        Re: logicalrecord_get() funtion not found under V11

        The code that Ronald posted uses two steps. One establishes the table pointer and the second uses the .logicalrecord_get() method.

        Could be a timing issue resolving table.current().logicalrecord_get().

        Try it as two steps.

        tbl = table.current()
        recno = tbl.logicalrecord_get()
        There can be only one.

        Comment


          #5
          Re: logicalrecord_get() funtion not found under V11

          I do not think we are addressing the issue or at least I am not getting the idea.
          I am in a form in the XY section trying to give value to a few variables.
          See attached image. I get error in the lower part.
          Why do I get this error? When in prior versions, I did not.
          Why in forms that were developed in prior versions, still working? Even in V11.
          Why even in those existing forms, if I try to change that code now, I get that error
          I hope this clarifies the issue. Please tell me if I am still jot clear.
          Attached Files

          Comment


            #6
            Re: logicalrecord_get() funtion not found under V11

            I was mislead by


            I have bee using this code since Alpha 9. logicalrecord_get() now it gives error.
            That's not code, that's creating calculated fields in the genie. Don't know why it isn't behaving the same as earlier versions
            There can be only one.

            Comment


              #7
              Re: logicalrecord_get() funtion not found under V11

              I would still suggest try doing it in two steps as post#4 using an addition calc field for the pointer to see

              Comment


                #8
                Re: logicalrecord_get() funtion not found under V11

                Ray, No matter what you try, introducing the logicalrecord_get() , gives not recognized error.
                Stan, Sorry if I mislead. When things do not work, frustration sets in. Result: brain fails.
                Interesting is that the issue it also happens in Ver. 9 and 10. Here what I have done to solve the problem.
                I did try to open the new app in v9 and v10, gave same results.
                Somehow this code works in V9, v10 and v11. But not in new created applications.
                So I did copy the original table and form (was actually a blank form based on a simple table, to the new application.
                Bingo. Now I can use the logicalrecord_get() in the new app. and apply it to any form. It works.
                I cannot explain it, I am just mentioning the process.

                Comment


                  #9
                  Re: logicalrecord_get() funtion not found under V11

                  No matter what you try, introducing the logicalrecord_get() , gives not recognized error.
                  Not true.

                  calc.png

                  This works. Well actually it doesn't error.
                  There can be only one.

                  Comment


                    #10
                    Re: logicalrecord_get() funtion not found under V11

                    I do agree that, since it worked before, there is something wrong with table.current().logicalrecord_get(). Suggest you submit a bug report.

                    If you want a workaround.

                    Define a variable for your form. (logrec = 0)
                    Code the onfetch event of your form

                    tbl = table.current()
                    logrec = tbl.logicalrecord_get()

                    Change your calculated field to

                    recno = var->logrec
                    There can be only one.

                    Comment


                      #11
                      Re: logicalrecord_get() funtion not found under V11

                      Having gone through that, Mike, I would avoid doing table wide recalculations (which I believe this does) using a form calc field.
                      Any time the form recalculates almost anything it includes that recalculation.
                      I would get the logical record on fetch. It won't change while you remain on that record, whatever you're calculating/changing with the form fields.

                      Speaking generally - in many cases when I send a function as a pointer attached directly to another function call it works.
                      Sometimes it fails. Rather than spend more time on it I simply get a pointer and use that and if that works leave it so.
                      I havent ever used or needed to use logical record perse so I can't speak for that.

                      Just saw Stan's post, says the same but I've typed this already soooo here.

                      Comment


                        #12
                        Re: logicalrecord_get() funtion not found under V11

                        I will try those ideas.
                        If you will apply my code same way I did, does any one gets the error?

                        Comment


                          #13
                          Re: logicalrecord_get() funtion not found under V11

                          Yes, as I said.

                          I do agree that, since it worked before, there is something wrong with table.current().logicalrecord_get(). Suggest you submit a bug report.
                          There can be only one.

                          Comment


                            #14
                            Re: logicalrecord_get() funtion not found under V11

                            OK.

                            Comment


                              #15
                              Re: logicalrecord_get() funtion not found under V11

                              Originally posted by MikeData View Post
                              I will try those ideas.
                              If you will apply my code same way I did, does any one gets the error?
                              Same error in V10 inside of calc fields
                              Also in IW
                              vtp=table.current()
                              ?vtp.logicalrecord_get()
                              ERROR: Variable type mismatch: attempt to assign table.LogicalRecord_Get with value of type 'N'.

                              logicalrecord_set(n) works
                              Last edited by Ray in Capetown; 11-06-2013, 02:37 AM.

                              Comment

                              Working...
                              X