Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2007
    Posts
    15

    Help Displaying Query

    I have this code so far

    Code:
    sn1 = Input.GetText("Input1");
    
    db = "AutoPlay\\Docs\\M.mdb"
    Query1 = "Select * FROM Contacts WHERE SN = '"..sn1.."'"
    
    result = DLL.CallFunction("AutoPlay\\Docs\\xMDB.dll", "Query_Update_MDB", "\""..db.."\",\""..Query1.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL)
    And I want to display the result in a RichText Object

    Could Someone help me
    Thanks in advance

  2. #2
    Join Date
    May 2008
    Location
    The Netherlands
    Posts
    109
    you mean

    Code:
    sn1 = Input.GetText("Input1");
    
    db = "AutoPlay\\Docs\\M.mdb"
    Query1 = "Select * FROM Contacts WHERE SN = '"..sn1.."'"
    
    result = DLL.CallFunction("AutoPlay\\Docs\\xMDB.dll", "Query_Update_MDB", "\""..db.."\",\""..Query1.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL)
    RichText.SetText("RichText1", ""..result, true);
    Last edited by limboo; 06-20-2008 at 12:18 PM.

  3. #3
    Join Date
    Oct 2007
    Posts
    15
    Thanks for the suggestion but it is not working
    Any other ideas?

  4. #4
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    It seems that you are forgetting to inform the password.

    Ulrich

  5. #5
    Join Date
    Oct 2007
    Posts
    15
    I have no password
    All of my other queries do not have password set and they are working just fine

  6. #6
    Join Date
    Oct 2007
    Posts
    15
    When i added the password it returned OK
    but i want to see the recors in the db
    so i have a table contacts and fields name, lastname and sn
    what i am trying to do is find all records that have the same sn display them in richtext or grid object so i can edit them

    is there someone who can help me do that
    thanks again for your replys

  7. #7
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Looks like you should study the example code provided with the dll, to see how to store the results in a table and retrieve the records, no?
    Last edited by Ulrich; 06-20-2008 at 02:34 PM.

  8. #8
    Join Date
    Oct 2007
    Posts
    15
    ok
    that's what i'm going to do
    thanks for your time

  9. #9
    Join Date
    May 2006
    Posts
    1,443
    this Example shows detailed usage of xMDB.dll
    also it contains answer of question that you asked

    http://www.indigorose.com/forums/showthread.php?t=20828

Similar Threads

  1. Query case sensitive services
    By Braendan in forum Setup Factory 6.0
    Replies: 0
    Last Post: 11-30-2002, 03:37 AM
  2. PROBLEM: Design Environment not Displaying Files
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-15-2002, 01:37 PM
  3. PROBLEM: Design Environment not Displaying Files
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-15-2002, 01:36 PM
  4. Query Registry Values
    By Deano in forum Setup Factory 6.0
    Replies: 8
    Last Post: 01-04-2002, 11:22 PM

Posting Permissions

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