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
mcook75  
#1 Posted : Wednesday, December 9, 2020 8:19:43 PM(UTC)
mcook75

Rank: Member

Groups: Registered
Joined: 10/21/2020(UTC)
Posts: 17
United Kingdom
Location: Bulkington

Thanks: 5 times
So, all i'm trying to do is remove the first 5 characters from some text! I know that;

Quote:
CT1.remove(CT1.Length -5)


will remove text from the end (CT1 being the variable), but I just can't figure out how to do it the other side! I've looked at VBScript help and tutorials (places like: www.w3schools.com), but cannot seem to get what should be an easy script to work :D

any help is appreciated!
doggy  
#2 Posted : Wednesday, December 9, 2020 8:29:04 PM(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)
Do not look for vb examples but vb.net examples !
thanks 1 user thanked doggy for this useful post.
mcook75 on 12/9/2020(UTC)
mcook75  
#3 Posted : Wednesday, December 9, 2020 8:32:58 PM(UTC)
mcook75

Rank: Member

Groups: Registered
Joined: 10/21/2020(UTC)
Posts: 17
United Kingdom
Location: Bulkington

Thanks: 5 times
it's as a string to drop into a title

simple really, i just want to remote the "Call " from the callers, so I can just have their name!

I'll look for vb.net that may help me with other scripting issues :D
doggy  
#4 Posted : Wednesday, December 9, 2020 8:36:45 PM(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)
there is an example on how to get a caller name script in the "scripting for dummies" post !!

The helpfiles do specify it is vb.net !

also
string.Substring(0, string.Length - 5))
thanks 1 user thanked doggy for this useful post.
mcook75 on 12/9/2020(UTC)
mcook75  
#5 Posted : Wednesday, December 9, 2020 8:38:07 PM(UTC)
mcook75

Rank: Member

Groups: Registered
Joined: 10/21/2020(UTC)
Posts: 17
United Kingdom
Location: Bulkington

Thanks: 5 times
Originally Posted by: doggy Go to Quoted Post
Do not look for vb examples but vb.net examples !


Yep that helped a LOT!! haha

sorted!

Quote:
CT2 = CT1.replace("Call ", "")



I will tattoo vb.net onto my right arm lol!
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.