dcsimg
Results 1 to 3 of 3

Thread: SQlite3 and VB6 return variable

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2019
    Posts
    4

    SQlite3 and VB6 return variable

    Hi all,

    so I would like to return a variable from select query result into my vb6 application.
    I would like to return row count number, I can do that in SQLite3.exe as follows:

    select count(*) from mytable;

    and result is table row number..

    I would like to use that to check if my local (sqlite table) is empty or not and if not sync my local table to the mssql server table. I'm inserting values to the sqlite only when mssql server not reachable.

  2. #2
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    1,830

    Re: SQlite3 and VB6 return variable

    ?
    SELECT COUNT(*) AS MyCount FROM MyTable

    Debug.Print RS("MyCount")
    One System to rule them all, One IDE to find them,
    One Code to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    For health reasons i try to avoid reading unformatted Code

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2019
    Posts
    4

    Re: SQlite3 and VB6 return variable

    That will do the trick. Thank you Zvoni!

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width