Skip to main content
Question

Does NetBrain Support Finding the Character Position in a String Variable

  • May 12, 2026
  • 0 replies
  • 11 views

Forum|alt.badge.img

I’m learning NetBrain.

I recently learned how to use a variable method to perform a substring operation on a variable, ex. $Stringvar1.Substring(0,2)

After discoverying that that operator worked, I tried to use a “length” method to obtain the number of characters in a string variable. Again an example is: $Stringvar1.length

This also worked.

The next thing I want to find is a function that searches a string variable for a character or substring and returns the starting postition.

The Python string methods for “find” or “index” don’t seem to function.

The NetBrain function “find” doesn’t return the search pattern in the target string only a boolean value.

Is there a function or method that will return the numerical position of character pattern in a string variable?