From admin at mfelkerco.com Mon Aug 1 00:16:02 2011
From: admin at mfelkerco.com (Admin)
Date: Sun, 31 Jul 2011 23:16:02 -0500
Subject: How do I remove part of a =?UTF-8?Q?path=3F?=
In-Reply-To:
References:
<1312167065.60222.YahooMailClassic@web161617.mail.bf1.yahoo.com>
Message-ID: <633b85e9eff084059bbbf042168a2c5b@mfelkerco.com>
Guys.
THANK YOU!!! From the bottom of my heart, Thank You. You
guys saved my tushy tonight. My app works 100% now thanks to all of your
help.
Mike
On Sun, 31 Jul 2011 20:45:24 -0700, Pete wrote:
> Yeah,
messed up the syntax, but you get the idea!
> Pete
> Molly's Revenge
>
> On Sun, Jul 31, 2011 at 7:51 PM, Michael Kann wrote:
>
>> Pete, One
little improvement is needed: replace item 4 of with empty in When I
change the itemDelimiter to something exotic I almost always forget to
change it back then wonder why those items don't obey. If you are going
to change the itemDelimiter you might try something like: put the
itemDel into old_delimiter set the itemDel to "/" -- gather some items
set the itemDel to old_delimiter Mike --- On Sun, 7/31/11, Pete wrote:
From: Pete Subject: Re: How do I remove part of a path? To: "How to use
LiveCode" Date: Sunday, July 31, 2011, 9:36 PM replace "/public.html"
with empty in . That's assuming it's always the same string you want to
get rid of. Alternatively: set the itemdelimiter to "/" replace item 4
of with empty Pete Molly's Revenge On Sun, Jul 31, 2011 at 6:58 PM,
Admin wrote:
>>
>>> Hello all, Say I have the following path:
>>
http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
[8]
>>
>>> How do I get rid of just /public_html ? Thanks. Mike
_______________________________________________ use-livecode mailing
list use-livecode at lists.runrev.com [1] Please visit this url to
subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode [2]
>>
_______________________________________________ use-livecode mailing
list use-livecode at lists.runrev.com [9] Please visit this url to
subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode [10]
_______________________________________________ use-livecode mailing
list use-livecode at lists.runrev.com [11] Please visit this url to
subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode [12]
>
>
_______________________________________________
> use-livecode mailing
list
> use-livecode at lists.runrev.com [15]
> Please visit this url to
subscribe, unsubscribe and manage your subscription preferences:
>
http://lists.runrev.com/mailman/listinfo/use-livecode [16]
Links:
------
[1] mailto:use-livecode at lists.runrev.com
[2]
http://lists.runrev.com/mailman/listinfo/use-livecode
[3]
mailto:pete at mollysrevenge.com
[4] mailto:pete at mollysrevenge.com
[5]
mailto:use-livecode at lists.runrev.com
[6]
http://www.mollysrevenge.com
[7] mailto:admin at mfelkerco.com
[8]
http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
[9]
mailto:use-livecode at lists.runrev.com
[10]
http://lists.runrev.com/mailman/listinfo/use-livecode
[11]
mailto:use-livecode at lists.runrev.com
[12]
http://lists.runrev.com/mailman/listinfo/use-livecode
[13]
http://www.mollysrevenge.com
[14] mailto:mikekann at yahoo.com
[15]
mailto:use-livecode at lists.runrev.com
[16]
http://lists.runrev.com/mailman/listinfo/use-livecode
From admin at mfelkerco.com Mon Aug 1 01:44:18 2011
From: admin at mfelkerco.com (Admin)
Date: Mon, 01 Aug 2011 00:44:18 -0500
Subject: How do I remove part of a =?UTF-8?Q?path=3F?=
In-Reply-To: <633b85e9eff084059bbbf042168a2c5b@mfelkerco.com>
References:
<1312167065.60222.YahooMailClassic@web161617.mail.bf1.yahoo.com>
<633b85e9eff084059bbbf042168a2c5b@mfelkerco.com>
Message-ID:
Hello again.
One more.
What is the correct code to run a file
(in this case, self extracting .exe files) in LiveCode.
Here are the
code I have written (with help) and it does not work:
if the platform
is "MacOS" then
open file
"http://www.campstaffusa.com/newdb/uploadpic_swt_mac.exe"
else
open
file "http://www.campstaffusa.com/newdb/uploadpic_swt.exe"
end if
if
the platform is "MacOS" then
open file
"http://www.campstaffusa.com/newdb/resume_swt_mac.exe"
else
open file
"http://www.campstaffusa.com/newdb/resume_swt.exe"
end if
Please help.
It is VITAL that the program, whether online or used as a program, load
these files properly.
Thanks again.
Mike
On Sun, 31 Jul 2011 23:16:02
-0500, Admin wrote:
> Guys.
>
> THANK YOU!!! From the bottom of my
heart, Thank You. You
> guys saved my tushy tonight. My app works 100%
now thanks to all of your
> help.
>
> Mike
>
> On Sun, 31 Jul 2011
20:45:24 -0700, Pete wrote:
>
>> Yeah,
>
> messed up the syntax, but
you get the idea!
>
>> Pete Molly's Revenge
> Pete, One
>>
>> little
improvement is needed: replace item 4 of with empty in When I change the
itemD
> omething exotic I almost always forget to change it back then
wonder why those items don't obey. If you are going to change the
itemDelimiter you might try something like: put the itemDel into
old_delimiter set the itemDel to "/" -- gather some items set the
itemDel to old_delimiter Mike --- On Sun, 7/31/11, Pete wrote: From:
Pete Subject: Re: How do I remove part of a path? To: "How to use
LiveCode" Date: Sunday, July 31, 2011, 9:36 PM replace "/public.html"
with empty in . That's assuming it's always the same string you want to
get rid of. Alternatively: set the itemdelimiter to "/" replace item 4
of with empty Pete Molly's Revenge On Sun, Jul 31, 2011 at 6:58 PM,
Admin wrote: Hello all, Say I have the following path:
>>
>>
http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
>
H
>
>> _______________________________________ use-livecode mailing
list use-livecode at lists.runrev.com [1] [1] Please visit this url to
subscribe, unsubscribe and manage your subscription preferences:
>
sts.runrev.com/mailman/listinfo/use-livecode[2]_______________________________________________
use-livecode mailing list use-livecode at lists.runrev.com [2] [9] Please
visit this url to subscribe, unsubscribe and manage your subscription
preferences: http://lists.runrev.com/mailman/listinfo/use-livecode [3]
[10] _______________________________________________ use-livecode
mailing list use-livecode at lists.runrev.com [4] [11] Please visit this
url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
[5][12]_______________________________________________ use-livecode
mailing
>
> list
> use-livecode at lists.runrev.com [6] [15] Please visit
this url to
>
> subscribe, unsubscribe and manage your subscription
preferences:http://lists.runrev.com/mailman/listinf>
se-livecode at lists.ru
> [2]
http://lists.runrev.com/mailman/listinfo/use-livecode [7] [3]
mailto:pete at mollysrevenge.com [8] [4]
mailto:use-livecode at lists.runrev.com [6] http://www.mollysrevenge.com
>
to:admin at mfelkerco.com [9] [8]
http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
[10] [9] mailto:use-livecode at lists.runrev.com [11] [10]
http://lists.runrev.com/mailman/listinfo/use-livecode [12] [11]
mailto:use-livecode at lists.runrev.com [13] [12]
http://lists.runrev.com/mailman/listinfo/use-livecode [14] [13]
http://www.mollysrevenge.com [15] [14] mailto:mikekann at yahoo.com [16]
[15] mailto:use-livecode at lists.runrev.com [17] [16]
http://lists.runrev.com/mailman/listinfo/use-livecode [18]
_______________________________________________ use-livecode mailing
list use-livecode at lists.runrev.com [19] Please visit this url to
subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode [20]
Links:
------
[1] mailto:use-livecode at lists.runrev.com
[2]
mailto:use-livecode at lists.runrev.com
[3]
http://lists.runrev.com/mailman/listinfo/use-livecode
[4]
mailto:use-livecode at lists.runrev.com
[5]
http://lists.runrev.com/mailman/listinfo/use-livecode
[6]
mailto:use-livecode at lists.runrev.com
[7]
http://lists.runrev.com/mailman/listinfo/use-livecode
[8]
mailto:pete at mollysrevenge.com
[9] mailto:admin at mfelkerco.com
[10]
http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
[11]
mailto:use-livecode at lists.runrev.com
[12]
http://lists.runrev.com/mailman/listinfo/use-livecode
[13]
mailto:use-livecode at lists.runrev.com
[14]
http://lists.runrev.com/mailman/listinfo/use-livecode
[15]
http://www.mollysrevenge.com
[16] mailto:mikekann at yahoo.com
[17]
mailto:use-livecode at lists.runrev.com
[18]
http://lists.runrev.com/mailman/listinfo/use-livecode
[19]
mailto:use-livecode at lists.runrev.com
[20]
http://lists.runrev.com/mailman/listinfo/use-livecode
From pete at mollysrevenge.com Mon Aug 1 02:03:23 2011
From: pete at mollysrevenge.com (Pete)
Date: Sun, 31 Jul 2011 23:03:23 -0700
Subject: How do I remove part of a path?
In-Reply-To: <1312167065.60222.YahooMailClassic@web161617.mail.bf1.yahoo.com>
References:
<1312167065.60222.YahooMailClassic@web161617.mail.bf1.yahoo.com>
Message-ID:
Yes, it should be:
replace "/" & item 4 of with empty in
The other way works if he's always looking to replace the same string, this
is better if the string is always in a known position but the string itself
could vary.
I have so many instances where I need to set the itemdelimiter to tab that I
wrote a handler to deal with it.
function tabItem pitem,pstring
set the itemdelim to tab
return item pitem of pstring
end tabItem
put tabItem(4,mystring) into myItem
Since itemdelim is local to the handler, no need to store it away and
restore it. Nothing fancy but probably saved me a few hundred lines of
code, and forgetting to restore the itemdelim in the calling handlers.
I wish there was a way to "put column 4 of into xyz" using the
columndelimiter setting (default tab) but I think columndelimiter only
applies to the split and combine commands for handling arrays.
Pete
Molly's Revenge
On Sun, Jul 31, 2011 at 7:51 PM, Michael Kann wrote:
> Pete,
>
> One little improvement is needed:
>
> replace item 4 of with empty in is>
>
> When I change the itemDelimiter to something exotic I almost always forget
> to change it back then wonder why those items don't obey. If you are going
> to change the itemDelimiter you might try something like:
>
> put the itemDel into old_delimiter
> set the itemDel to "/"
> -- gather some items
> set the itemDel to old_delimiter
>
> Mike
>
>
> --- On Sun, 7/31/11, Pete wrote:
>
> From: Pete
> Subject: Re: How do I remove part of a path?
> To: "How to use LiveCode"
> Date: Sunday, July 31, 2011, 9:36 PM
>
> replace "/public.html" with empty in . That's
> assuming
> it's always the same string you want to get rid of. Alternatively:
>
> set the itemdelimiter to "/"
> replace item 4 of with empty
>
> Pete
> Molly's Revenge
>
>
>
>
> On Sun, Jul 31, 2011 at 6:58 PM, Admin wrote:
>
> >
> >
> > Hello all,
> >
> > Say I have the following path:
> >
> >
> >
> >
> http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
> >
> >
> > How do I get rid of just /public_html ?
> >
> > Thanks.
> >
> > Mike
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
From andre.bisseret at wanadoo.fr Mon Aug 1 03:15:26 2011
From: andre.bisseret at wanadoo.fr (=?iso-8859-1?Q?Andr=E9_Bisseret?=)
Date: Mon, 1 Aug 2011 09:15:26 +0200
Subject: How do I remove part of a path?
In-Reply-To:
References:
<1312167065.60222.YahooMailClassic@web161617.mail.bf1.yahoo.com>
<633b85e9eff084059bbbf042168a2c5b@mfelkerco.com>
Message-ID: <8234DCEB-6CCF-4030-AEC5-ECF2B1B65733@wanadoo.fr>
Le 1 ao?t 2011 ? 07:44, Admin a ?crit :
>
>
> Hello again.
>
> One more.
>
> What is the correct code to run a file
> (in this case, self extracting .exe files) in LiveCode.
>
> Here are the
> code I have written (with help) and it does not work:
>
> if the platform
> is "MacOS" then
> open file
> "http://www.campstaffusa.com/newdb/uploadpic_swt_mac.exe"
Here above should it not be : mac.app ?
Andr?
> else
> open
> file "http://www.campstaffusa.com/newdb/uploadpic_swt.exe"
> end if
>
> if
> the platform is "MacOS" then
> open file
> "http://www.campstaffusa.com/newdb/resume_swt_mac.exe"
idem
> else
> open file
> "http://www.campstaffusa.com/newdb/resume_swt.exe"
> end if
>
> Please help.
> It is VITAL that the program, whether online or used as a program, load
> these files properly.
>
> Thanks again.
>
> Mike
>
> On Sun, 31 Jul 2011 23:16:02
> -0500, Admin wrote:
>
>> Guys.
>>
>> THANK YOU!!! From the bottom of my
> heart, Thank You. You
>> guys saved my tushy tonight. My app works 100%
> now thanks to all of your
>> help.
>>
>> Mike
>>
>> On Sun, 31 Jul 2011
> 20:45:24 -0700, Pete wrote:
>>
>>> Yeah,
>>
>> messed up the syntax, but
> you get the idea!
>>
>>> Pete Molly's Revenge
>> Pete, One
>>>
>>> little
> improvement is needed: replace item 4 of with empty in When I change the
> itemD
>> omething exotic I almost always forget to change it back then
> wonder why those items don't obey. If you are going to change the
> itemDelimiter you might try something like: put the itemDel into
> old_delimiter set the itemDel to "/" -- gather some items set the
> itemDel to old_delimiter Mike --- On Sun, 7/31/11, Pete wrote: From:
> Pete Subject: Re: How do I remove part of a path? To: "How to use
> LiveCode" Date: Sunday, July 31, 2011, 9:36 PM replace "/public.html"
> with empty in . That's assuming it's always the same string you want to
> get rid of. Alternatively: set the itemdelimiter to "/" replace item 4
> of with empty Pete Molly's Revenge On Sun, Jul 31, 2011 at 6:58 PM,
> Admin wrote: Hello all, Say I have the following path:
>>>
>>>
> http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
>>
> H
>>
>>> _______________________________________ use-livecode mailing
> list use-livecode at lists.runrev.com [1] [1] Please visit this url to
> subscribe, unsubscribe and manage your subscription preferences:
>>
> sts.runrev.com/mailman/listinfo/use-livecode[2]_______________________________________________
> use-livecode mailing list use-livecode at lists.runrev.com [2] [9] Please
> visit this url to subscribe, unsubscribe and manage your subscription
> preferences: http://lists.runrev.com/mailman/listinfo/use-livecode [3]
> [10] _______________________________________________ use-livecode
> mailing list use-livecode at lists.runrev.com [4] [11] Please visit this
> url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> [5][12]_______________________________________________ use-livecode
> mailing
>>
>> list
>> use-livecode at lists.runrev.com [6] [15] Please visit
> this url to
>>
>> subscribe, unsubscribe and manage your subscription
> preferences:http://lists.runrev.com/mailman/listinf>
> se-livecode at lists.ru
>> [2]
> http://lists.runrev.com/mailman/listinfo/use-livecode [7] [3]
> mailto:pete at mollysrevenge.com [8] [4]
> mailto:use-livecode at lists.runrev.com [6] http://www.mollysrevenge.com
>>
> to:admin at mfelkerco.com [9] [8]
> http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
> [10] [9] mailto:use-livecode at lists.runrev.com [11] [10]
> http://lists.runrev.com/mailman/listinfo/use-livecode [12] [11]
> mailto:use-livecode at lists.runrev.com [13] [12]
> http://lists.runrev.com/mailman/listinfo/use-livecode [14] [13]
> http://www.mollysrevenge.com [15] [14] mailto:mikekann at yahoo.com [16]
> [15] mailto:use-livecode at lists.runrev.com [17] [16]
> http://lists.runrev.com/mailman/listinfo/use-livecode [18]
> _______________________________________________ use-livecode mailing
> list use-livecode at lists.runrev.com [19] Please visit this url to
> subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode [20]
>
>
>
>
> Links:
> ------
> [1] mailto:use-livecode at lists.runrev.com
> [2]
> mailto:use-livecode at lists.runrev.com
> [3]
> http://lists.runrev.com/mailman/listinfo/use-livecode
> [4]
> mailto:use-livecode at lists.runrev.com
> [5]
> http://lists.runrev.com/mailman/listinfo/use-livecode
> [6]
> mailto:use-livecode at lists.runrev.com
> [7]
> http://lists.runrev.com/mailman/listinfo/use-livecode
> [8]
> mailto:pete at mollysrevenge.com
> [9] mailto:admin at mfelkerco.com
> [10]
> http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
> [11]
> mailto:use-livecode at lists.runrev.com
> [12]
> http://lists.runrev.com/mailman/listinfo/use-livecode
> [13]
> mailto:use-livecode at lists.runrev.com
> [14]
> http://lists.runrev.com/mailman/listinfo/use-livecode
> [15]
> http://www.mollysrevenge.com
> [16] mailto:mikekann at yahoo.com
> [17]
> mailto:use-livecode at lists.runrev.com
> [18]
> http://lists.runrev.com/mailman/listinfo/use-livecode
> [19]
> mailto:use-livecode at lists.runrev.com
> [20]
> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
From JRARICK at hpsk12.net Mon Aug 1 06:58:06 2011
From: JRARICK at hpsk12.net (JACK RARICK)
Date: Mon, 1 Aug 2011 06:58:06 -0400
Subject: FTP Error - Solved
Message-ID:
I wanted to thank everyone who through out suggestions to my FTP issues. Here is what I learned.
#1) Path names on servers, specifically my on-rev server, are very CaSe SeNsItIVe. I didn't know that.
#2) I spent a lot of time tearing apart Andre's FTP Commander - and discovered that any time he used a variable that was assigned from a list in a field, he deleted the last character. For instance
put the selectedtext of fld "ClipList" into clipname
delete the last character of clipname
This invisible character NEVER showed up - but caused my all kinds of problems!
#3) Logging the FTP session into a field was HUGE. Not only did I learn a lot more about FTP connections, it helped me solve my problem. (Thanks Andre!)
As always and always - thank you all. And because there is no rest for the wicked - my next question is coming in about six minutes!
Jack Rarick
Freshmen Center
Earth Science
Technology Coodinator
Varsity Men's Track & Field
Varsity Football - Offensive Line Coach, Peanut Butter Coordinator
From JRARICK at hpsk12.net Mon Aug 1 07:29:02 2011
From: JRARICK at hpsk12.net (JACK RARICK)
Date: Mon, 1 Aug 2011 07:29:02 -0400
Subject: FTP with Proxy Help
Message-ID:
I told you all I would be back!
My code works great out in the wide open 'net. But sitting behind a proxy server, it goes to heck in a hand basket quick. And at schools, it is not uncommon to have proxy servers.
My system administrator gave me the proxy setting 154.0.0.2121
Here is my line of code:
Put "ftp://cva at cva.on-rev.com:myPassword at ftp.cva.on-rev.com/public_html/holtfootball/hartland/media/Clip 001.mov" into tDestination
I've looked and looked at the dictionary - but I am very confused about where to put the port setting. HELP!
(By the way, all I have done is FTP an iMovieHD project to my on-rev server. My app allows players/coaches to watch the game film from their home - one clip at a time.)
Jack Rarick
Freshmen Center
Earth Science
Technology Coodinator
Varsity Men's Track & Field
Varsity Football - Offensive Line Coach, Peanut Butter Coordinator
From cszasz at mac.com Mon Aug 1 10:01:54 2011
From: cszasz at mac.com (Charles Szasz)
Date: Mon, 01 Aug 2011 10:01:54 -0400
Subject: lack of Mac OS X intuition: system menu
Message-ID: <63514024-2FE9-4417-BCCF-F1E232E5D7D7@mac.com>
Mark,
Please contact me off of the list.
Charles Szasz
cszasz at mac.com
From rman at free.fr Mon Aug 1 10:03:24 2011
From: rman at free.fr (Robert Mann)
Date: Mon, 1 Aug 2011 07:03:24 -0700 (PDT)
Subject: [server] using STACKS within ON-REV
Message-ID: <1312207404137-3709738.post@n4.nabble.com>
Hi all, the former thread on the subject got bugged with other
considerations, and I'd like to share results of my tests and check it out,
so that we can have a clear picture of what we can expect from these stacks.
This is the very simple test I made :: dropping an index.lc in a test folder
on my on-rev account :
CGI is on with LC
"
put "----------------------
"
start using stack "stackTest-v1.livecode" -- works ok
-- go stack "stackTest-v1.livecode" :: does not work (rest of page is
blank)
put test1() -- print a simple message :: working=YES!
put test0() -- print the number of cards of this stack :: working= NO!!
(plenty of errors)
put test2() -- print the content of a simple field :: working=NO!
(plenty of errors)
put test3() -- print the content of field "name" of card x :: working=NO!!
(plenty of errors)
-- to make sure :
put field "titre" -- throws plenty f errors
put the number of cards of this stack -- outputs 1 (instead of 3!)
?>
-> It is highly surprising for me that cards and fields are not recognized,
is that the general case?
-> Does go stack work elsewhere and improves accessibility to cards and
fields?
Thanks all,
Robert
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/server-using-STACKS-within-ON-REV-tp3709738p3709738.html
Sent from the Revolution - User mailing list archive at Nabble.com.
From cszasz at mac.com Mon Aug 1 10:12:58 2011
From: cszasz at mac.com (Charles Szasz)
Date: Mon, 01 Aug 2011 10:12:58 -0400
Subject: A question about using Arrow Keys in a Listbox
Message-ID: <6D0681AF-85A9-4261-835B-B2D99FFE1F32@mac.com>
I am using Rev. 4.0. I have a mileage app that has two list fields: From and To
In the first list field (From) I have the following script:
on mouseDown
global globalFrom
put word 2 of the clickline into globalFrom
end mouseDown
In the second list field (To), I have the following script:
on mouseDown
global globalFrom
global globalTo
put word 2 of the clickline into globalTo
if globalFrom > "" and globalTo >""
then put globalFrom,GlobalTo into theMatch
else
answer information "Please make a selection from both list boxes"
end if
put the dist["travel"] of field "data" into theMatch2
repeat for each line theMatch2 in the dist["travel"] of field "data"
if item 1 to 2 of theMatch = item 1 to 2 of theMatch2 then
put item 3 theMatch2 into field "results"
exit repeat
end if
end repeat
end mouseDown
The script works great when the user clicks on a line in the first field and then clicks in a line from the second field, which displays the mileage between two points in a field "results". I would like to implement in the second list where the user could simply use the arrow keys to go up or down and display the mileage for difference locations in the second list. How can I do that?
Charles Szasz
cszasz at mac.com
From form at nonsanity.com Mon Aug 1 10:25:17 2011
From: form at nonsanity.com (Nonsanity)
Date: Mon, 1 Aug 2011 10:25:17 -0400
Subject: How do I remove part of a path?
In-Reply-To: <1312167357.70982.YahooMailClassic@web161619.mail.bf1.yahoo.com>
References:
<1312167357.70982.YahooMailClassic@web161619.mail.bf1.yahoo.com>
Message-ID:
set itemdel to "/"
put "" into item 4 of it
There should be no double slash then. That line removes that whole item.
~ Chris Innanen
~ Nonsanity
On Sun, Jul 31, 2011 at 10:55 PM, Michael Kann wrote:
> Pete,
>
> I checked to see if the itemDelimiter trick left behind a "/" and found
> that it does.
>
>
> http://www.travelandworkusa.com//userfiles/Felker_Mike/robot_trans_noshadow.png
>
> -- notice the 2 forward slashes where there should be uno.
>
> Mike
>
>
> --- On Sun, 7/31/11, Pete wrote:
>
> From: Pete
> Subject: Re: How do I remove part of a path?
> To: "How to use LiveCode"
> Date: Sunday, July 31, 2011, 9:36 PM
>
> replace "/public.html" with empty in . That's
> assuming
> it's always the same string you want to get rid of. Alternatively:
>
> set the itemdelimiter to "/"
> replace item 4 of with empty
>
> Pete
> Molly's Revenge
>
>
>
>
> On Sun, Jul 31, 2011 at 6:58 PM, Admin wrote:
>
> >
> >
> > Hello all,
> >
> > Say I have the following path:
> >
> >
> >
> >
> http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
> >
> >
> > How do I get rid of just /public_html ?
> >
> > Thanks.
> >
> > Mike
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
From jimaultwins at yahoo.com Mon Aug 1 10:30:19 2011
From: jimaultwins at yahoo.com (Jim Ault)
Date: Mon, 1 Aug 2011 07:30:19 -0700 (PDT)
Subject: How do I remove part of a path?
In-Reply-To:
Message-ID: <1312209019.88274.YahooMailClassic@web120526.mail.ne1.yahoo.com>
If you are concered about the current itemDel setting
then you could add one line (instead of 3) before the path operation
replace "/" with the itemDel in itemsToParse
> put the itemDel into old_delimiter
> set the itemDel to "/"
> -- gather some items
> set the itemDel to old_delimiter
>
> Mike
On Sun, Jul 31, 2011 at 7:51 PM, Michael Kann wrote:
> Pete,
> One little improvement is needed:
> replace item 4 of with empty in is>
>
> When I change the itemDelimiter to something exotic I almost always forget
> to change it back then wonder why those items don't obey. If you are going
> to change the itemDelimiter you might try something like:
>
> put the itemDel into old_delimiter
> set the itemDel to "/"
> -- gather some items
> set the itemDel to old_delimiter
> Mike
> --- On Sun, 7/31/11, Pete wrote:
>
> replace "/public.html" with empty in .? That's
> assuming
> it's always the same string you want to get rid of.? Alternatively:
> set the itemdelimiter to "/"
> replace item 4 of with empty
> Pete>
>
> On Sun, Jul 31, 2011 at 6:58 PM, Admin wrote:
> > Hello all,
> > Say I have the following path:
> >
> http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
>
> > How do I get rid of just /public_html ?
From jimaultwins at yahoo.com Mon Aug 1 10:49:10 2011
From: jimaultwins at yahoo.com (Jim Ault)
Date: Mon, 1 Aug 2011 07:49:10 -0700 (PDT)
Subject: How do I remove part of a path?
In-Reply-To:
Message-ID: <1312210150.59206.YahooMailClassic@web120525.mail.ne1.yahoo.com>
Chri, which version of LC are you using?
My version 4.5 does not delete the itemDel, just the contents.
put empty into item 4 of tString --keeps the "/"
delete item 4 of tString? -- purges the slash
-- this should work to make a shorter path string
replace "/" with itemDel in tString
delete item itemOffset("public.html", tString) of tString
--purges the item
replace itemDel with "/" in tString
Jim Ault
Las Vegas
--- On Mon, 8/1/11, Nonsanity