[Qt-interest] I am facing a problem
Sujan Dasmahapatra
sujan.dasmahapatra at gmail.com
Wed Aug 12 15:51:34 CEST 2009
Thats right sean...Thanks I think it's too much for today for me.
On Wed, Aug 12, 2009 at 7:07 PM, Sean Harmer <
sean.harmer at maps-technology.com> wrote:
> The first test is failing as you will have: testNumberOfPoints.at(0) = 2
> and
> the test is testNumberOfPoints.at(0) != '0' => ( 2 != 0 ) = true.
>
> This is simple logic and nothing specific to Qt.
>
> Sean
>
> On Wednesday 12 Aug 2009 14:31:27 Sujan Dasmahapatra wrote:
> > Dear Friends
> > I am facing a problem for this code below.
> >
> >
> ///////////////////////////////////////////////////////////////////////////
>
> >////////////////////////////////////////////////////////////////////////////
> >///////////////////////////////////////////////////////////// int
> > numberOfPoints = 201;
> > QString testNumberOfPoints = QString::number(numberOfPoints);
> > for(i=0; i<testNumberOfPoints.length(); i++)
> > {
> > qDebug() << testNumberOfPoints.at(i) << "\n";
> > if(testNumberOfPoints.at(i) != '0' ||
> > testNumberOfPoints.at(i) != '1' || testNumberOfPoints.at(i) != '2' ||
> > testNumberOfPoints.at(i) != '3' ||
> > testNumberOfPoints.at(i) != '4' ||
> > testNumberOfPoints.at(i) != '5' || testNumberOfPoints.at(i) != '6' ||
> > testNumberOfPoints.at(i) != '7' ||
> > testNumberOfPoints.at(i) != '8' ||
> testNumberOfPoints.at(i)
> > != '9')
> > {
> > QMessageBox msg;
> > msg.setText("The geomertry file is not a valid .dat
> > format");
> > msg.exec();
> > return ;
> > }
> > }
> >
> >
> ///////////////////////////////////////////////////////////////////////////
>
> >////////////////////////////////////////////////////////////////////////////
> >///////////////////////////////////////////////////////////////// The
> value
> > is 201 you can see but still it's returning !!!
> > Can anyone tell me why this is happening ??
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090812/59a068f8/attachment.html
More information about the Qt-interest-old
mailing list