English
Forum

Please Once this code testing (XProfan11.0ß s2)

 
- Page 1 -



Jörg
Sellmeyer
with the actually Subscriptionsversion crashes the code ex.
I habs yet as .prf appended, if it here by the Formatierung somehow affected becomes.
moreover too time these Message in the XProfan-Forum reading: [...] 
CompileMarkSeparation
Class Fond = Name$(41),
Ident$(21),
Anzahl%,
Datum$(9),
WertSingle!,
WertSumme!,
Fond@,
ShowValues@

Proc Fond.Fond

    Parameters Werte$
    .Name$ = SubStr$(Werte$,1,|)
    .Ident$ = SubStr$(Werte$,2,|)
    .Anzahl% = Val(Translate$(SubStr$(Werte$,3,|),.,))
    .Datum$ = SubStr$(Werte$,4,|)
    .WertSingle! = Val(Translate$(Translate$(SubStr$(Werte$,5,|),.,),,,.))
    .WertSumme! = Val(Translate$(Translate$(SubStr$(Werte$,6,|),.,),,,.))

EndProc

Proc Fond.ShowValues

    Var s$ = Name$(40) =  + .Name$ +
    Ident$(20) =  + .Ident$ +
    Anzahl% =  + Str$(.Anzahl%) +
    Datum$(8) =  + .Datum$ +
    WertSingle! =  + Str$(.WertSingle!) +
    WertSumme! =  + Str$(.WertSumme!)
    MessageBox(s$,Fond,64)

EndProc

Window 0,0 - 900,400;1
Declare TestWerte$,MyTest$,T#,Test#[2]
TestWerte$ = 1|2|3|4|5|6
MyTest$ = SubStr$(TestWerte$,1,COMINVEST TOT.RET.PROTECT)
print Eins:,MyTest$
MyTest$ = SubStr$(TestWerte$,1,Nur ein Test)
Wenn ich HINTER die obenstehende Zeile ein Hochkomma setze, funktioniert es!
print Zwei:,MyTest$
t# = New(Fond,MyTest$)

With T#

    .ShowValues()das hier knallt
    das Weitere funktioniert
    Print .Name$,
    .Ident$,
    .Anzahl%,
    .Datum$,
    .WertSingle!,
    .WertSumme!

EndWith

WaitInput
Dispose Test#[]
Dispose T#
ef='./../../Function-References/XProfan/end/'>End

Greeting
Jörg

2 kB
Hochgeladen:10/30/07
Downloadcounter126
Download
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/30/07  
 



 
- Page 2 -



Jörg
Sellmeyer
Oha! be I stupid. now have I tausendmal The row red and never notice, that the the Error is!!!!
I have always SetWindowPos thereby in the head had with the optionalen Parameter.
now runs naturally. I have XPSE only to that Compilieren tuned and not as Interpreter, therefore was not sooner noticed.
does me sorrow for Alarm, but Perhaps can Roland the as Fehlermeldungsoptimierung use
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/31/07  
 



sure not stupid, but the fehlende credit to that small xpse have I very well notice.

PS: Ausschliesslich with {$cleq} works. is one faster in amount. ;)
 
10/31/07  
 




Dieter
Zornow
I have once more tested, with the XPSE runs the program correct, because it Yes rewritten becomes. If I subsequently The .enh File starte runs these too under reinem XProfan.
i think it depends somehow with the Lines and the Schreibform together, Perhaps the unlimited XProfan. as Exe runs too the program of Jörg indeed integrally through. its of course strange but another Statement can I I do not present. Perhaps test times whether through adjust the Lines in Jörgs Program something correct. have but no Time in the moment, is already to 19:00 what about me go something Halloween celebrate.

Greeting from Bangkok

Dieter
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
10/31/07  
 




Jörg
Sellmeyer
supplant times the row Window 0,0 - 900,400;1 through Window 0,0 - 900,400
I Have too long used, To I it geschnallt have.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/31/07  
 




RGH
the ;1 at Windowbefehl has with the trouble the Program quite nothing To do.
with command takes XProfan so many Parameter How used and be power then with the next Programmzeile moreover. Überzählige Parameter go simply ignoring and disturbing not. one could theoretical too yet a novel behind it write. ;)

to that actual, utterly mysteriösen trouble:

The crash exit exakt only then on, if a the both Lines with the SubStr$()-function a length between 44 and 51 characters has. (Führende space to the MyTest = count there not, there these the Interpreter already at reading the Codes eliminiert.)

since yesterday evening Search I frantic to one logical erklärbaren Context between the length the Program lines and the A second Calling the method.

Greeting
Roland

Nachtrag: This is too for a few others Program lines.
 
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/31/07  
 




Jörg
Sellmeyer
OK, by me running it through, but only as long as I in Debugmodus was. without Debug knallts again.
Seeehr strange.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10/31/07  
 



hm 51-44 is 7, 7 is too The length of mytest$, Why it very lying can but sure only Roland with many Messageboxen detect.
 
10/31/07  
 



 
- Page 3 -



RGH
OK, I Have whom Error found and korrigiert!

for Delphi-User: Delphi has in designed Make Problems with Strings as VAR-Parameter. In this case watts PZeile[ZNr] by VAR-Paramerter on a simple function transfer, where PZeile a (open) aray Of String is, which the Profan-Program contains and ZNr the after P2CPP (already existierenden) Programmzeile. with whom named Zeilenlängen watts thereby the String from unerfindlichen Found, The presumably not even someone with Borland knows, zerbröselt (geNULLt) and the led then the later grabbed (in unserem example with the Search to the Funktionsdefinition) to that Crash.

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/01/07  
 



can no Delphi - therefore: what are Strings as Var-Parameter?
 
11/01/07  
 




Jörg
Sellmeyer
lovely! has itself the nerve Yes at least gelohnt. when Gibts because time again a actually Version?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
11/01/07  
 




RGH
iF
can no Delphi - therefore: what are Strings as Var-Parameter?


there results The Übergabe not byValue (as worth) separate byReference (as address). the power one then, if one Changes on the übergebenen String permit would like. In others Languages uses one for u.a. The macro byVal and byRef.

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/01/07  
 



or one asterisk or sometimes too the @ ... ok understand thanks!
 
11/01/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

6.704 Views

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