Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 8th, 2025, 8:47 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Capitalize first letter of a string ?
PostPosted: May 12th, 2005, 2:13 pm 
Offline

Joined: May 12th, 2005, 2:03 pm
Posts: 2
Hello,

I've got a problem in Opus Professional XE. I've got string (all lowercase) from which I want only the first letter to be capitalized and the rest lowercase.

Hope that there would be a ucfirst() option, but can't find that .

Already tried with combinations like string.charAt(0).toUpperCase()' and then string.CharFromPoint(1,9).toLowerCase()' and try to combine these results together. But was wondering if there is a simple solution to do this.

Hope someone has got a solution, would help me alot !

Thanks in advance !

Sven

ps : hope I didn't miss a function like this in the help file :)


For this message Svenska has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: May 12th, 2005, 3:10 pm 
Offline
User avatar

Joined: October 25th, 2004, 10:33 am
Posts: 257
Location: UK
Opus: Pro 8
OS: Windows 7 Professional x64
System: Dell XPS15 i7x4 2.1Ghz 6GB 128GB SSD
substring() is your friend:

string = string.substring(0,1).toUpperCase() + string.substring(1)


For this message Dave Emberton has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: May 13th, 2005, 7:37 am 
Offline

Joined: May 12th, 2005, 2:03 pm
Posts: 2
Super !

Thanks alot that did the trick indeed !


For this message Svenska has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 55 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group