Aller au contenu principal

How to test the length of a string in Workflow Designer

Commentaires

3 commentaires

  • Permanently deleted user
    Hi Roger, try sManholeID.Length()

     

    Xaml workflows use VB.Net - if you add  "VB.Net" to to a Google search, you can usually find expressions that will work for Workflow.  Eg,  "string length VB.Net" gets good Google results for this question.
    0
  • Nico Burgerhart
    And use the Intellisense feature.

     

    https://docs.geocortex.com/essentials/workflow/latest/help/Default.htm#wf/help/arguments-and-variables.htm#IntelliSense%3FTocPath%3DArguments%2520and%2520Variables%7C_____5

     

    Your expression should be something like sManholeID.Length = 6

     

     
    0
  • Permanently deleted user
    Thank you both.  I had been searching the internet for how to do this in VBScript, not VB.Net, so your tip was very helpful.  I had also not known about Intellisense.  I had definitely tried pressing Ctrl+Space, without knowing I had to enable something first.  As far as my question goes, there are two expressions that worked as Conditions:

     

    sManholeID.Length() = 6

     

    and

     

    sManholeID.Length = 6

     

    "Roj"

     

     
    0

Vous devez vous connecter pour laisser un commentaire.