English
Source / code snippets

à ¶ Open Spielerei

 

CompileMarkSeparation
Eine kleine Spielerei - mit ein paar Änderungen können Daten einer Statistik aus einer Datenbank
angezeigt werden.
Horst Horn 2007
Der Text kann frei benutzt werden.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SET(DECIMALS,2)
DECLARE spalte%,zeile%,steig%,wert!
DECLARE programm$
programm$=Diagramm-Balken
----------------------------------

PROC DREI_D_BALKEN

    DECLARE spalte2%,spalte3%,zeile2%,zeile4%
    DECLARE wert1!,wert1$
    ---------------------------------
    PARAMETERS spalte1%,zeile1%,wert!
    wert1!=wert!
    wert!=(zeile1%-(wert!*25))
    spalte2%=(spalte1%+30)
    spalte3%=(spalte1%+45)
    zeile4%=(wert!-18)
    LINE spalte1%,zeile1%-spalte2%,zeile1%
    LINETO spalte3%,(zeile1%-18)
    LINE spalte1%,zeile1%-spalte1%,wert!
    LINE spalte2%,zeile1%-spalte2%,wert!
    LINE spalte3%,(zeile1%-18)-spalte3%,zeile4%
    LINE spalte1%,wert!-spalte2%,wert!
    LINETO spalte3%,zeile4%
    LINETO (spalte2%-13),zeile4%
    LINETO spalte1%,wert!
    USEBRUSH 1,rgb(0,250,200)Vorderansicht - freie Farbwahl
    FILL (spalte1%+2),(zeile1%-2),rgb(0,0,0)
    USEBRUSH 1,rgb(0,255,255)Seitenansicht - freie Farbwahl
    FILL (spalte2%+1),(zeile1%-10),rgb(0,0,0)
    USEBRUSH 1,rgb(190,200,210)oben - freie Farbwahl
    FILL (spalte1%+5),(wert!-1),rgb(0,0,0)
    wert1$=Str$(wert1!)
    TEXTCOLOR rgb(0,0,0),-1 freie Farbwahl
    UseFont ARIAL,20,0,1,0,0
    Case wert1$=0.00:wert1$= k.A.
    DrawText (spalte1%+10),(zeile4%-20),wert1$
    SLEEP 250

ENDPROC

----------------------------------
spalte%=60 freie Gestaltung
zeile%=400
steig%=55
----------------------------------
wert!=5.00 kann nach Bedartf geändert oder aus einer Datenbank eingegeben werden
----------------------------------
CLS RGB(230,230,230)
WINDOW (%MaxX/2-400),(%MaxY/2-300)-800,600
WindowTitle programm$
DREI_D_BALKEN spalte%,zeile%,wert! Jeder Aufruf erzeugt eine neue Diagramm-Säule
ADD spalte%,steig%
wert!=wert!+1
DREI_D_BALKEN spalte%,zeile%,wert!
ADD spalte%,steig%
wert!=wert!-2
DREI_D_BALKEN spalte%,zeile%,wert!
ADD spalte%,steig%
wert!=wert!+1
DREI_D_BALKEN spalte%,zeile%,wert!
ADD spalte%,steig%
wert!=wert!+1
DREI_D_BALKEN spalte%,zeile%,wert!
ADD spalte%,steig%
wert!=wert!-1.5
DREI_D_BALKEN spalte%,zeile%,wert!
ADD spalte%,steig%
wert!=wert!+7.06
DREI_D_BALKEN spalte%,zeile%,wert!
ADD spalte%,steig%
wert!=0.00
DREI_D_BALKEN spalte%,zeile%,wert!
ADD spalte%,steig%
wert!=wert!+0.78
DREI_D_BALKEN spalte%,zeile%,wert!
ADD spalte%,steig%
wert!=wert!+5
DREI_D_BALKEN spalte%,zeile%,wert!
ADD spalte%,steig%
wert!=wert!+2.65
DREI_D_BALKEN spalte%,zeile%,wert!
ADD spalte%,steig%
wert!=wert!+1
DREI_D_BALKEN spalte%,zeile%,wert!
WaitInput
END
 
