11-03-2022 04:20 AM
Hi,
how could I grab the text highlighted with yellow in the picture below?
Thx.
Solved! Go to Solution.
11-03-2022 04:57 AM
You should know the data type of the variant and convert from Variant to data.
11-03-2022 05:47 AM
Please dont troll away my question by writing completely irrelevant answers, even if that looks tempting to you. Thanks.
11-03-2022 06:06 AM - edited 11-03-2022 06:06 AM
It may happen to misunderstand a question (it happened many times to me), please don't be so rude. We are all volunteers.
Now, concerning your question, you can take a look at the Get Type Information vi, in the Data Type Parsing palette (subpalette of the Variant palette). Not exactly what you are asking, but I hope not too far...
11-03-2022 06:18 AM
I don't know of a way to get the type text from the Variant indicator (scripting possibly?), but you could use the Get Type Information VI from the Data Type Parsing palette to identify the data type then generate your own text dependent on the type.
Andy
11-03-2022 06:50 AM
11-03-2022 06:52 AM
@1984 wrote:
Please dont troll away my question by writing completely irrelevant answers, even if that looks tempting to you. Thanks
Nothing tempted to answer, my reply was completely based on body of your post. i failed to refer your Subject.
Thanks for letting me know that my answer not satisfied your question.
11-03-2022 07:02 AM
I didnt want to be rude, but if I'm asking about the time then receiving an answer about the weather is not relevant.
I'm aware of the Get Type Information VI but that's not the same as if eg: you convert a cluster to a variant then the Type output enum only says "cluster" and doesnt tell anything about the structure of the cluster. Same with arrays. It doesnt tell you if its an I32, or a U8 array it simply returns "array". Not to mention any more complex data structures.
11-03-2022 07:12 AM
@PalanivelThiruvenkadam wrote:
my reply was completely based on body of your post. i failed to refer your Subject.
Uhm... No. Your answer had nothing to do with the body of my post as my question was super clear: how can I grab text highlighted in yellow? Your answer had nothing to do with grabbing the text highlighted in yellow. If you dont know the answer thats fine (me neither, thats why I've asked), but then you should not respond.
11-03-2022 07:30 AM
Explore the Data Type Parsing palette and you will find VIs for getting information on arrays, clusters, numerics etc.