Sometimes it get entered to db and sometimes not.Will u please tell me wat the problem is?
Added after 28 minutes:
while entering the Ques it get parsed in the following code
QString mainForm:arseQuestion(QString &stmt1)
{
QTextStream cout(stdout, QIODevice::WriteOnly);
cout<<"It is coming inside the parse function"<<endl;
stmt1=stmt1.replace( QChar('^'),QChar('<') );
stmt1=stmt1.replace( QChar('~'),QChar('>') );
stmt1=stmt1.replace( "{sub}","<sub>" );
stmt1=stmt1.replace( "{/sub}","</sub>" );
stmt1=stmt1.replace( "{sup}","<sup>" );
stmt1=stmt1.replace( "{/sup}","</sup>" );
return(stmt1);
}
And when the options get entered it is nt parsing in the "parseOption" function.
The "parseOption" function also parses the Ques itself, and tat Ques is taken as the stmt value one by one and finally printing as the stmt as[].
The option isprinting as []. Y its taking lik tis pls tell me![]()
Bookmarks