Hallo, guten Tag.
Warum wird die Globale Variabel in XPSE bzw bei getCircP nicht erkannt ?
"[09:25:08] Objektcode: XPSE-SETPIXEL-XY.asm(213) : Error A2102: Symbol not defined : SINU"
Code
{$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
Alles anzeigen