Is there a VBS function that will allow me to print a string in a static space. Similar to QBasic's SPACE$ or PRINT USING function. My work-around is the below function (may help clarify things).
This begs another question. Is there a way to pass only the necessary arugments to a function. Similar to PHP
function definition:
-Geates
Code:
function strSpace (str, intLength)
if (intLength <> -1) then
if (len(str) > intLength) then
str = left(str, intLength)
else
do until (len(str) = intLength) : str = str & " " : loop
end if
end if
strSpace = str
end function
This begs another question. Is there a way to pass only the necessary arugments to a function. Similar to PHP
function definition:
Code:
function myFunc(arg1, arg2 = false)
-Geates