realbasic-nug
[Top] [All Lists]

Re: Elseif problem?

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Elseif problem?
From: Norman Palardy <npalardy@great-white-software.com>
Date: Tue, 30 Jun 2009 15:05:14 -0600
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <C670434D.57979%markus_winter@online.de>
References: <C670434D.57979%markus_winter@online.de>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On 30-Jun-09, at 2:33 PM, Markus Winter wrote:
elseif StartValue >= EndValue And StepValue <0 then // count down

     for i = StartValue DownTo EndValue step StepValue
       EditField1.AppendText Str(i) + EndOfLine
     next

if step is negative use

     for i = StartValue To EndValue step StepValue

or use

     for i = StartValue DownTo EndValue step abs(StepValue)

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>