Jump to content
thatguy

Special chars in vars...?

Recommended Posts

Hello all -- 

I’m noticing a very odd behavior in a script I’m writing, and have it narrowed down to a Variable-Set command.

I’ll read a row from a client table (Passwords) with Get-DataSet, then Fetch the values into sql_var.  The value appears correctly in the debugger, but the next step is a simple Variable-Set, Type Constant, Parameter @sql_var@, Variable Name: stvar.  In testing, when sql_var starts with an exclamation point, stvar is assigned -9999; when I remove the leading exclamation point, the value is assigned correctly.

Is it possible that the script is reading the exclamation point as a Not character?  Do I have to enclose the Variable-Set Parameter in single/double quotes?   Very confused.
Thanks
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...