English
Bugs and vermeintliche

X11RC8: Explode with little Error...

 
explode(,irgendWas) must one aray with 0 (zero) Einträgen zurückliefern instead of with a entry...
CompileMarkSeparation
DECLARE MYARR$[]
MYARR$[]=EXPLODE(,;)
PRINT SIZEOF(MYARR$[])re>
gives 1 from instead of 0. against:
CompileMarkSeparation
DECLARE MYARR$[]
MYARR$[]=EXPLODE( ,;)
PRINT SIZEOF(MYARR$[])re>
gives correctly 1 from.

trouble is particularly then gaudy, if the first Parameter of explode a Stringvariable is. then must one over case (sizeOf(myArr$[])=1) and (myArr$[0]=) as an afterthought correct - what not sense the Übung is.
Kurzsyntax for o.g. example:
CompileMarkSeparation
 
07/10/08  
 




RGH
here there The detailed response: [...] 

In all Kürze: no Error separate logical!

Please in future Doppelposts in Community and XProfan-Forum avoid, I not everything twice explain wants. (it reicht already, if the with of my daughter often vonnöten is ... )

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
07/10/08  
 



RGH
here there The detailed response:  [...] 

In all Kürze: no Error separate logical!



Hm, i see your Logik, faith but here remaining the train on halbem ways stand because the target is a Array and no String.

you should for drop, that the String Parameter 1 empty, a exception deklarieren and a aray zurückliefern OHNE Entries.

i want not others Languages or Umsetzungen pulsate The it correctly work out - but if the dispel of nothing EINEN entry created has one only Scherereien...

The Lesson of Explode is the dispel one Stringinhaltes in aray-Entries, no Stringinhalt no Entries.

If no String but ONE Entry (as now is) - then must one afterwards first again tests employ instead of simply sizeOf use to. the would not explode-senses.

The logische Error is imho: explode zerteilt a Stringinhalt, not a String. therefore is the Result too möglicherweise NULL instead of , namely if no Stringinhalt vorliegt because the target is no String, separate one aray.

The jetzige Umsetzung is unvorteilhaft and power not really a sense.

RGH
Please in future Doppelposts in Community and XProfan-Forum avoid, I not everything twice explain wants.


On none drop should You Mehrarbeit having (rather explode repair ;D ) - self-evident is it for me completely enough the in the Phorum To clarify and me here a manner Backup To hosten in the I you simply from the Forum herauszitiere. You can means completely wertungsfrei my here adjacent Posts as Backup missachten.
 
07/10/08  
 



RGH
I not everything twice explain wants. (it reicht already, if the with of my daughter often vonnöten is ... )

Greeting
Roland


Perhaps not Töchter, but somehow are we here still everything your children.

so seen:
 
07/10/08  
 




RGH
response: [...] 

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
07/10/08  
 



> Nochmal one Leerstring is ONE String and not kONE
> String! and the incidentally in all Languages!

Hey - this is still completely clear! but therefore be I still not same blind...

explode zerteilt no String, separate STRINGINHALT. One String is a String OHNE CONTENT.

an function, which a Stringinhalt into aray konvertiert, must one aray with exakt NULL Einträgen produce if no CONTENT present is.

i know very what you mean - the follows too my first thoughts about - its but not To end virtual.

> but You canst you Yes gladly a function IfExplode() write,
> The the power, what You benötigst:

The thing is the - The jetzige Variant sooner one rghExplode because it is not my suggestion which of normalen Explode abweicht - separate The previous Umsetzung from you.

I see too none benefit in the jetzigen rghExplode-Variante - the confused only and results in Fehlern. I see too none sense therein explode umzudefinieren. (though I already The tab held having in the reference hereon the You The Parameter vertauscht have) *g*
 
07/10/08  
 



Help help me Roland To help!
 
07/10/08  
 




RGH
See:  [...] 
 
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
07/10/08  
 



RGH
See:  [...] 


Jupp!

rgh


> (who in several Languages program, ought to though on
> duration no too large Problems having, that in different
> Languages functions teils different hot, teils
> different Parameterfolgen and have itself teils only in
> small but important details discern.)



self-evident still.

I bemängele therefore the xprofansche Explode and would like solely hereon allude,

that it none makes sense a not vorhandenen Stringinhalt into aray To konvertieren which then EINEN entry aufweist.

the has then somehow too nothing more with XProfan to do.
 
07/10/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.233 Views

Untitledvor 0 min.
Selmo08/01/23
Sven Bader11/15/21

Themeninformationen

this Topic has 2 subscriber:

iF (6x)
RGH (3x)


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