English
Opportunities and suggestions

wish: Pushschreibweise

 
i'd me wish, with dynamic Arrays How z.B.:
CompileMarkSeparation
declare a$[]

whileLoop 10

    a$[]=str$(&loop)

we
instead of ("nur")
CompileMarkSeparation
declare a$[]

whileLoop 10

    a$[sizeOf(a$)]=st$(&loop)

wend

write to, because
CompileMarkSeparation shows 0 and
CompileMarkSeparationshows correctly 10.

with Precompiler see it something aufgeräumter from
CompileMarkSeparation, but here would one:
CompileMarkSeparationkürzer.
 
04/09/10  
 




RGH
Hm, i'd in the example instead of "a$[sizeof(a$[])]" simply "a$[&loop]" write.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
05/09/10  
 



not if it you only therefore goes, Entries on the aray anzuhängen instead of To settle.

value learnt have I these spelling through PHP and JS, normally Arrays so as "Kollektoren" To benefit.
 
05/09/10  
 



what somehow on += shows as Push-spelling for Strings.
CompileMarkSeparation
declare string s
s="Hallo"
s+=" Welt"re>
becomes indeed in regulären JS and PHP-Codes so found and is too from of my experience a sinnvolle Syntax. (even if in PHP the + for Strings . is, means $s.=" Welt".)
 
05/11/10  
 




RGH
iF, Beitrag=57072, Zeitpunkt=09.05.2010
not if it you only therefore goes, Entries on the aray anzuhängen instead of To settle.

value learnt have I these spelling through PHP and JS, normally Arrays so as "Kollektoren" To benefit.


Yes, but unfortunately has exakt these spelling already another weight:

with a[] = <Ausdruck> point I each element the Arrays a[] whom expression To. (thereby must imn expression The Systemvariable &index vorkommen, The de the index the Elements corresponds to.) See Help:

iF, Beitrag=57072, Zeitpunkt=09.05.2010
A&[] = <Ausdruck>

&Index

all Elementen the Arrays becomes <Ausdruck> allocated. These Possibility counts for all Arraytypen with exception the Bereichs-, structure- or Objektarrays.

in the expression must The Systemvariable &Index vorkommen, The whom jeweiligen Indexwert has. with mehrdimensionalen Arrays becomes this Indexwert over any items hochgezählt, so as deal it itself for a eindimmsionales aray. example:

Declare area$[20]
area$[] = "Feld " + Str$(&Index)
CLS
WhileLoop 0, 20
Print area$[& Loop]
EndWhile
WaitInput
End
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
06/09/10  
 



Ah! is correct!
 
06/10/10  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.138 Views

Untitledvor 0 min.
Vgdd06/05/17
Peter Max Müller04/28/12

Themeninformationen

this Topic has 2 subscriber:

iF (4x)
RGH (2x)


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