Hey guys,
Is it possible to remove a character from a variable? I Have a variable called _time . The data in it, is in the 2:45 format, and I need to remove the ':' so I can run some calculations and sorts on it and what not.
Any help would be much appreciated .
Lewis
removing a character from a variable
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: removing a character from a variable
Check out the filter command in the dictionary.
I can think of several sillier ways to do it, like:
on mouseup
set the itemdel to ":"
put item 1 of yourData & item 2 of yourData into yourData
end mouseup
Craig Newman
I can think of several sillier ways to do it, like:
on mouseup
set the itemdel to ":"
put item 1 of yourData & item 2 of yourData into yourData
end mouseup
Craig Newman
Re: removing a character from a variable
Two more ways:
Code: Select all
replace colon with empty in _time
delete char offset(colon,_time) of _time
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 4
- Joined: Mon Dec 12, 2011 1:29 pm
Re: removing a character from a variable
Thanks a lot folks!
Lewis
Lewis