Skip to main content

Buffer Tool in HTML5 - user-defined distance

Comments

1 comment

  • Permanently deleted user

    Found a solution to my own problem -

    The issue is that Workflow often gives you a an error when you have a string variable that gets treated as a number somewhere, and visa versa.  In this particular case the BufferTask requires the distance paramter to be 'double' data type.

    If you create a variable that is the result of a user-entered value for your buffer distance, you must create it as a string, then convert it to double in the BufferTask distance input.  

    So if you call your variable 'buffdist' that is the user-entered buffer distance captured through a form/combobox or textbox, in the buffertask you can use that variable in the 'distance' parameter IF you write as so:   CDbl(bufferdist)

    I'm assuming the CDbl means 'convert to double' - not sure if the equivalent works for Int32 (CInt or similar).

    Probably something many knew already but it is very helpful as Workflow is picky about string-to-number conversions.

    0

Please sign in to leave a comment.