[Gambas-user] Filename as string

richard terry rterry at ...1946...
Wed Feb 18 21:41:50 CET 2009


On Wed, 18 Feb 2009 11:01:48 pm FoxIII wrote:
> I have managed to sort this out now. I am using the code;
>
>   TextBox1.Text = File.Dir(Dialog.path) & "/" & File.Name(Dialog.path)
>
> But (and I don't know if I should start a new topic or not) I am curious as
> to how to run a command from gambas. For example, when you are installing a
> 'deb' file, you get a window displaying what is happening with the install
> rather than seeing it through the command line.

Again, I'd post this as part of your complete subroutine, if you are just 
trying to popup a file dialog and retrieve a path you can do this:

 If Dialog.OpenFile() Then Return
   Print Dialog.path
or Textbox1.text = Dialog.path

Richard

>
> richard terry-5 wrote:
> > On Wed, 18 Feb 2009 12:30:43 am FoxIII wrote:
> >> I am very new to Gambas (and programming in general). I am trying to
> >> retrieve a filename as string from fileview so I can display it on the
> >> screen, but do not seem to be able to manage it. I know this may sound a
> >> bit of a simple request, but for a total beginner, the help files are
> >> not entirely, well, helpful. hehe
> >
> > If you post your code to show what you are attempting and what is failing
> > we
> > can better help you.
> >
> > Regards
> >
> > Richard
> >
> >
> > -------------------------------------------------------------------------
> >----- Open Source Business Conference (OSBC), March 24-25, 2009, San
> > Francisco, CA
> > -OSBC tackles the biggest issue in open source: Open Sourcing the
> > Enterprise
> > -Strategies to boost innovation and cut costs with open source
> > participation
> > -Receive a $600 discount off the registration fee with the source code:
> > SFAD
> > http://p.sf.net/sfu/XcvMzF8H
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user






More information about the User mailing list