English
Source / code snippets

Binärzähler

 

Michael
Dell

CompileMarkSeparation
Def cRB(1) Create(RadioButton,&(1),,0,0,20,20)
Def cST(1) Create(Text,%Hwnd,,&(1),20,20,20)
Declare Gl_ST&[8],Gl_RBT&[8],Gl_ZW$
Clear Gl_ST&[],Gl_RBT&[]

Proc cStuBt

    Parameters cStuBt_X&,cStuBt_Nr&
    Gl_ST&[cStuBt_Nr&]  = cST(cStuBt_X&)
    Gl_RBT&[cStuBt_Nr&] = cRB(Gl_ST&[cStuBt_Nr&])

EndProc

Proc BinView

    Parameters BV_BinIn$

    WhileLoop 0,7,1

        SetCheck Gl_RBT&[&Loop],Val(Mid$(BV_BinIn$,(&Loop + 1),1))

    EndWhile

EndProc

Cls

WhileLoop 1,8,1

    cStuBt((&Loop * 20),(&Loop - 1))
    SetCheck Gl_RBT&[(&Loop - 1)],0

EndWhile

Binärzähler (0-255)

WhileLoop 0,255,1

    Gl_ZW$ = Bin$(&Loop)
    Case (Len(Gl_ZW$) < 8): Gl_ZW$ = (MkStr$(Chr$(48),(8 - Len(Gl_ZW$))) + Gl_ZW$)
    BinView(Gl_ZW$)
    Sleep 100

EndWhile

WaitInput
End
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
06/19/08  
 




Jac
de
Lad
On take off ideas You again come.
 
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
06/19/08  
 




Michael
Dell
for the Testmodus in one electronics- CAD Program can mans need.
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
06/20/08  
 



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

4.840 Views

Untitledvor 0 min.
H.Brill09/26/24
RudiB.01/31/16

Themeninformationen

this Topic has 2 subscriber:

Michael Dell (2x)
Jac de Lad (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