English
Opportunities and suggestions

wish: Explode (openArrays)

 
- Page 1 -


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  
 



 
- Page 1 -


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  
 



 
- Page 2 -



RGH
iF
plenty importent would one Explode


Yes, the would but then properly the übrigen XProfan-Syntax sooner MoveArrToStr() and MoveStrToArr() hot.

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  
 




RGH
OK, The last days have I the Topic Arrays devoted:

in the next XProfan-Version becomes it give:

- A$[] = explode(Text$, delimiter$) explode supply one dynamisches Stringarray back. A$[] must therefore one dynamisches Stringarray his
- A$[] = B$[] One aray can another allocated go, if it whom equal type and the equal Dimensionen has, or. both dynamic are.
- Arrays (dynamic and fixe) can as Parameter of/ one procedure transfer go
- Return A$[] a procedure can one aray give back

One Another commands is still in planning.
Also there with negativem Arrayindex none crash More, separate a Error Message.

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
12/04/07  
 



having me of course already almost on the MoveStrToArr gewöhnt but particularly The Übergabe of Arrays per Return-worth and by Parameter is naturally very moving! class!
 
12/04/07  
 




Jörg
Sellmeyer

- Arrays (dynamic and fixe) can as Parameter of/ one procedure transfer go
- Return A$[] a procedure can one aray give back


splendid!
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
12/05/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.849 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