Jump to content
Neil Pate

Local variables default to write

Recommended Posts

I use locals sparingly, but in my typical use case where I really just need to use a value in more than one place (lazy yes, but not worth the effort to do it any other way) I need to read from a local rather than write to it. The default condition is to write though, so I need to change my virtually every time I need to use one. 

Am I the odd one out here?

Don't suppose there is some SuperSpecialIniKeyForDefaultLocalVariableDirection?

 

 

Edited by Neil Pate

Share this post


Link to post
Share on other sites

Create a local variable. Set it to read. Use the pointer tool to grab it and create a copy. Works on anything, not just variables.

Share this post


Link to post
Share on other sites

Yeah if you default to one you are going to upset one group of people or another.  I would guess NI's thoughts were it you wanted to read a control just use its terminal, and a developer would be more interested in writing a local variable.

If you aren't CTRL dragging yet you would be. I is a bit odd that that operation does something different than a copy paste but I like it.

Share this post


Link to post
Share on other sites

Sure I know about the CTRL-drag trick, I use it all the time. The problem is I use locals seldom, so most of the time there isn't another one to clone nearby on the BD.

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...

Important Information

By using this site, you agree to our Terms of Use.