@jmay1 wrote:
.... getstring won't allow me to start with a space. I am using the argument 'T' to let me use spaces, but it just won't let me start with a space.
Anyone know how?
[Resurrecting an old thread, but it was exactly what I was Searching for.]
I am finding the same problem in 2015 with dynamic entry out in the drawing by the crosshairs. It won't allow a single space [which is what I have designated to mean "none"], nor will it keep either leading or trailing spaces [it does keep the rest], though it will allow internal spaces within the string. If I go down to the Command: line, it works fine, even if I just move the cursor there without actually picking in it -- it's only by the crosshairs out in the drawing that it doesn't work.
The workaround is to turn Dynamic Prompts off [DYNPROMPT System Variable = 0], even if only for the duration of the (getstring) function. Then what's typed goes in at the Command: line [without needing the cursor moved there first], instead of out there in the Dynamic spot, and all works as expected. [Turning DYNMODE off works, too, but that turns off more aspects than needed for this issue.]
It should work as expected regardless of where you enter the string, so I consider this a bug, but until they fix it, there is at least a way to get around the problem.