• Status Assigned
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Application
  • Assigned To
    Admin
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Development
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Koda
Opened by Chris Haslam - 01.05.2011

FS#229 - Data separator char

I find it a little surprising that Data separator char is in Options but not in Generating Options. My understanding is that it is not saved with the form, so if the form was created when Options | Data separator char was (say) $ and the user later adds a ListBox where one of the items is $10, he has to recreate his form from scratch.

Thoughts?

Admin
Admin commented on 04.05.2011 07:19

User can change it in options and already created form will be generated with new char.

I don't recall exactly, why it's was decided not to include it to form-depended options set. Looks like because controlling this require Opt(...), but updating form in script will not update it.

Chris Haslam commented on 04.05.2011 14:15
Looks like because controlling this require Opt(...), but updating form in script will not update it

Am I correct in thinking that an Opt() can be anywhere in the AutoIt code?

If so, the Opt could be within #region ... #endregion block.

User can change it in options and already created form will be generated with new char

Now I am really confused! Is Data Separator Character an exception to the general rule that Options can only be changed after a form has been created by changing it in Generating Options?

To answer my own question, I:

  1. Created a form with Data Sep Char set to |
  2. Added a ComboBox with items cat|ty, dog, and horse
  3. In Options, changed Data Sep Char to *
  4. Generated code with F9
  5. GUICtrlSetData(-1, "cat|ty|dog|horse") was generated.

So changing Data Sep Char had no effect.

Admin
Admin commented on 05.05.2011 06:22
Am I correct in thinking that an Opt() can be anywhere in the AutoIt code?
If so, the Opt could be within #region ... #endregion block.

Yes, but this is not possible in current version. Currently Opts section generated once globally and not updated with Update function.

So changing Data Sep Char had no effect.

Really. It's even have not effect at all :-/

But even after this will be fixed, this will not be form-depended until it's will be possible to have Opt in GUI section.

Chris Haslam commented on 05.05.2011 23:35

Understood

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing