[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: variables problem
From: Thorsten Westheider <thorsten.westheider () teleos-web ! de>
Date: 2000-02-20 16:59:38
[Download RAW message or body]
Kai Heitkamp wrote:
>
> Hello !
>
> Sorry this isn't about a kde problem, but I need help:
>
> I read all needed items from a QlistView into a variable-field,
> item 1 in variable 'item[0]', item 2 in 'item[1]' and so on.
> All variables shall in reverse order in a new variable !
>
> The new variable must contain: '...item[2]item[1]item[0]'
>
> This don't work:
>
> i = 3;
>
> while ( i == 0 )
> {
> newvariable = newvariable + item[ i ];
> --i;
> }
>
> Everybody can help me !?
Your problem is that 3 is not equal to 0 (ant thus,
the loop is never entered) :-)
cu
Thorsten
--
Dipl.-Phys. Thorsten Westheider / / (_)__ __ ____ __
Im Schlingen 15 / /__/ / _ \/ // /\ \/ /
32120 Hiddenhausen -- Germany /____/_/_//_/\_,_/ /_/\_\
2.2.14
mailto:thorsten.westheider@teleos-web.de
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic