English
Forum

Konstanten with DEF

 

H.Brill
usually are so Konstanten, The with DEF definiert get,
in the later Programmlauf unveränderlich. this is indeed the
sense of it.

That it nevertheless differently goes, prove The Escpae-Sequenzen
and the eingebetteten variables.
Declare String cover, name, Long old
cover = "Herr "
name = "Müller"
old = 50
DEF $Text "Hallo, \:Titel;\:name;, How are them ?\nSie are \:Alter; years old.\n"
Cls
Print $Text
Print "Weiter with Button...\n"
WaitKey
cover = "Frau "
name = "Maierbär"
old = 80
Print $Text
WaitKey

is Perhaps for something useful.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
05/08/23  
 




Matthias
Arlt
this behaviour there but evident first ex X3. before watts a Stringkonstante too only as Literal treats, as it the Logik corresponds to.
still well to know...
 
Alle Sprachen
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
05/08/23  
 




H.Brill
particularly The engebetteten variables make it Yes so interestingly.
time see, whether I a good, sinnvolle usage for find.

present could I me such Adress-Etiketten, where the Sender
solid and that the Kundenadressen a DB pulled go.

to that expression bräuchte one only a Stringkonstante. The Adressfelder
from the DB save one anyhow usually in normalen variables (to Weiterverarbeitung) between. once one The Adressteile into variables
has, is too The Stringkonstante currently, or. with the actually address
slip.

I faith, there find itself certainly yet others Einsatzgebiete.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
05/08/23  
 




Matthias
Arlt
now Yes...then well sooner 'kosmetisch' relevant. but Why not...

Letztendlich behave itself a Stringkonstante Yes not differently as a global defined Stringvariable, The in the Programmablauf unchanged remaining. and hierin exists too the only benefit the Constant to the variables, namely in the global Sichtbarkeit and the solid Content, even one unchanged Literal.

from it could theoretical one marginaler Geschwindigkeitsvorteil result. whether the in a 'durchschnittlichen' Program objectively messbar is, have I though never tested.

If I now but instead of one konstanten Literal a mixture from veränderbaren sharing zuweise, remaining only The globale Sichtbarkeit. The access I but likewise with of/ one global deklarierten Variable.
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
05/08/23  
 




H.Brill
in the Grunde taken is it indeed only a Spielerei of me.
there have you got naturally right, that to the too with normalen
variables manage can.

and a Geschwindigkeitsvorteil see so did i not really,
though to RGH's Quote in the Help :


The usage of Konstanten can one Program übersichtlicher and ggf. too faster make, there on Konstanten explicit faster zugegriffen becomes, as on variables.


likes his, if is a gigantic Loop with zig tausenden Durchläufen
has, that one there something faster on the way is. But this is too the
Interpreter geschuldet. somewhere in the Help I had time red, that
the any 20 Lines a 'Pause' or whatever, power.

the only, I time fixes have : If one large Datenmengen
in a very large Loop work out must, can it vorteilhaft his,
RGH's interne creep (z.B. MoveListProc) To use. with the
...ToList-command can Yes in this Proc make, what wants, d.h.
ma need Yes not absolutely The interne Listboxliste To using.

there could I already time a Geschwindigkeitsvorteil check.
but usually write we Yes, How You already said, 'durchschnittliche' programs, where the then not auffällt.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
05/09/23  
 




Matthias
Arlt
well however, damage becomes not. and be it too only, that it Perhaps whom View source schöner strukturiert...

interestingly would now, whether ex X3 The others Konstanten (long, float etc.) too somehow atypisch behaviour. Perhaps falls you there Yes something on.
 
Alle Sprachen
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
05/09/23  
 




H.Brill
with whom numbers-Konstanten wüßte I now not, How.
this is Yes a solid number and no Literal "xxxx", the
at least in the length moving is. One Long (&,%)
has nunmal 4 Bytes, not any more and not less.
there can too no additional Variable einbetten.
the here functions indeed not :
DEF !old Pi()
DEF %w %MaxX
DEF $Ordner $AppDataDir'here already, there it too without "" functions

and too with Addr() comes one not dran.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
05/09/23  
 




Matthias
Arlt
there have You right. I had neither really so calculated. its but over ands over again interestingly, what to years the Use so on 'Neuigkeiten' discover...
 
Alle Sprachen
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
05/09/23  
 




H.Brill
Yes, sometimes lead too Flüchtigkeitsfehler or. Programmierfehler
To such Erkenntnissen.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
05/10/23  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.311 Views

Untitledvor 0 min.
H.Brill10/09/24
Gast.081507/08/24
Rainer Hoefs07/06/23
Sven Bader07/03/23
More...

Themeninformationen

this Topic has 2 subscriber:

H.Brill (5x)
Matthias Arlt (4x)


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