English
Source / code snippets

Farblich mark Paths

 

Michael
Wodrich
an small Protokollhilfe for the Mainwindow. The desired way becomes displayed, where space and Backslash/Slash in another colour displayed go.

therefore recognize one Problems with the Pfadbildung faster...
CompileMarkSeparation
!
kleine Debug-Hilfe

Proc PfadTest

    Parameters s$
    Declare i%, j%, c$
    Print " "
    Color 0,15
    Print "Der Pfad lautet:"
    j% = Len(s$)

    While (i% < j%)    WhileLoop ersetzt, vermeidet Probleme

        Inc i%
        c$ = Mid$(s$,i%,1)

        If c$ = Chr$(32)    Leerzeichen " "

            Color 0,10
            Print c$;

        ElseIf c$ = Chr$(92)    Backslash ""

            Color 15,12
            Print c$;

        ElseIf c$ = Chr$(47)    Slash "/"

            Color 15,9
            Print c$;
            Else    der Rest
            Color 0,15
            Print c$;

        EndIf

    EndWhile

    Color 0,15
    Print " "
    WaitKey

EndProc

Cls
PfadTest("C:Masm32\der Test\")
PfadTest($ProgDir+"PfadTest.ini")
End
 
Programmieren, das spannendste Detektivspiel der Welt.
03/03/06  
 



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

2.318 Views

Untitledvor 0 min.
Gast.081502/21/25

Themeninformationen

this Topic has 1 subscriber:

Michael Wodrich (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