Search found 6 matches

by Pauls74462
Sat Mar 05, 2011 8:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Move a label
Replies: 2
Views: 2566

Re: Move a label

Hi Pauls 74462,

make a field (label field or any other) and a button.
set the script of the button to
on mouseUp
set the blendlevel of field 1 to 100
set the top of field 1 to 5
set the left of field 1 to 65
put 100 into tCounter
repeat with i = 65 to 200
set the left of field 1 to i
set ...
by Pauls74462
Sat Mar 05, 2011 8:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Convert name to proper case
Replies: 10
Views: 7526

Re: Convert name to proper case

Hi Paul,

This puts the name "john steinbeck" in proper case in a message box?
Yes, if you don't specify a target like "put tVariable into field xyz " the output will go into the message box!

Best

Klaus


on mouseUp
put fld StudentsName into fld LabelSN
put "" into fld StudentsName

put ...
by Pauls74462
Thu Mar 03, 2011 6:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Convert name to proper case
Replies: 10
Views: 7526

Re: Convert name to proper case

Hi Pauls

You can use the upper function

on mouseUp
put UpperFirstChar("john steinbeck")
end mouseUp

function UpperFirstChar pName
put the num of words of pName into nbW
repeat with i = 1 to nbw
put upper(char 1 of word i of pName) into char 1 of word i of pName
wait 1milliseconds
end ...
by Pauls74462
Thu Mar 03, 2011 5:22 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Move a label
Replies: 2
Views: 2566

Move a label

How do U slowly move a label from (Top 5, Left 65) to (Top 5 Left 200) and change from visible off to on
by Pauls74462
Thu Mar 03, 2011 12:19 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Convert name to proper case
Replies: 10
Views: 7526

Re: Convert name to proper case

Hi Pauls

You can use the upper function

on mouseUp
put UpperFirstChar("john steinbeck")
end mouseUp

function UpperFirstChar pName
put the num of words of pName into nbW
repeat with i = 1 to nbw
put upper(char 1 of word i of pName) into char 1 of word i of pName
wait 1milliseconds
end ...
by Pauls74462
Wed Mar 02, 2011 11:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Convert name to proper case
Replies: 10
Views: 7526

Convert name to proper case

How to I convert a students name to proper case is they use all lower case?

Code: Select all

on mouseUp
   put  fld StudentsName into fld LabelSN
   put "" into fld StudentsName
   
   ( convert students name to Students Name)
   
end mouseUp