Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: CNC-Steuerung on January 04, 2008, 03:50:42 PM

Title: How to get the loaded filename?
Post by: CNC-Steuerung on January 04, 2008, 03:50:42 PM
Hi,

is there any possibility to get the actual loaded filename as string in VB?

That would be a help for displaying if long pathnames does exist in your system, or for the
very nice "percent complete" function as descripted in another thread...

Thanks and regards,

Wolfram


Title: Re: How to get the loaded filename?
Post by: poppabear on January 04, 2008, 04:20:58 PM
Dim a string variable called "Filename" then set it = to your pulled in filename.
Title: Re: How to get the loaded filename?
Post by: CNC-Steuerung on January 04, 2008, 04:44:46 PM
Thanks for your fast reply,
but Ive doesnt understand it, sorry.. ???

The file is loaded and displayed. The whole file/pathinformation is displayed in
the "file" - label, placed on the screen with screen4...

regards,

Wolfram


Title: Re: How to get the loaded filename?
Post by: poppabear on January 04, 2008, 10:51:00 PM
sorry,

   You will probably have to do a C++ plugin to get the File that is loaded varible.
scott
Title: Re: How to get the loaded filename?
Post by: jogyz on June 20, 2008, 03:33:52 AM
Hello,

Function FileName()

covers name and path of the current file.  :)

Regards,
Jörg