| |
|
|
Dieter Zornow | Hi IF,
XPSE recognize not if a variable definiert is with DEF. example: DEF name$(0) String$(mem#,0), XPSE gives a warning, that name$ not declariert is.
plenty Regards 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 | 07/01/07 ▲ |
|
|
|
|
Jac de Lad | with Def name$(0) String$(mem#,0) declarierst You but a function. i don't know whether the one Denkhänger of you is... |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 07/01/07 ▲ |
|
|
|
|
Dieter Zornow | correctly., is a function, there have I well wrong framed, can occur. What is one Denkanhänger, yet never heard, Perhaps one candidate for the word of the day or the week
greetings 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 | 07/01/07 ▲ |
|
|
|
|
| XPSE comes with DEF fine clear - have You time one Beispielcode? |
|
|
| |
|
|
|
Rolf Koch | an question: how long since a variable in Def? name$ or name&
really still then so: Def name(0) String$(mem#,0) or?
because its a function. and name is here the Funktionsname. would be Yes just as as an Proc: Proc blabla$ ... Endproc would be neither functions |
|
|
| |
|
|
|
| Hrm - Roland allows IMHO Procnamen How name$.
XPSE is there less gnädig - can But under Umständen nevertheless sometimes go through. |
|
|
| |
|
|
|
Rolf Koch | Jo, there has XPSE too right , that it less gnädig is. |
|
|
| |
|
|
|
| recently reached me The question whether XPSE Freizeichen in Variablennamen or Funktionsnamen permit would - and whether XProfan this do would. this is no jest! |
|
|
| |
|
|
|
Rolf Koch | - Coooool |
|
|
| |
|
|
|
Dieter Zornow | here one minimal code, bring The warning undefinierte Funkion, whatever this mean should. The Knackpunkt is the $ in the names, without the Better get going accepted. ought to but of my opinion to weg, there it the Overview serves, of these characters is immediate clear, that here String the Result is. I benenne any Defs in the form to the Rückegabe z.B too name&
greetings 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 | 07/02/07 ▲ |
|
|
|
|
RGH | means: your code runs by me correct and mach very the, what expects! (Getestet with XProfan 10.0a in the Interpreter and compiled.)
Greeting Roland
Nachtrag: Sorry, I had überlesen, that it here around the XPSE goes. but your Syntax is on any Cases correctly! the $ in the Funktionsnamen is no trouble, finally are already since frühesten BASIC-times String-functions through this abschließende $ marked. this is naturally too for with DEF defined functions possible. self-contained of it recommend I however, functions instead of with DEF To define by a procedure me Return Value To define. too then is the $-characters allows:
|
|
|
| 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/02/07 ▲ |
|
|
|
|
| xpse means
warning: (NAME$) undeklarierte function. (~1)
because in the Source
print name$()
standing - and name$ not as function* declared watts.
I zitiere you time:
Hi IF,
XPSE recognize not if a variable definiert is with DEF.
and very here's the trouble. You meant a function instead of of/ one variables - and there XPSE always circa Klarheit ready is and circa a tidy Syntax - and there hierbei eindeutig a Verwechslungsgefahr exists - bleats it. One bit less Verwechslungsgefahr bestünde then - if name$ eindeutig as function with Proc declared would.
but too hierbei can I betray the it itself eigendlich even not heard of/ one selbstdefinierten function one variables/TypSuffix To miss out on. so plenty I notice could interested it namely the XProfan utterly at all not at all which suffix the Funktionname carry - definitive is the Return-type.
Dieter you are one old Profan²-XProfan-Schlumpf - i will you under no circumstance instruct - It's all right hold therefore also one bisl fresh and eindeutigeren wind into allowing Syntax To bring because itself for me personally (and me is xpse emerged) many Fehlerquellen/entrapments a Syntax yield which of course allows is - but prohibited heard.
You can any Warnungen with {$noerr} turn off. |
|
|
| |
|
|