mwc
mwc
CC#
Created by mwc on 1/16/2025 in #help
Regex to match on full number only
Thanks. I was overthinking this, and trying to be smart, but sometimes KISS should be applied 🙂
21 replies
CC#
Created by mwc on 1/16/2025 in #help
Regex to match on full number only
Like that, but there may be duplicates, however I can handle that
21 replies
CC#
Created by mwc on 1/16/2025 in #help
Regex to match on full number only
The other option is I could do two seperate text searches for A and B
21 replies
CC#
Created by mwc on 1/16/2025 in #help
Regex to match on full number only
I have a List of a class that has a property containing the value. I need to be able to search that list, based on the value.
21 replies
CC#
Created by mwc on 1/16/2025 in #help
Regex to match on full number only
The values are part of a more detailed class, so I need to find the corresponding objects
21 replies
CC#
Created by mwc on 1/16/2025 in #help
Regex to match on full number only
Yes.
21 replies
CC#
Created by mwc on 1/16/2025 in #help
Regex to match on full number only
Yes. Either one or two digit numbers, followed by a single letter
21 replies
CC#
Created by mwc on 1/16/2025 in #help
Regex to match on full number only
The application is I have a list of hardware inputs that have an A and B channel. So I want to able to search for a specific channel number, and return the corresponding inputs.
21 replies
CC#
Created by mwc on 1/16/2025 in #help
Regex to match on full number only
Yes. Part of my problem is I'm not entirely sure on the correct terms to use when trying to search for info
21 replies
CC#
Created by mwc on 1/3/2025 in #help
Loading XML results in list longer than XML
Anyway, thanks for the help. Sometimes you just need a distraction to find the real problem.
35 replies
CC#
Created by mwc on 1/3/2025 in #help
Loading XML results in list longer than XML
I'll add converting to JSON to the todo list
35 replies
CC#
Created by mwc on 1/3/2025 in #help
Loading XML results in list longer than XML
Excellent. I know this project contains a couple basic custom classes, just to allow me to save what could be done in dictionaries
35 replies
CC#
Created by mwc on 1/3/2025 in #help
Loading XML results in list longer than XML
Does JSON let you serialize dictionaries?
35 replies
CC#
Created by mwc on 1/3/2025 in #help
Loading XML results in list longer than XML
I can't remember why I chose XML for this, as it's been an ongoing project for several years now, but how many changes would be needed to use JSON instead?
35 replies
CC#
Created by mwc on 1/3/2025 in #help
Loading XML results in list longer than XML
It's also made me realise I've not tidied up the parent class, and there is another list being saved there, that shouldn't be.
35 replies
CC#
Created by mwc on 1/3/2025 in #help
Loading XML results in list longer than XML
However, when the 'parent' class is loaded, this class also gets loaded as part of the parent, and in some of the code I was still referencing the parent , so the values have been getting added and saved as part of the parent class.
35 replies
CC#
Created by mwc on 1/3/2025 in #help
Loading XML results in list longer than XML
I changed the code from this particular class being saved as part of a 'parent' class, to this class being saved separately, so you can have different versions of this class.
35 replies
CC#
Created by mwc on 1/3/2025 in #help
Loading XML results in list longer than XML
Just figured it out
35 replies
CC#
Created by mwc on 1/3/2025 in #help
Loading XML results in list longer than XML
I have just tried renaming the List, and now no values get loaded from the XML
35 replies
CC#
Created by mwc on 1/3/2025 in #help
Loading XML results in list longer than XML
It is on GitHub, but it uses an external .Net along with various other files, so isn't a straight forward compile
35 replies