CAPITILIZE text

Questions, tips and tricks and techniques for scripting in Servoy

CAPITILIZE text

Postby Harjo » Sun Jun 15, 2003 11:30 pm

Is there a way to CAPITALIZE text?

For instance, I type in a field: hello
start a method on-leaving the field which results in: HELLO

Who knows?
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Jan Aleman » Mon Jun 16, 2003 1:14 am

easy.
Create a method
Click the dataprovider to the right you want to UPPERCASE
click on js lib, string
doubleclick toUpperCase
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby Harjo » Mon Jun 16, 2003 8:34 am

I must have overlooked that future.
But in my case this function does not work.
I have a field: plaats

Placed a button with the method:
plaats.toUpperCase()


If I click the button, nothing happens!?
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby maarten » Mon Jun 16, 2003 9:33 am

Did you do?

plaats = plaats.toUpperCase()
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands

Postby Harjo » Mon Jun 16, 2003 10:54 am

No! Sorry! :oops:
Thanks
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands


Return to Methods

Who is online

Users browsing this forum: No registered users and 14 guests

cron