Results 1 to 7 of 7

Thread: Reading & Writing to File with qt3.3.4 , Please help me in detail

  1. #1
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default please help me in "Year Ending Stock Processing "

    Good Morning Guys

    I have a big problem with the year ending process . ie; at the financial year ending time we are planning to create a new database [ in postgresql ] by renaming the old - database .
    In the old-database i have a table called tbl_stock_on_hand ,from which we can indentify Each Products Current-Stock .

    My problem is to transfere this Current-Stock of Individual Product from Old-Database to the New database as OPENING STOCK to individual items

    How it is possible ...........? please help me it's very urgent

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: please help me in "Year Ending Stock Processing "

    Just dump the data to a file and then load it to the new database or use dblink function.

  3. #3
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Thank u very much jacek

    hai jacek

    Thank u very much for ur reply. Actually i was about to try this using file . Now i have one need .how i can simply write this data to file and how i can fetch the same from it and insert to the new database

  4. #4
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Reading & Writing to File with qt3.3.4 , Please help me in detail

    Is there any body to help me in file transactions , if u can please sent an simple example code for writing & read a file in Qt 3.3.4 . Actually my need is to
    => fetch data from postgresql old-databse
    => then store the data in a dynamically created file [ say tmp.txt ]
    => then create a new database using shellScript
    => then restrore the data from file to new-database

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Reading & Writing to File with qt3.3.4 , Please help me in detail

    Quote Originally Posted by joseph
    => fetch data from postgresql old-databse
    => then store the data in a dynamically created file [ say tmp.txt ]
    => then create a new database using shellScript
    => then restrore the data from file to new-database
    And how are these related to reading and writing using a file? If you ask specific questions, you'll get specific answers. For a general question of yours I can give you a general answer -- use QFile class.

  6. #6
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Reading & Writing to File with qt3.3.4 , Please help me in detail

    Quote Originally Posted by wysota
    And how are these related to reading and writing using a file? If you ask specific questions, you'll get specific answers. For a general question of yours I can give you a general answer -- use QFile class.
    Answer for next level questions - use QSqlDatabase
    a life without programming is like an empty bottle

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Reading & Writing to File with qt3.3.4 , Please help me in detail

    Please, don't start multiple threads on the same problem.

Similar Threads

  1. QWT 5, QT3, SuSE 10.2. Crash and burn
    By DrMcCleod in forum Qwt
    Replies: 8
    Last Post: 7th September 2007, 20:53
  2. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.