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

Gift For All

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

    #16
    RE: Gift For All

    Nick,

    You're Welcome and thanks for the kind words.

    Below is the [b]Completed Code. This version, with the help of the others who have offered their advice in this thread, functions exactly as it should.

    CODE FOLOWS=====================================

    'Date Created: 16-Dec-2002 05:48:10 PM
    'Last Updated: 26-Jan-2003 09:56:58 PM
    'Created By : Louis H. Nickerson
    'Updated By :
    Dim mode as C
    dim vc_411_business_name as c
    mode = "Search YellowPages.com"
    flag_business = .t.
    flag_residential = .f.
    flag_reverse = .f.
    result=ui_dlg_box("Directory Assistance Genie",
    %dlg%,vc_411_business_name+"&city="+Var->vc_411_city+"&state="+var->vc_411_state
    sys_open(URL_var)
    else if flag_residential = .t.
    URL_var = "http://www.whitepages.com/resi_qry_results.pl?fid=n&fk=b&f="+Var->vc_411_first_name+"&lk=eq&l="+Var->vc_411_last_name+"&c="+Var->vc_411_city+"&s="+Var->vc_411_state
    sys_open(URL_var)
    else if flag_reverse = .t.
    URL_var = "http://www.whitepages.com/resi_qry_results.pl?fid=p&ac="+Var->vc_area_code+"&p="+Var->vc_NPA+"-"+Var->vc_XXXX
    sys_open(URL_var)
    end if
    end if

    Comment


      #17
      RE: Gift For All

      Oops,

      Sorry about the bold font. My Bad!

      Louis

      Comment


        #18
        RE: Gift For All

        I added a Cancel button so if I decide to cancel the search, I don't have to click the small X in the upper left.

        kenn

        CODE FOLOWS=====================================

        'Date Created: 16-Dec-2002 05:48:10 PM
        'Last Updated: 26-Jan-2003 09:56:58 PM
        'Created By : Louis H. Nickerson
        'Updated By : Dr. Wayne, Rodney Efird, Ken Nordin
        Dim mode as C
        dim vc_411_business_name as c
        mode = "Search YellowPages.com"
        flag_business = .t.
        flag_residential = .f.
        flag_reverse = .f.
        result=ui_dlg_box("Directory Assistance Genie",|
        %dlg%,vc_411_business_name+"&city="+Var->vc_411_city+"&state="+var->vc_411_state
        sys_open(URL_var)
        else if flag_residential = .t.
        URL_var = "http://www.whitepages.com/resi_qry_results.pl?fid=n&fk=b&f="+Var->vc_411_first_name+"&lk=eq&l="+Var->vc_411_last_name+"&c="+Var->vc_411_city+"&s="+Var->vc_411_state
        sys_open(URL_var)
        else if flag_reverse = .t.
        URL_var = "http://www.whitepages.com/resi_qry_results.pl?fid=p&ac="+Var->vc_area_code+"&p="+Var->vc_NPA+"-"+Var->vc_XXXX
        sys_open(URL_var)
        end if
        end if
        TYVM :) kenn

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

        Comment


          #19
          RE: Gift For All

          Works great. I can run it after pasting to an interactive window. Where is it supposed to go, and how to I copy the text there? Going to Action scripting, naming it, I can't paste it. Thanks.
          Dick

          Comment


            #20
            RE: Gift For All

            Richard,

            View the attached flash demonstration to see how to create the script.

            Once you have created the script, you call call it from whatever object event within Alpha you wish...OnPush of a button for example.

            Louis

            Comment


              #21
              RE: Gift For All

              WOW! THANK YOU!
              Dick

              Comment


                #22
                RE: Gift For All

                You're Welcome.

                I hope you get some good use out of the script.

                Louis

                Comment


                  #23
                  No Good Deed Goes Unpunished

                  This is very cool. Of course those of us who can't actually program just sit around thinking of things we could do if we could. Here's what this spawned:

                  Doing a lookup to Mapquest.

                  It would have 2 purposes. We actually use MapQuest to get zipcodes when missing or the Plus 4 when that's missing. And it verifies addresses.

                  And of course there's the "OOOOH" factor. Being able to map an address via a button would bring tears to the eyes of my users.

                  It would appear that typing in the address and doing the lookup would essentially be the same concept as the 411's.

                  But if you could tell the code which fields to grab for Address, City and State and automatically smack them in.... Wow!!

                  Comment


                    #24
                    RE: No Good Deed Goes Unpunished

                    I second this request. I use mapquest a bunch...

                    Comment


                      #25
                      RE: No Good Deed Goes Unpunished

                      Been there, done that...

                      copy and paste this code to the OpenUrl Action from action scripting...

                      Keep in mind, these are the variable names from my application. You will need to adjust accordingly.

                      This code should be pasted as one continuous line of data.

                      CODE FOLLOWS=================================

                      ="http://www.mapquest.com/directions/main.adp?go=1&do=nw&ct=NA&1y=US&1a="+Var->vc_our_Street_Address_1+"&1p=&1c="+Var->vc_our_Street_City+"&1s="+Var->vc_our_Street_State+"&1z="+Var->vc_our_Street_Zip+"&1ah=&2y=US&2a="+Street_Address_1+"=&2c="+Street_City+"&2s="+Street_State_Abbreviation+"&2z="+Street_Zip_Code+"&2ah=&lr=2&x=61&y=14"

                      Comment


                        #26
                        RE: No Good Deed Goes Unpunished

                        The above code actually maps a driving route between my address...vc_our_company... and the active client's address.

                        If you have any questions, let me know, I'd be glad to help.

                        Louis

                        Comment


                          #27
                          RE: No Good Deed Goes Unpunished

                          Wow, 9 minutes. That was Selwyn-like. Now I have to figure it out (before tomorrow, I'm showing off my app in the morning).

                          Comment


                            #28
                            RE: No Good Deed Goes Unpunished

                            Tip...

                            Set your default web page to "Blank"...much more impressive.

                            I actually developed this little script for use in my telephone interconnect company.

                            The next step is to have it map the directions between any two of my customer's offices. Daily, I get a call from one of my technicians who is on a job site wanting directions to the next job site.

                            Eventually, I will incorporate this into a scheduling and tracking system.

                            Louis

                            Comment


                              #29
                              RE: No Good Deed Goes Unpunished

                              OK. Here's the ammended script with the Map It feature added. In it you can put in where you want to start from and then where you want to go to.

                              It may need some cleaning up, but I think you'll see what I mean...

                              CODE FOLLOWS>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

                              'Date Created: 16-Dec-2002 05:48:10 PM
                              'Last Updated: 28-Jan-2003 11:31:06 PM
                              'Created By : Louis H. Nickerson
                              'Updated By : C.H. Hoens
                              Dim mode as C
                              dim vc_411_business_name as c
                              mode = "Search YellowPages.com"
                              flag_business = .t.
                              flag_residential = .f.
                              flag_reverse = .f.
                              flag_map = .f.
                              result=ui_dlg_box("Directory Assistance Genie",|
                              %dlg%,
                              {endregion};
                              %dlg%)
                              end if
                              end if

                              %code%)

                              if result = "Search" then
                              if flag_business = .t.
                              URL_var = "http://www.yellowpages.com/asp/search/SearchResult.asp?page=home&searchtips=&moresearchoptions=&searchform=homesearch&typeorname=name&search="+Var->vc_411_business_name+"&city="+Var->vc_411_city+"&state="+var->vc_411_state
                              sys_open(URL_var)
                              else if flag_residential = .t.
                              URL_var = "http://www.whitepages.com/resi_qry_results.pl?fid=n&fk=b&f="+Var->vc_411_first_name+"&lk=eq&l="+Var->vc_411_last_name+"&c="+Var->vc_411_city+"&s="+Var->vc_411_state
                              sys_open(URL_var)
                              else if flag_reverse = .t.
                              URL_var = "http://www.whitepages.com/resi_qry_results.pl?fid=p&ac="+Var->vc_area_code+"&p="+Var->vc_NPA+"-"+Var->vc_XXXX
                              sys_open(URL_var)
                              else if flag_map = .t.
                              URL_var="http://www.mapquest.com/directions/main.adp?go=1&do=nw&ct=NA&1y=US&1a="+Var->vc_start_street1+"&1p=&1c="+Var->vc_start_City+"&1s="+Var->vc_start_State+"&1z="+"&1ah=&2y=US&2a="+var->vc_goto_street+"=&2c="+var->vc_goto_city+"&2s="+var->vc_goto_state+"&2z="+"&2ah=&lr=2&x=61&y=14"
                              sys_open(Url_var)

                              end if
                              end if

                              Comment


                                #30
                                RE: No Good Deed Goes Unpunished

                                This thread has a life of it's own!! I'll try this latest version in a bit. Here's a simpler version. Louis was using driving directions. For now, I'm just going with Mapping.

                                I created variables called vcLine1, vcCity, vcState, and vcZip and assigned them to fields on my form.

                                I then open a URL with this calc field

                                "http://www.mapquest.com/maps/map.adp?country=US&addtohistory=&address="+vcLine1+"&city="+vcCity+"&state="+vcState+"&zipcode="+Var->vcZip+"&homesubmit=Get+Map"

                                and assigned it to a button. All you have to do is substitute your fields when setting up variables.

                                Thanks everyone. This has been very timely!!

                                Comment

                                Working...
                                X