User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: ODBC Questions

  1. #1
    No Products Registered

    Join Date
    Feb 2007
    Location
    Minneapolis, Minnesota
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ODBC Questions

    Hello all.

    I have an ODBC question.

    I have a frame that starts first with a dialog box that the user will type in their network ID.

    What I want to do is capture that network ID and then use it in a SQL query to grab data from a database and from that SQL query populate the counter.

    The SQL query I have so far is:

    "SELECT * FROM Data_Table WHERE Agent_ID LIKE '%(Dialog box answer)%'"

    How would I accomplish this?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Questions

    Is it getting the result from the dialog box that you're stuck on? I'm not certain of the details of how to use it, but there should be a "Get text from element (something)" condition/event/expression of the dialog box that you can put into that query.

  3. #3
    No Products Registered

    Join Date
    Feb 2007
    Location
    Minneapolis, Minnesota
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Questions

    Ok I worded this bad.

    I did figure out how to get the value from the dialog box.

    What I am doing is setting alterable string a to the value in the dialog box.

    Alterable String A( "DialogBox" )

    Then I am taking Alterable String A into a SQL query to get the value in the database.

    "SELECT * FROM Data_Table WHERE Agent_ID LIKE '%Alterable String A%'"

    What I am stuck on, is how do I set the counter equal to the value I am getting from the SQL query?

  4. #4
    No Products Registered

    Join Date
    Feb 2007
    Location
    Minneapolis, Minnesota
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Questions

    Anyone able to answer the above?

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Questions

    Doesn't the network id change to something random every time the user logs in? Surely you'd go with a login name/password and validate the user first before checking the database on this information?

  6. #6
    No Products Registered

    Join Date
    Feb 2007
    Location
    Minneapolis, Minnesota
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Questions

    Not really, what I am doing is going to a database that stores production stats. What I am doing is creating a game, that their initial number of tries equals a production stat (like number of sales they had made the day previously).

    I am currently in a "proof of concept" that I can set the counter to the stat stored in a database (so I am using an Access database that I created).

    The reason I am asking for the user's LAN ID is that I could not figure out how to grab their network ID when they start the game.

    If there is a way, then I would just grab their network ID and then link that to an entry in a database that has their production stats that I need to grab.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    Norway
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Questions

    "SELECT * FROM Data_Table WHERE Agent_ID LIKE '"+Alterable String A( "DialogBox" )+"'"

    Like that maybe?
    Jean Villy Edberg

  8. #8
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: ODBC Questions

    More like:

    "SELECT * FROM Data_Table WHERE Agent_ID LIKE '%"+Alterable String A( "DialogBox" )+"%'"

    Or maybe they are talking about running the Get Row action and corresponding Can get data? event and setting the counter to the result of the ODBC's Get Number in Column function.
    .:::.Joshtek.:::.

  9. #9
    No Products Registered

    Join Date
    Feb 2007
    Location
    Minneapolis, Minnesota
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Questions

    I saw that function for Get Number in Column but how would I get the

    "SELECT * FROM Data_Table WHERE Agent_ID LIKE '%"+Alterable String A( "DialogBox" )+"%'"

    to return a row instead of a value, and how would I link that to counter?

  10. #10
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: ODBC Questions

    Return a row instead of a value?

    Do you know any other programming languages?
    .:::.Joshtek.:::.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. ODBC database
    By DANY in forum File Archive
    Replies: 1
    Last Post: 13th February 2011, 02:04 AM
  2. ODBC Problem
    By Mephistus in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 5th September 2008, 05:27 PM
  3. Objet ODBC
    By IADE08 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 25th February 2008, 03:21 PM
  4. ODBC Tutorial?
    By YAS in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 5th December 2007, 05:19 PM
  5. odbc
    By bensmid66 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 26th October 2007, 08:37 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
  •