English
Forum

Why becomes The Globale Variable not recognized in XPSE ?

 

funkheld
Hello, good day.

Why becomes The Globale Variable "sinu!" in XPSE or with getCircP not recognized ?
"[09:25:08] Objektcode: XPSE-SETPIXEL-XY.asm(213) : Error A2102: symbol hardship defined : SINU"
CompileMarkSeparation
 {$cleq}
declare ende&,bild&
Declare sinu!
Window 20,20-600,600
Cls $ffffff
sinu!=sin(0.0174532925199433)
erzeugebild()
ende&=1

WHILE ende&

    waitkey

ENDWHILE

nProc getCircP(long r,w)

    global sinu!
    return long(sinu!*float(w)/1000.0*float(r))

endproc

nProc erzeugebild()

    Declare x&,y&,r&

    Whileloop 0,200,2

        r&=&loop

        whileloop 0,360000,1000

            x&=getcircp(r&,&loop)
            y&=getcircp(r&,&loop+90000)
            SetPixel(%hdc,280+x&,280+y&,rgb(0,255,0))

        EndWhile

    EndWhile

endproc

 
12/16/13  
 




Jörg
Sellmeyer
I kenn me with ASM not from but for me sees the so from, that You The Variable sinu! now twice global definiert have. once in the Profancode at the beginning and then again by "global" in the nProc.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
12/16/13  
 




funkheld
Jup , is here so described in the Hlife of XPSE :
[...] 

what about me use tappt im dunkeln too only to that reading in the nProc.
but it recognize only Long , How I red have.......................

Why the?.. or goes not differently To make in XPSE ?

Thank you.
greeting
 
12/16/13  
 



so is not described, because there [...]  standing:

Deklariert in nativen functions Long-variables with Postfix & and initialized The variables with the Values gleichnamiger globaler by Declare deklarierter variables. Native globale Floats there not but You could you The values global remember with the Hilfsfunktion SetFloat [...]  a "globalen" memory or. its address.
 
07/08/14  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.696 Views

Untitledvor 0 min.
T.Rink09/08/19
E.T.04/12/18
Ernst06/22/16
KJ05/05/16
More...

Themeninformationen

this Topic has 3 subscriber:

funkheld (2x)
iF (1x)
Jörg Sellmeyer (1x)


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