Plugin bug: TOpenDialog crashes on multiselect

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

Plugin bug: TOpenDialog crashes on multiselect

Postby pmk65 » Mon Nov 27, 2017 11:18 am

The TOpenDialog example posted by Aivars, looks like this:
Code: Select all
var opendialog = new TOpenDialog(WeBuilder);
  opendialog.InitialDir = "d:\\Temp"; //leave empty to remember last folder
  opendialog.Title = "Select something great";
  if (opendialog.Execute) {
      alert(opendialog.FileName);
  }
  delete opendialog;


According to http://www.delphibasics.co.uk/RTL.asp?Name=topendialog, it is possible to enable multiselect so that the user can select more than one file. Then the "Files" property should hold the full path plus file name of the a multiple file selection. But instead WeBuilder crashes with an error:
Undeclared identifier: "Files".

Code: Select all
var opendialog = new TOpenDialog(WeBuilder);
  opendialog.InitialDir = "d:\\Temp"; //leave empty to remember last folder
  opendialog.Title = "Select something great";
  opendialog.Options = ofAllowMultiSelect;
  if (opendialog.Execute) {
      files = opendialog.Files;
      alert(files.Count);
  }
  delete opendialog;
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 672
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Plugin bug: TOpenDialog crashes on multiselect

Postby Aivars » Tue Dec 05, 2017 7:21 pm

That's because FastScript only allows access to published properties but Files is not published for TOpenDialog. So, unfortunately, at this time multi-select won't be supported.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2374
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Plugin bug: TOpenDialog crashes on multiselect

Postby pmk65 » Tue Jan 23, 2018 3:02 pm

Aivars wrote:That's because FastScript only allows access to published properties but Files is not published for TOpenDialog. So, unfortunately, at this time multi-select won't be supported.


Would it be possible to add it in the next version?
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 672
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Plugin bug: TOpenDialog crashes on multiselect

Postby Aivars » Thu Feb 08, 2018 7:23 pm

I'll try to sneak it in specially for you, but we are really short on time. Maybe I'll even have to do it only after the beta...
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2374
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron