English
Bugs and vermeintliche

String-spending of Klassenobjekten link

 

Jörg
Sellmeyer
The following class contains a function to Widergabe one Strings. If I the Result (really Yes apiece one String) two Objects contact wants, becomes the first Result verschluckt.
CompileMarkSeparation
Class Test = i%,out@,test@

Proc Test.Test

    Parameters l%
    .i% = l%

EndProc

Proc Test.Out

    Var s$ = "eins|zwei|drei|vier"

    If %pcount = 1

        Parameters l%
        Return SubStr$(s$,l%,"|")

    Else

        Declare s1$

        WhileLoop .i%

            s1$ = s1$ + "|" + SubStr$(s$,&Loop,"|")

        Wend

        Return Del$(s1$,1,1)

    EndIf

EndProc

Declare A#[2],T$,T1$,T2$
A#[0] = New(Test,2)
A#[1] = New(Test,3)
T$ = A#[0].Out(2) + " Test " + A#[1].Out()'hier wier die Ausgabe des ersten Objektes verschluckt
Print T$
'ab hier funktioniert alles wie erwartet
T1$ = A#[0].Out(2)
T2$ = A#[1].Out()
Print T1$ + " Test " + T2$
WaitInput

I Have straight yet what tested. If I the second Result "trimme", geht's. apparently becomes there another Nullbyte pictured or so.
CompileMarkSeparation
T$ = A#[0].out(2) + " Test " + Trim $(A#[1].out())'the goes
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/15/12  
 




Nico
Madysa
with one Nullbyte can the whole not zusammenhängen, following row functions ditto:
CompileMarkSeparation
T$ = A#[0].Out(2) + " Test " + mid$(A#[1].Out(),1,99)'hier wier die Ausgabe des ersten Objektes verschluckt
>

objectively must You only irgendeine function on A#[1].out() utilize:
CompileMarkSeparation
proc eins

    parameters p$
    return p$

endproc

T$ = A#[0].Out(2) + " Test " + eins(A#[1].Out()
n>
 
03/15/12  
 




Jörg
Sellmeyer
well, with my Trim can I in the momentum life but I hope, Roland can the to fix.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/15/12  
 




RGH
long has it gedauert, but now have I the bow found! in the next Betarelease of XProfan X2.1 (presumably on the weekend) is it fixed.

Greeting
Roland
 
XProfan X2
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
01/11/13  
 



@Roland: I have a Please.

If you gemeldete Bugs to fix konntest, then remaining these Overview here [...] 
helpful, if you such one Bugmeldethema as "Erledigt" Mark could.

simply left under with "Themenoptionen" on "erledigt" clicking.

so You can then too dank the Headline "Aktive Themen" [...]  discern,
which Bugs yet consist and Perhaps is these Overview indeed for you
very helpful. (Wovon I really gone out be.)
 
01/11/13  
 




RGH
Yes, The Overview is very helpful. Related to the "Erledigt" I had so understood the the Bugmelder to seinem Test whom bow as Done markiert. but I can the naturally too do.

BTW: The Error trod always only then on, if one Operand in a mathematischen expression (to counts technical too The "Addition" of Strings) one element one Objekt- or structure-Arrays was.The previous Operanden get then because of one Fehlers in the Stack-edit ignoring.

Greeting
Roland
 
XProfan X2
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
01/11/13  
 



[OFFTOPIC]
this is so indeed virtual, that the Themenersteller too always The Possibility has, one Topic as Done To Mark or To delete. here z.B. if it itself circa a Fehlmeldung deals or if it feststellt, that the bow fixed watts.

there The Overview the vermeindlichen Bugs particularly too a Overview for/ on you is and so too User discern can whether/ which Bugs consist, is it likewise meaningfully if you behobene Bugs as "erledigt" markierst. so remaining The Overview for all Beteiligten a Hilfestellung.
[/OFFTOPIC]
 
01/11/13  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

7.864 Views

Untitledvor 0 min.
Jörg Sellmeyer08/18/17
p.specht04/03/16
mein06/02/13
Hanibal06/01/13
More...

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