Eliminate spaces in 'compname' - Ron Crumbaker's Web Remote Tools

In machrest.asp, in almost every Sub Btnlxx_OnClick, there is a line:

  CompName = document.frmMain.txtValue.value  or  Compuser = document.frmMain.LLUValue.value

 I changed those lines to be (respectively):

CompName = trim(document.frmMain.txtValue.value)

Compuser = trim(document.frmMain.LLUValue.value)

Kind of a minor change, I know; but when the techs would do a lookup user, and then copy/paste the computer to the computer field at the top, occasionally the highlight would pick up spaces as well as the username.  This allowed for this potential user error, and trimmed out the trailing or pre- spaces, and the buttons would work.

Published Friday, September 01, 2006 3:54 PM by skissinger

Comments