English
Opportunities and suggestions

wish: Explode (openArrays)

 
i wish me:

in the reference hereon the it Yes now in X11 The OpenArrays gives again the wish to explode (and count!).

naturally can instead of count too sizeOf fungieren
CompileMarkSeparation
declare a$[]
declare s$
s$=http://xprofan.com/test/
a$=explode(/,s$)

whileloop count(a$)-1

    print &loop,a$[&loop]

end
/a>

spending:


0 http:
1
2 XProfan.com
3 Test
4
 
10/28/07  
 




Jörg
Sellmeyer
you mean probably: a$[] = explode(). the would Yes something like How MoveStrToArr. the would so did i very begrüßen.
in the momentum does it Yes only over the detour MoveStrToList() and then MoveListToArr().
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/28/07  
 



Yes the my I where a$ clear as an array definiert is, IMHO hiernach not really one [] necessary his ought to. The from you beschriebene detour has detriments, of/ one of it is the one itself its interne LB zerknallt and the one these before too yet warscheinlich usually delete should. are means already 3 Operationen instead of only of/ one only, whom besagten disadvantage against find I unfortunately really bad. moreover comes that I faith the the detour over The Listbox Performancenachteile mitsich bring. One fixes übersichtliches explode is hold still something other...
 
10/28/07  
 




Jörg
Sellmeyer
The detour isn't of me suggested, separate solely bedauernd fixes been
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/28/07  
 



Jörg Sellmeyer
The detour isn't of me suggested, separate solely bedauernd fixes been


I nu.
 
10/28/07  
 



For Show: [...] 
 
10/28/07  
 




Jörg
Sellmeyer

is delimiter one leerer String (), so gives explode() FALSE back.


there would it Yes yet calm, if Del$ = one aray from Einzelbuchstaben yields. though me so on attempt too no usage for einfiele...
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/29/07  
 



me already! where I my would the explode with only one Parameter this do ought to.

The benefit is clear if you something parsen want. You must not constantly with mid$(blub,pos,1) the Char detect and MID each time new beauftragen in the string rumzurutschen, separate it'll einmalig zerlegt and DirektZugriff on one Char is syntaktisch simply mgl.

Roland ought to eh the following make possible:
CompileMarkSeparation
var s$=hallo
print s$[1]e>


a
 
10/29/07  
 




RGH
iF
me already! where I my would the explode with only one Parameter this do ought to.

The benefit is clear if you something parsen want. You must not constantly with mid$(blub,pos,1) the Char detect and MID each time new beauftragen in the string rumzurutschen, separate it'll einmalig zerlegt and DirektZugriff on one Char is syntaktisch simply mgl.

Roland ought to eh the following make possible:
CompileMarkSeparation
var s$=hallo
print s$[1]e>


The Syntax would in XProfan unmöglich, there it (How into most BASIC-Dialekten) thoroughly one aray s$[] and a String s$ give can. s$[n%] would then means not eindeutig. though could I me function to investigation exakt one Zeichens present, about SubStr$, if the Delimiter one space is, or. the Parameter No is: SubStr$(s$, n%). the would in the Übrigen to Logik the others Stringbearbeitungsfunktionen with wahlweisem Delimiter fit.

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
11/30/07  
 



The wish to
CompileMarkSeparation
var s$=hallo
print s$[1]e>

is utterly To disregard. plenty importent would one Explode - How follows:
CompileMarkSeparation
declare a$[],s$
s$=Sehr geehrte Damen und Herren,
a$[]=explode( ,s$)re>
 
11/30/07  
 



Nachtrag about Substr with only one Parameter: i'd me hieran orientieren: [...] 
 
11/30/07  
 




RGH
Hm, the PHP-Substr corresponds to still sooner the mid$() (= substr(String, Start, length)) or. right$() (= substr(String,Start))

BTW: your Link functions to Time not.

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
11/30/07  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

10.813 Views

Untitledvor 0 min.
Selmo08/01/23
Sven Bader11/13/21
H.Brill09/11/16
Andreas Koch12/09/11
More...

Themeninformationen

this Topic has 3 subscriber:

iF (8x)
RGH (4x)
Jörg Sellmeyer (4x)


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