Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:25:04 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  File selection dialog
Pages: 1   Go Down
Print
Author Topic: File selection dialog  (Read 1348 times)
0 Members and 2 Guests are viewing this topic.
kc5qoc
Active Member

Offline Offline

Posts: 13


View Profile
« on: July 05, 2006, 10: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.
Logged
Brian Barker
Administrator
*
Offline Offline

Posts: 3,383



View Profile
« Reply #1 on: July 05, 2006, 08:10:53 PM »

There is no way to get the text form a label... Sad and there is no way to browse for a file... I spent two nights trying to get that to work about a year ago Smiley

Sorry Brian
Logged

Fixing problems one post at a time Wink

www.newfangledsolutions.com
www.machsupport.com
kc5qoc
Active Member

Offline Offline

Posts: 13


View Profile
« Reply #2 on: August 07, 2006, 12:18:23 PM »

I guess you should not tell on old hacker (in the better sense of the term) that something can not be done  Wink

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  Smiley



* fileselect.txt (3.48 KB - downloaded 170 times.)
Logged
Brian Barker
Administrator
*
Offline Offline

Posts: 3,383



View Profile
« Reply #3 on: August 07, 2006, 01:37:47 PM »

Good job!
Logged

Fixing problems one post at a time Wink

www.newfangledsolutions.com
www.machsupport.com
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!