Alpha Video Training
Results 1 to 3 of 3

Thread: What Code is Missing?

  1. #1
    "Certified" Alphaholic forskare's Avatar
    Real Name
    Ken Nordin
    Join Date
    Apr 2000
    Location
    Walker, MN
    Posts
    7,545

    Default What Code is Missing?

    I'm trying to blend code from the Auto Complete xDialog which is:

    dim t as p
    t = table.open("clients")
    dim lastname as c
    ui_dlg_box("Auto-complete Example",<<%dlg%
    {wrap=100}
    {frame=1,1}
    {region}
    Lastname: | [%A=t.suggest("lastname",value)%.50lastname];
    {endregion};
    %dlg%)

    t.close()


    with other code so that the OK and Cancel buttons are included. Obviously, the code is not correct because I get the error message which is shown in red.

    -------- MY CODE -------------------

    dim t as p
    t = table.open("clients")
    DIM SHARED varC_result as C
    dim lastname as c
    ui_dlg_box("Auto-complete Example",<<%dlg%
    {wrap=100}
    {frame=1,1}
    %dlg%)
    ok_button_label = "&OK"
    cancel_button_label = "&Cancel"
    varC_result = ui_dlg_box("Alpha Five",<<%dlg%
    {region}
    Lastname: | [%A=t.suggest("lastname",value)%.50lastname];
    {endregion};
    %dlg%)
    {region}
    <*15=ok_button_label!OK> <15=cancel_button_label!CANCEL> ' Error Message "Expected Value"
    {endregion};
    t.close()


    The line of code is good but there is code missing from another line. Additionally the code may not be in the proper.

    Thanks for the help

    kenn

  2. #2
    "Certified" Alphaholic Tim Kiebert's Avatar
    Real Name
    Tim Kiebert
    Join Date
    Jul 2004
    Location
    Geelong, Victoria, Australia
    Posts
    2,785

    Default Re: What Code is Missing?

    Ken,

    Code:
    Dim t as p
    t = table.open("client")
    dim lastname as c
    
    ok_button_label = "&OK"
    cancel_button_label = "&Cancel"
    
    ui_dlg_box("Auto-complete Example",<<%dlg%
    {wrap=100}
    {frame=1,1}
    {region}
    Lastname: | [%A=t.suggest("lastname",value)%.50lastname];
    {endregion};
    {region}
    <*15=ok_button_label!OK> <15=cancel_button_label!CANCEL> 
    {endregion}
    %dlg%)
    Tim Kiebert
    Eagle Creek Citrus
    A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

  3. #3
    "Certified" Alphaholic forskare's Avatar
    Real Name
    Ken Nordin
    Join Date
    Apr 2000
    Location
    Walker, MN
    Posts
    7,545

    Default Re: What Code is Missing?

    Thank you, Tim :)

Similar Threads

  1. Insert Grids Missing Code
    By vinyltap in forum Application Server Version 8
    Replies: 0
    Last Post: 03-30-2007, 11:49 AM
  2. Missing Code Library Icon?
    By Peter.Greulich in forum Alpha Five Version 8
    Replies: 2
    Last Post: 03-11-2007, 08:14 PM
  3. Missing Code!
    By Andy Dibble in forum Alpha Five Version 6
    Replies: 4
    Last Post: 11-01-2004, 06:09 AM
  4. Missing Code Tab
    By jiminy91 in forum Alpha Five Version 5
    Replies: 2
    Last Post: 06-04-2004, 10:58 AM
  5. Missing Code?
    By forskare in forum Alpha Five Version 4
    Replies: 11
    Last Post: 02-01-2002, 06:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •