English
Opportunities and suggestions

wish: Typenkleinigkeiten

 
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
var meinString$="A"
print len(meinString$)zeigt 1
meinString$=""
print len(meinString$)zeigt 0
declare meinArray$[]
meinArray$[]=explode("A",",")
print sizeOf(meinArray$[])zeigt 1
meinArray$[]=explode("",",")
print sizeOf(meinArray$[])zeigt 1
waitkey
08/08/08  
 




Frank
Abbing
you have right, with "","" might no solches aray prepares go!
 
08/08/08  
 




RGH
Frabbing, Beitrag=43245, Zeitpunkt=08.08.2008
you have right, with "","" might no solches aray prepares go!


... and becomes künftig neither More. the Result-aray has The Size 0, How of iF demand.

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/09/09  
 



super, can plainer with bypass.
 
10/09/09  
 



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.
 
10/09/09  
 




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. ^^
 
10/09/09  
 




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 .
 
Nico Madysa
10/10/09  
 



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?
 
10/10/09  
 




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.
 
Nico Madysa
10/10/09  
 




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  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.199 Views

Untitledvor 0 min.
H.Brill05/05/23

Themeninformationen



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