Zum Hauptinhalt gehen

Suche

Suche

VB script to convert a number to a letter

Kommentare

1 Kommentar

  • Avatar
    Peter Thane

    Try this

    Dim NumConv
    NumConv = Array("xxx","W","O","R","K","U","N","I","T","E","11")

    Value = Format.NamedSubStrings("TheNumber").Value

    Value = NumConv(Value)

    You will need to make the field a Visual Basic Script > Event Controlled Script and as the data is coming from a database I would suggest the OnNewRecord option from the column on the left. 

    For the second line type the Value = and then in the column on the right double click on your database field with the number in. I used a Named Data Source for my testing and so the code will be slightly different fro you.

    I hope this helps

     

    0

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