Before posting, and to avoid disappointment, please read the following:

  • This forum is not for 2BrightSparks to provide technical support. It's primarily for users to help other users. Do not expect 2BrightSparks to answer any question posted to this forum.
  • If you find a bug in any of our software, please submit a support ticket. It does not matter if you are using our freeware, a beta version or you haven't yet purchased the software. We want to know about any and all bugs so we can fix them as soon as possible. We usually need more information and details from you to reproduce bugs and that is better done via a support ticket and not this forum.

TStringList class (Scripting)

For technical support visit https://support.2brightsparks.com/
Post Reply
bigGuitar
Enthusiastic
Enthusiastic
Posts: 15
Joined: Sat Aug 20, 2022 1:21 pm

TStringList class (Scripting)

Post by bigGuitar »

The TStringList class is mentioned in the documentation under Script Classes, but I haven't been able to get it to work properly, has anyone else?

If you want to try to Create an object with this class, the typical 'Create' method without parameters is not accepted. Evidently this implementation requires 3 parameters. I was able to get this to compile with 3 parms added, but there is a runtime exception when calling Create, which I was able to trap using the LastExceptionMessage procedure which results with "Invalid class typecast".

I'm not sure which of the overrides is expected, or how to trick it into a form similar to the default Create option with no parms. I had assumed the (duplicate setting, bool, bool), but I'm not certain of the datatype needed for the dupIgnore setting, I tried an integer value of zero, which only allowed the compile to complete. Then again, perhaps that override is not what is expected. Let me know if anyone else has tried this, thank you!
Swapna
Expert
Expert
Posts: 1026
Joined: Mon Apr 13, 2015 6:22 am

Re: TStringList class (Scripting)

Post by Swapna »

Hi,

We have answered via your parallel support ticket.

Thank you
bigGuitar
Enthusiastic
Enthusiastic
Posts: 15
Joined: Sat Aug 20, 2022 1:21 pm

Re: TStringList class (Scripting)

Post by bigGuitar »

Thank you, the documentation under beta 10.2.58.0 release was helpful. I had been able to get the Create method to work using parameters of (Char, Char, Integer) under 10.2.49.0, but the beta release seems to now recognize some constants for the duplicates setting that were not recognized previously, so that's certainly improved!
Post Reply