title: Function to check if a variable name is valid
body: <p>I have some code using the <code>SetVariable</code> function which takes the first parameter as a variable name created based on a variable name passed to this code.</p>
  
  <p>I'm looking for a way to check the string passed to it is a valid variable name using a function rather than using a try/catch block to trap this error.</p>
  
  <p>I know there's a function <code>IsValid</code> but this only checks if the variable is valid, not if it's a valid variable name. Does anyone have any suggestions or custom code they've used to do this?</p>
  
  <p>Thanks,</p>
  
  <p>Tom</p>