| |
|
|
- 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: [...]  CompileMarkSeparationClass 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 |
 |
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 10/30/07 ▲ |
|
|
|
| |
|
- Page 2 - |
|
|
 | you mean one crash? Teste still time with {$debug} and look then in that debugfile WO it itself aufhängt. |
|
|
| |
|
|
|
 Jörg Sellmeyer | where it knallt, is easily find: Setz simply one TraceOn between With ... and .ShowValues(): With T# traceon .ShowValues()that here knallt
circa to exclude, that I in the procedure Blödsinn written have, can You there yet as first row Return 1 reinschreiben... The Trace-Messagebox reports yet row xx:.ShowValues() and the wars. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 10/31/07 ▲ |
|
|
|
|
 | with runs but Perhaps. take nevertheless times the Debugvariante and postest here The spending/the Debugfile.  |
|
|
| |
|
|
|
 Jörg Sellmeyer | with the Profandebugger on, comes no crash.
and XPSE taugt indeed not really as Debugger in the drop, there Yes at Compilieren always The row Window .... zerlegt and is The 1 abgetrennt becomes. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 10/31/07 ▲ |
|
|
|
|
 | Hrm the power XPSE indeed completely correctly because Window knows IMHO only 4 Parameter! Why ought to XPSE here nothing taugen if it but already on a vorhandenen Error hinwies? I work solely with the XPSE-Debug and my a better DebugMöglichkeit there for XProfan not at all. |
|
|
| |
|
|
|
 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. ;) |
|
|
| |
|
|
|
 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.  |
|
|
| |
|
|