06/11/07  
 



Horst! functions/Procs can not Digits begin and already not at all Operators imply!
 
06/11/07  
 




RGH
circa very To his:

Operators in Bezeichnernamen are the didn't allows. (Bislang missing but a Überprüfung.)

as long as The Procedures as command without Return Value called go, How supra in the example, functions it of course free from problems, but once You The procedure as function aufrufst, falls XProfan on The Schnauze. circa words in the Bezeichner To run, is means the Unterstrich To using: 3_D_Saeule

Greeting
Roland
 
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
06/11/07  
 



RGH
(Bislang missing but a Überprüfung.)


not integrally. xpse  bleats what the stuff holds
 
06/11/07  
 




RGH
iF
RGH
(Bislang missing but a Überprüfung.)


not integrally. xpse  bleats what the stuff holds


I speech indeed of XProfan. (That for XPSE partly others Syntaxregeln count, is eh clear. ;) )

Greeting
Roland
 
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
06/11/07  
 



RGH
I speech indeed of XProfan. (That for XPSE partly others Syntaxregeln count, is eh clear. ;) )

Greeting
Roland


Hm

I hope that I me technical not crazy - but I my for XPSE count no others (neither partly) Syntaxregeln because whom reinen XProfan-regulate wiederspricht XPSE of my opinion to in keinem drop.

there's naturally additional Opportunities which naturally Own regulate mitsich bring but the touching The Standardregeln IMHO not.

or Have I something overlooking?

So I my - if one XProfan in its Codes to reinem XProfan program - and to XProfan-regulate no Error power - then bleats too XPSE not. (Units without .def except)
 
06/11/07  
 




Nico
Madysa
How wärs simply with DreiDSaeule?
(tschuldigung, I Have yesterday time again in the Witzkiste slept...)
 
Nico Madysa
06/11/07  
 




RGH
Hello iF,
no worry: with others Syntaxregeln my I in integral erweiterte Syntaxregeln. that is XPSE comes naturally with XProfan-Syntax clear, knows but even erweiterte Möglichkeiteten.

Greeting
Roland
 
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
06/11/07  
 



The code is already a couple years old and therefore yet The Operators in the cover. now rather ?
any having gemeckert, but none has what to the beam said

RGH


...falls XProfan on The Schnauze. ...


had You, the so meant ???

10 kB
Kurzbeschreibung: XProfan falls on The Schnauze
Hochgeladen:06/11/07
Downloadcounter573
Download
 
06/11/07  
 



Horst horn
any having gemeckert, but none has what to the beam said


Tschuldigung!

means! to the beam! (incidentally XPSE has in Your new code none Error found )

Hrm - means I find The not pretty. are too no 3D-beam - are perspektivisch. *same*krich*II*merks*jenau*gg*

then disturbing me the one no Begrenzungen indicate can or. The beam not a definierten area hineinskalierbar are. *ok*now*holter*sure*whom*knüppel*

mentioned I already the The Schrägen either a, or three levels (Linienzeichnung) having which unnecessary are? *bomb*on*Berlin*I*hörse*already*approach*

but hey what should I say - there's ne crowd schlechtere Examples whom processor ineffektiv To load!

[offtopic]I mean me guard now only yet The local distance between Horst and me[/offtopic]


*verkriech*
 
06/11/07  
 



iF


then disturbing me the one no Begrenzungen indicate can or. The beam not a definierten area hineinskalierbar are. *ok*now*holter*sure*whom*knüppel*


You need only others values for slot% + row% To transfer and already standing the not 3-dimensionale beam at a from you desired place

...I had already erwähnt, I beginning august to Berlin come !

3 kB
Hochgeladen:06/11/07
Downloadcounter547
Download
 
06/11/07  
 



Horst horn
...I had already erwähnt, I beginning august to Berlin come !


 
06/11/07  
 




Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.067 Views

Themeninformationen



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