| |
|
|
| I überleg The whole Time How I it best explain can...
The function MID$ supply a "String" and the function Explode one "Dynamisches String-Array".
MID$ on one Leerstring, So one MID$ on "nichts", supply a Leerstring back, means a String without characters.
Explode on one Leerstring, means explode("",""), supply one "Dynamisches String-Array" back, means "nichts" as an array, So one aray without Indizes/Entries.
XProfan11 has unfortunately whom bow, one dynamisches String-aray back To supplying, which even not empty separate a entry contains.
even if one Leerstring one "String" is, and so z.B. with MID$ therefore the Return Value one LeerString is, so is with Explode the Return Value one "Dynamisches String-Array", which no Entries having must very like a Leerstring too no characters include must.
I kanns too prove! CompileMarkSeparation |
|
|
|
|
Frank Abbing | you have right, with "","" might no solches aray prepares go! |
|
|
| |
|
|
|
RGH | |
|
| 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 | 10/09/09 ▲ |
|
|
|
|
| super, can plainer with bypass. |
|
|
| |
|
|
|
| i'm incidentally still the opinion, that You, the turnabout the Parameter cancel could. yet uses nobody explode, that could The latest chance his. ^^
The jetzige Variante confused me at the latest if I within 1 editor with different Languages program, So one Window with HTML/JS aufhabe, one with PHP and one with XProfan. with instr or in that$ heissts still too: gesuchter, durchsuchter and with with Explode was nunmal seither too: gesuchter, durchsuchter. |
|
|
| |
|
|
|
RGH | Tja, with the whom Parameters is so a thing ... everywhere is the Delimiter hinten dran and can ggf,. omitted will be. i think, that the XProfan-Explode sooner To XProfan "kompatibel" his ought to, as To others Languages.
Greeting Roland (begins presently again, on the next XProfan to basteln.) |
|
|
| 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 | 10/09/09 ▲ |
|
|
|
|
| I see the something differently, because with instr or in that$ means it too (gesuchter, durchsuchter).
One Explode(gesuchter, durchsuchter) would then not less XProfan-compatible.
omit the Delimiters went even if it the 1. Parameter would. (naturally, be because, you have for Explode yet further optionale Parameter angeplant)
i'd sooner say, that the Explode a good idea from others Languages is, The XProfan aufgegriffen has. now but the Parameter for To vertauschen should a reason having, from persönlicher experience ists only irritating particularly too because imho technical unnotwendig. ^^
naturally can I it too as "persönliche Note" receive, but I thought you have the Explode for me made. ^^ |
|
|
| |
|
|
|
Nico Madysa | does me sorrow, iF; still here voice I definitiv with Roland überein. Explode obeyed not the principle sought-search How InStr or Translate$, separate (even quite evident) the Substringprinzip; How SubStr, len, etc. with Explode("A B C D E F"," ") fasse I the space not as sought String -- Instr(" ","A B C D E F") -- , separate as Delimiter/Begrenzer on: del$("A B C D E F",3,1," ")
NB: straight is me noticed, that Explode too in the XProfan-Help in the area Teilstrings standing (7.11); and there fit The Parameterreihenfolge really well into . |
|
|
| |
|
|
|
| what You write power sense, z.B. if one the explode new is, one not already hundreds Codes with "richtigem" Explode exist has.
Locate Y,X - from Basic setPixel X,Y - from Basic var ... - (u.A.) from Java in that$(d$,s$) ... explode - from PHP
Weils from PHP comes The Parameter vertauschen? |
|
|
| |
|
|
|
Nico Madysa | well, means over SetPixel must we really not streiten; without arrogantly wirken To want can I say, that The Order X, Y still a seeeehr etablierte shape is. what Locate angeht, so fuming me these Verdrehung of Anbeginn; if the korrigiert would, would I already grateful. (Kompatibilitätsbedenken stops I for unangebracht, survive most Kodes, The Locate benützen, still seldom the end the Windowssitzung.)
and No, The Parameter go with Explode not vertauscht, weils from PHP comes, separate because it in the context with XProfan inverse simply More sense ergiebt -- How You already said.
my opinion likes something radical his, but I think not, that we only whom others Programmiersprachen zuliebe yet a lästige exception in that schema zwängen should.
PS: really a good idea -- Why is the Delimiter not optional? Fehlt it, then is eachone character one Teilstring. |
|
|
| |
|
|
|
RGH | Nopch time short To explode() in XProfan 12:
1. is the second Parameter (Delimiter) one Leerstring, becomes each characters to a aray-worth. 2. In this case can the 2. Parameter, analog To others XProfan-functions, too omitted: var string characters[] = explode("Hugo")
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 | 10/22/09 ▲ |
|
|
|