- Code: Select all
`Loop "1" "[num]" "[y]"`

FileWrite "[pubdir]test.txt" "Append" "[caption]. Full Marks [fm] Time [min] minutes"

FileWrite "[pubdir]test.txt" "Append" "Roll No : [x] - [DateShort]"

FileWrite "[pubdir]test.txt" "Append" ".........................................."

Loop "1" "20" "[x]"

Random "[qts.lm.$RecCount]" "[ran]"

dbpGotoRecord "qts" "LM" "[ran]"

Setvar "[rec[ran]]" "[qts.lm.question]"

Setvar "[Ans1[ran]]" "[qts.lm.Ans1]"

Setvar "[Ans2[ran]]" "[qts.lm.Ans2]"

Setvar "[Ans3[ran]]" "[qts.lm.Ans3]"

Setvar "[Ans4[ran]]" "[qts.lm.Ans4]"

FileWrite "[pubdir]Test.txt" "Append" "[x]. [rec[ran]]"

FileWrite "[pubdir]Test.txt" "Append" "[Ans1[ran]]"

FileWrite "[pubdir]Test.txt" "Append" "[Ans2[ran]]"

FileWrite "[pubdir]Test.txt" "Append" "[Ans3[ran]]"

FileWrite "[pubdir]Test.txt" "Append" "[Ans4[ran]]"

endloop

endloop

I was trying to figure out the same thing using NeoBookDBPro, but not getting the proper way to fit the same for DBPro that can generate different sets of questions for a specified number of students.

I am pleading the gurus to intervene.

Regds.

S.Ghosh