logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
barkley  
#1 Posted : Thursday, June 29, 2023 5:59:58 AM(UTC)
barkley

Rank: Member

Groups: Registered
Joined: 4/19/2023(UTC)
Posts: 14
Italy
Location: Cortina

Hello, I tried to find out the topic in the forum because I'm sure somebody already asked for that but I'm not able to make a good search about that. Please let me know if I can find this topic somewhere or...

In case nobody asked before, in a JSON data source I have in one column the First Name of a person and in the second column his Family Name.
Since, of course, names can have different lenghts, is there any way to put the two test boxes one after the other and avoid having a fixed space in between?

Just to make a stupid example if in row 1 I have "Joe" as first name and "Springfield" as family name and in row 2 i have "Alexander" as first name and "Mayweather" as family name, is there any solution to have as a result "Joe Springfield" and "Alexander Mayweather" and not "Joe-space-space-space-space-space-space....Springfield"?

Thanks
doggy  
#2 Posted : Thursday, June 29, 2023 6:30:13 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,216
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: barkley Go to Quoted Post
Hello, I tried to find out the topic in the forum because I'm sure somebody already asked for that but I'm not able to make a good search about that. Please let me know if I can find this topic somewhere or...

In case nobody asked before, in a JSON data source I have in one column the First Name of a person and in the second column his Family Name.
Since, of course, names can have different lenghts, is there any way to put the two test boxes one after the other and avoid having a fixed space in between?

Just to make a stupid example if in row 1 I have "Joe" as first name and "Springfield" as family name and in row 2 i have "Alexander" as first name and "Mayweather" as family name, is there any solution to have as a result "Joe Springfield" and "Alexander Mayweather" and not "Joe-space-space-space-space-space-space....Springfield"?

Thanks


Has been asked at some point somewhere before ;-)

You can not directly but a script can do it: have 2 invisible textboxes linked to the firstname and familyname , have the script read the content of both and combine them as one ( sprinkled with a bit of vb.net code to format things correclty) and send it to your visible textbox

this post should get you going https://forums.vmix.com/...86-Scripting-for-Dummies
barkley  
#3 Posted : Friday, June 30, 2023 5:08:53 PM(UTC)
barkley

Rank: Member

Groups: Registered
Joined: 4/19/2023(UTC)
Posts: 14
Italy
Location: Cortina

Originally Posted by: doggy Go to Quoted Post
Originally Posted by: barkley Go to Quoted Post
Hello, I tried to find out the topic in the forum because I'm sure somebody already asked for that but I'm not able to make a good search about that. Please let me know if I can find this topic somewhere or...

In case nobody asked before, in a JSON data source I have in one column the First Name of a person and in the second column his Family Name.
Since, of course, names can have different lenghts, is there any way to put the two test boxes one after the other and avoid having a fixed space in between?

Just to make a stupid example if in row 1 I have "Joe" as first name and "Springfield" as family name and in row 2 i have "Alexander" as first name and "Mayweather" as family name, is there any solution to have as a result "Joe Springfield" and "Alexander Mayweather" and not "Joe-space-space-space-space-space-space....Springfield"?

Thanks


Has been asked at some point somewhere before ;-)

You can not directly but a script can do it: have 2 invisible textboxes linked to the firstname and familyname , have the script read the content of both and combine them as one ( sprinkled with a bit of vb.net code to format things correclty) and send it to your visible textbox

this post should get you going https://forums.vmix.com/...86-Scripting-for-Dummies


yep I was pretty sure it was a matter of scripts.. thanks Doggy
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.