Zum Hauptinhalt gehen

Suche

Suche

Custom Check Digit

Kommentare

1 Kommentar

  • Avatar
    Fernando Ramos Miracle

    Hello Snowdog,

     

    The only thing I see that could help to "clean it up" would be to use the "Select...Case" structure instead of the "If..Else" one. This would look as follows:

     

     

    ...
    Select Case a
        Case 0
            aa = 0
        Case 1
            aa = 2
        Case 2
            aa = 4
        Case 3
            aa = 6
        ...
        Case 9
            aa = 7
    End Select
    ...
     

     

    The problem of this code is that (as far as I can see) there no logic on the way you are specifying values to your variables. If you can find such logic you could instead use that you build a small algorithm.

     

    Regarding the scale you mention, I can confirm that the it's certainly supported by BarTender (no need to build your own protocol). Unfortunately I cannot offer more comments on the actual device, as I don't have the knowledge necessary for that. You might want to consult your reseller on that matter.

     

    Regards.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.