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!
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.
- If you are entitled to technical support then please submit a support ticket. Please do not post the same question to the forum and also via a support ticket. Once again, 2BrightSparks does not provide technical support via this forum.
TStringList class (Scripting)
-
- Expert
- Posts: 1023
- Joined: Mon Apr 13, 2015 6:22 am
Re: TStringList class (Scripting)
Hi,
We have answered via your parallel support ticket.
Thank you
We have answered via your parallel support ticket.
Thank you
-
- Enthusiastic
- Posts: 15
- Joined: Sat Aug 20, 2022 1:21 pm
Re: TStringList class (Scripting)
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!