PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → one by one select row in  table and save data from db
one by one select row in table and save data from db
Iniciado por guest, 13,abr. 2015 13:50 - 3 respuestas
Publicado el 13,abril 2015 - 13:50
this code is run in windev to give same output
but
not work properliy.
please help me



FOR i=1 _TO_ HNbRec(QRY_SelectQustionChapterGroup)

IF TABLE_QuestionMaster.COL_chekbox..Value=True THEN
TableSelectPlus(TABLE_QuestionMaster,i)
SelectQuestion.SQ_SM_ID=COMBO_SubjectName..Value
SelectQuestion.SQ_CM_ID=TABLE_QuestionMaster.COL_QM_CM_ID
SelectQuestion.SQ_QM_ID=TABLE_QuestionMaster.COL_QuestionMasterID
SelectQuestion.SQ_EM_ID=COMBO_ExamName..Value
HAdd(SelectQuestion)
END
END
Publicado el 13,abril 2015 - 14:56
Vijay,

Use FOR EACH to do this - see this Help page for more information; <a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/?1510013">http://doc.windev.com/en-US/&hellip;</a>
Publicado el 13,abril 2015 - 14:57
Vijay, can you explain what you want with this code?
you are testing one value from TABLE_QuestionMaster without the row number before the TableSelectPlus why?
Publicado el 13,abril 2015 - 19:33
thank you
sir,