Dim $SO,$Re ,$R, $S, $J; Dimming variables is a good practice ; Potential issues: ; A.) No issues in small one off scripts ; B.) In a large script single letter variables can be difficult to manage $SO=SETOPTION("Explicit", "ON")$SO=SETOPTION("NoMacrosInStrings", "ON")$SO=SETOPTION("NoVarsInStrings", "ON")$SO=SETOPTION("WrapAtEOL", "ON")BREAK ON; Setting options is a good practice ; Most admins would rather not have BREAK ON for a Logon script, using If Not @LogonMode Break OnEndIf; As recently posted, used by Witto would appear to be a good practice as well ; Semi personal preference but single quotes ' would go within double quotes " ; My own preference has been to now use the single for most scripting ; However again this is not necessarilly a Best Practice more so than a preference ; Knowing that single within double is the key point to remeber when coding more ; complex scripts where needed. $R = ReadValue("HKCU\Software\Golfing","Round1") $S = Split($R,"|") $J = Join($S," ") ; Using CHR(20) or similar as needed is another option/choice when dealing with complex scripting
Generated in 0.076 seconds in which 0.027 seconds were spent on a total of 13 queries. Zlib compression enabled.
") !=-1) { tempah=tempah.substring(tempah.indexOf("")+5,tempah.indexOf("")); codes[i].innerHTML="" + dotag(tempah.substring()) + ""; } } //var pres = document.getElementsByTagName("pre"); //for (var i=0, maxi = pres.length; i < maxi; i++) { // var tempah = pres[i].innerHTML; // if (tempah.indexOf("[postprep") !=-1) { // tempah=tempah.substring((tempah.indexOf("]",tempah.indexOf("[postprep"))+1)); // pres[i].innerHTML=dotag(tempah); // } //} function ytag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = codes[which_one].innerHTML; codes[which_one].innerHTML = "" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; } function ttag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = ""; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; }
")+5,tempah.indexOf("
" + dotag(tempah.substring()) + "
" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + "
"),thisone.indexOf("
"; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + "