English
Forum

Done: Vb code to XProfan

 

Sato
Pinto
Hello

can someone the with VB intimate is, this small part code to XProfan konvertieren?
CompileMarkSeparation
Bedanke me in ahead

greeting
Sato
 
Sato Pinto
WIN XP Home
XPROFAN 11
07/08/09  
 



I have no idea whether the functions or correctly. "übersetzt" is because I yet never with VB program have. (schüttel)
CompileMarkSeparation
proc Docrc8

    parameters s$
    declare j&,k&,crc8&,x&
    crc8& = 0

    whileLoop len(s$)

        x& = ord(mid$(s$,&loop,1))

        whileLoop 0,7

            j& = 1 & xor(x&,crc8&)
            crc8& = abs(crc8&  2) & $FF
            x& = abs(x&  2) & $FF

            If j& <> 0

                crc8& = xor(crc8&,$8C)

            endif

        wend

    wend

    return crc8&

endproc

print Docrc8("test")
waitinput

still knows I now but (to gewisser investigation), that VBs asc and fix really ord and abs are. (nochmalschüttel)
 
07/08/09  
 




Sato
Pinto
Hello iF

class, functions fine

must me again with you thank, isn't the first time the your Help speedy ankammm.

many Regards
Sato
 
Sato Pinto
WIN XP Home
XPROFAN 11
07/08/09  
 



If to safety one byte not ausreicht, here Info on  [...] 
 
07/09/09  
 




Sato
Pinto
Hello Guest

CRC8 Checksum reicht me already, because I into Microcontroller too whom Checksum with CRC8 make

greeting
Sato
 
Sato Pinto
WIN XP Home
XPROFAN 11
07/09/09  
 



gladly happen Sato!
 
07/09/09  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.118 Views

Untitledvor 0 min.
Peter Max Müller12/11/11

Themeninformationen

this Topic has 3 subscriber:

Sato Pinto (3x)
iF (2x)
unbekannt (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