English
Online-Documentation

whileloop Kontrollstruktur: Kontrollstruktur

 
WhileLoop P:L1[,P:L2[,P:L3]] ... EndWhile

Parameter:
P:L1 - Number of Durchläufe or Startwert
P:L2 - Endwert
P:L3 - Schrittweite

this is The XProfan-Version the traditionellen LINK:[FOR]-NEXT-Loop. though is a Verschachtelung of several creep something differently To release, particularly if on The Laufvariablen the creep zugegriffen go must.

gives it only a Parameter, becomes The Loop very around the behind WhileLoop angegebene number go through.
(see example 1)

it'll 10 time the "X" outputted. for the drop, that the Schleifenindex needed becomes, is this in &LINKS:[Loop]. outside of/ one Loop is &LINKS:[Loop] undefiniert and within of/ one others While-Loop has &LINKS:[Loop] whom actually worth the behind While or. WhileNot stehenden Ausdrucks, means into most Make 1. within of/ one LINK:[Repeat]-LINK:[Until]-Loop is &LINKS:[Loop] undefiniert.
(see example 2)

with two Parmetern is the first the Startwert and the second the Endwert.
(see example 3)

it go the numbers of 10 To 20 outputted.

there's optional a third Parameter, the The Schrittweite angibt. The Schrittweite can also negative his. it'll screen, whether The Parameter meaningfully are. 0 as Schrittweite is just as little registered, as an Schrittweite into incorrect direction. So the first worth small as the second, must The Schrittweite positively his and inverse.
(see example 4)

it go the numbers of 150 To 100 in 5it-stepped outputted.

the Äquivalent of/ one WhileLoop-Loop to of/ one For-Next-Loop (s. o.) would the following:
(see example 5)

an Verschachtelung would How follows realized:
(see example 6) deference: The behind WhileLoop stehende expression becomes only at Beginn the Loop ausgewertet and thereafter not any more! One Changing the Ausdrucks in the Loop remaining wirkungslos.

It can too the of BASIC since gewohnte WEND instead of EndWhile using go. EndWhile is however vorzuziehen.
 
08/05/05  
 



Note / Question or Comment to the Help--Topic


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.623 Views

Untitledvor 0 min.
RudiB.02/09/20
Joerg06/27/16
Wilfried06/02/16
Erfurt07/15/12
More...

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie