Get the value of a field from the database into a variable / получить в переменную значение поля из базы данных

still don’t understand the code editor well
I need to get into a variable the value of a field from the database

все еще плохо понимаю редактор кода
мне нужно получить в переменную значение поля из базы данных

import QtQuick 2.6

Item {
   Component.onCompleted: {
   letter()
   }
       function letter(){
           let word = sqlQuery(SELECT Answer FROM GamePlay WHERE "LevelEnd" = '0' ORDER BY "LevelEnd" ASC LIMIT 0, 1)
           
           document.childByName("Text 23").content.scriptAdaptor.actionSetText(word)
   }
}

Check this video:

Example project filter_data.pma (19.2 KB)

Thank you! / Спасибо


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.