Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: kc5qoc on July 05, 2006, 11:50:57 AM
-
In writing my wizard I need to be able to select a file for processing. I could make the user fill in a textbox but then with a textbox spelling counts and if they are like me that is problametic (see what I mean).
Does anyone have a VB script to select a file ? Kind of like the one that appears when you load a G-Code file ?
I read the Enable documentation and being rusty to say the least at VB, I would sure appreciate any and all help.
Second Question: - Is there a way to extract the text associated with a UserLabelXX ?
Thanks in advance.
-
There is no way to get the text form a label... :( and there is no way to browse for a file... I spent two nights trying to get that to work about a year ago :)
Sorry Brian
-
I guess you should not tell on old hacker (in the better sense of the term) that something can not be done ;)
I have uploaded a file selection script for you to check out. It is not as nice as the one that Mach3 uses to select a g-code file but it works.
It saves the filename in the user variable area (I included the subroutine I use to get it back as well) so other routines can get to it.
The user variable area is GREAT.
Anyway - check it out and have fun :)
-
Good job!