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

MB function

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

    MB function

    this function does some work with the motherboard serial to make it easier to get your own perseat charge or to keep a customer from trying to get the same program on multiple machines. With a couple scripts and autoexec you can build your own registration setup.

    It gets the serial, makes it all numbers, cuts it down to size, returns the anser to a global var, returns a var dividing it by 8, so a simple reg would require the user to input a matching code.

    I use it with a detached table where the mb, code, anser are kept. on startup the external tbl is read and if all matches, the user never sees anything, but if the mb field does not match this function var, it prompts to register, they have to call me.

    modify as you will. It is really a simple function, but could save someone some time.

    Code:
    'Date Created: 04-Apr-2007 02:34:13 PM
    'Last Updated: 09-Apr-2008 09:01:56 PM
    'Created By  : dave
    'Updated By  : dave1
    FUNCTION getmb AS C (valwithdate as c)
    Dim s as P
    dim global results1 as c
    s = win_motherboard()
    'dim global valwithdate as c
    results1 = s.SerialNumber
    results1 = strtran(results1,"A","1")
    results1 = strtran(results1,"B","2")
    results1 = strtran(results1,"C","3")
    results1 = strtran(results1,"D","4")
    results1 = strtran(results1,"E","5")
    results1 = strtran(results1,"F","6")
    results1 = strtran(results1,"G","7")
    results1 = strtran(results1,"H","8")
    results1 = strtran(results1,"I","9")
    results1 = strtran(results1,"J","10")
    results1 = strtran(results1,"K","11")
    results1 = strtran(results1,"L","12")
    results1 = strtran(results1,"M","13")
    results1 = strtran(results1,"N","14")
    results1 = strtran(results1,"O","15")
    results1 = strtran(results1,"P","16")
    results1 = strtran(results1,"Q","17")
    results1 = strtran(results1,"R","18")
    results1 = strtran(results1,"S","1")
    results1 = strtran(results1,"T","1")
    results1 = strtran(results1,"U","1")
    results1 = strtran(results1,"V","1")
    results1 = strtran(results1,"W","1")
    results1 = strtran(results1,"X","1")
    results1 = strtran(results1,"Y","1")
    results1 = strtran(results1,"Z","1")
    'results1 = val(results1)/10
    'results1 = remspecial(results1)
    results1 = right(remspecial(results1),7)
    dim global mbans1 as n
    dim global mbanswer as c
    mbans1 = int((val(results1)/8))
    mbanswer = str(mbans1,7,0)
    mbanswer = alltrim(mbanswer)
     
    END FUNCTION
    Dave Mason
    [email protected]
    Skype is dave.mason46

    #2
    Re: MB function

    Dave,

    I was very interested in your motherboard function so I copied the function and ran it interactively. Interestingly, when run on this machine an empty string was returned for the serial number. Have you experienced this?

    Thanks,

    Walt Morgan

    Comment


      #3
      Re: MB function

      Walt, I thought maybe it was just me but have the same thing--blank result. I ran the win_motherboard function in the interactive editor and it only came up with two results .. "base board" for a couple and also "nVidia-nForce" for the product which happens to be what one of my chipsets is based on. No model or serial number is returned.

      So apparently the win_motherboard function may be limited in what motherboards it can return info on. Even the example of the function only shows a few bits of info returned.
      Mike
      __________________________________________
      It is only when we forget all our learning that we begin to know.
      It's not what you look at that matters, it's what you see.
      Henry David Thoreau
      __________________________________________



      Comment


        #4
        Re: MB function

        try the global var "results1" and "mbanswer"

        The function is not supposed to return anything just makes the 2 vars.

        Part of the security - if someone got that far, they would expect as you do.

        If you want, make the reults return valwithdate like:
        Code:
        'Date Created: 04-Apr-2007 02:34:13 PM
        'Last Updated: 09-Apr-2008 09:01:56 PM
        'Created By  : dave
        'Updated By  : dave1
        FUNCTION getmb AS C (valwithdate as c)
        
        Dim s as P
        dim global results1 as c
        s = win_motherboard()
        results1 = s.SerialNumber
        results1 = strtran(results1,"A","1")
        results1 = strtran(results1,"B","2")
        results1 = strtran(results1,"C","3")
        results1 = strtran(results1,"D","4")
        results1 = strtran(results1,"E","5")
        results1 = strtran(results1,"F","6")
        results1 = strtran(results1,"G","7")
        results1 = strtran(results1,"H","8")
        results1 = strtran(results1,"I","9")
        results1 = strtran(results1,"J","10")
        results1 = strtran(results1,"K","11")
        results1 = strtran(results1,"L","12")
        results1 = strtran(results1,"M","13")
        results1 = strtran(results1,"N","14")
        results1 = strtran(results1,"O","15")
        results1 = strtran(results1,"P","16")
        results1 = strtran(results1,"Q","17")
        results1 = strtran(results1,"R","18")
        results1 = strtran(results1,"S","1")
        results1 = strtran(results1,"T","1")
        results1 = strtran(results1,"U","1")
        results1 = strtran(results1,"V","1")
        results1 = strtran(results1,"W","1")
        results1 = strtran(results1,"X","1")
        results1 = strtran(results1,"Y","1")
        results1 = strtran(results1,"Z","1")
        results1 = right(remspecial(results1),7)
        dim global mbans1 as n
        dim global mbanswer as c
        mbans1 = int((val(results1)/8))
        mbanswer = str(mbans1,7,0)
        mbanswer = alltrim(mbanswer)
        
        getmb = results1
         
        END FUNCTION
        Hope I did that right
        Last edited by DaveM; 04-13-2008, 12:22 AM.
        Dave Mason
        [email protected]
        Skype is dave.mason46

        Comment


          #5
          Re: MB function

          I have run this on several computers with solid results.

          This is how it needs to be done, but sometimes returns wierd results so I turned it all into a number. It shows up good then.
          winxp, w2k, vista ultimate. 6 different computers, 2 dells, 1 e-machine and rest are undetermined. zNever looked the rest of the motherbord stuff.

          Code:
          Dim s as P
          dim global results1 as c
          s = win_motherboard()
          results1 = s.SerialNumber
          '***with the rest of the code***
          ?results1
          ="3629584" ' varies with computer

          My now computer:

          Code:
          Dim s as P
          dim global results1 as c
          s = win_motherboard()
          results1 = s.SerialNumber
          
          ?results1
          = ".FTHCBF1.CN486437C52561."
          Last edited by DaveM; 04-13-2008, 12:41 AM.
          Dave Mason
          [email protected]
          Skype is dave.mason46

          Comment


            #6
            Re: MB function

            It seems that a number of us are seeing blanks in the serial number field.
            Code:
            ?win_motherboard()
            = Caption = "Base Board"
            ConfigOptions = <No data returned>
            Depth = <No data returned>
            Description = "Base Board"
            Height = <No data returned>
            HostingBoard = .T.
            HotSwappable = <No data returned>
            InstallDate = <No data returned>
            Manufacturer = "http://www.abit.com.tw/"
            Model = <No data returned>
            Name = "Base Board"
            OtherIdentifyingInfo = <No data returned>
            PartNumber = <No data returned>
            PoweredOn = .T.
            Product = "AI7  (Intel i865-ICH5)"
            Removable = <No data returned>
            Replaceable = <No data returned>
            RequirementsDescription = <No data returned>
            RequiresDaughterBoard = <No data returned>
            SerialNumber = " "
            SKU = <No data returned>
            SlotLayout = <No data returned>
            SpecialRequirements = <No data returned>
            Status = <No data returned>
            Tag = "Base Board"
            Version = "1.0  "
            Weight = <No data returned>
            Width = <No data returned>
            Bill.

            Comment


              #7
              Re: MB function

              bill,

              I will have to run it on more computers then. every one at my disposal has a serial number. Will check and get back here.

              Code:
              'just run on present computer:
              ?win_motherboard()
              = Caption = "Base Board"
              +ConfigOptions.
              Depth = <No data returned>
              Description = "Base Board"
              Height = <No data returned>
              HostingBoard = .T.
              HotSwappable = <No data returned>
              InstallDate = <No data returned>
              Manufacturer = "Intel Corporation              "
              Model = <No data returned>
              Name = "Base Board"
              OtherIdentifyingInfo = <No data returned>
              PartNumber = <No data returned>
              PoweredOn = .T.
              Product = "D915GLVG                       "
              Removable = <No data returned>
              Replaceable = <No data returned>
              RequirementsDescription = <No data returned>
              RequiresDaughterBoard = <No data returned>
              SerialNumber = "FCVG52929027                   "
              SKU = <No data returned>
              SlotLayout = <No data returned>
              SpecialRequirements = <No data returned>
              Status = <No data returned>
              Tag = "Base Board"
              Version = "AAC96367-305           "
              Weight = <No data returned>
              Width = <No data returned>
              Dave Mason
              [email protected]
              Skype is dave.mason46

              Comment

              Working...
              X