lingo-l finding the last substring within a string

2004-03-05 Thread Mendelsohn, Michael
Hi list... I have a path... F:\All Risk Training\modules\serviceInterruption\serviceInterruption.cst ...that I want to find the last position of serviceInterruption and chop it off so that the string is F:\All Risk Training\modules\serviceInterruption\. Can the lingo keyword last accomplish

Re: lingo-l finding the last substring within a string

2004-03-05 Thread Colin Holgate
F:\All Risk Training\modules\serviceInterruption\serviceInterruption.cst ...that I want to find the last position of serviceInterruption and chop it off so that the string is F:\All Risk Training\modules\serviceInterruption\. If the cast happens to be next to the movie, you end up with the same

Re: lingo-l finding the last substring within a string

2004-03-05 Thread Warren Ockrassa
On Mar 5, 2004, at 11:04 AM, Mendelsohn, Michael wrote: F:\All Risk Training\modules\serviceInterruption\serviceInterruption.cst The itemDelimiter = \ delete the last item of... Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming

RE: lingo-l finding the last substring within a string

2004-03-05 Thread Mendelsohn, Michael
Thanks...but actually in my case, the movie isn't next to the cast. :-) I'll just have to write something weird to do it. - MM If the cast happens to be next to the movie, you end up with the same as the moviepath. The general solution of getting the folder path from a file path, would be

RE: lingo-l finding the last substring within a string

2004-03-05 Thread Colin Holgate
Thanks...but actually in my case, the movie isn't next to the cast. :-) I'll just have to write something weird to do it. I hope you read the reset of my message, which was the something weird you would have to write? [To remove yourself from this list, or to change to digest mode, go to

RE: lingo-l finding the last substring within a string

2004-03-05 Thread Thomas Higgins
F:\All Risk Training\modules\serviceInterruption\serviceInterruption.cst The itemDelimiter = \ delete the last item of... Or to see that in the new MX'04 Lingo dot-syntax: tStr = F:\All Risk Training\modules\serviceInterruption\serviceInterruption.cst _player.itemDelimiter = \ delete

RE: lingo-l finding the last substring within a string

2004-03-05 Thread Colin Holgate
F:\All Risk Training\modules\serviceInterruption\serviceInterruption.cst The itemDelimiter = \ delete the last item of... Or to see that in the new MX'04 Lingo dot-syntax: tStr = F:\All Risk Training\modules\serviceInterruption\serviceInterruption.cst _player.itemDelimiter = \ delete

RE: lingo-l finding the last substring within a string

2004-03-05 Thread Mendelsohn, Michael
Thomas: So...lastIndexOf() is in MX2004? I didn't think it actually had js methods in it. I only thought it was the *syntax* of js. That's worth a few bonus points. Colin: Forgive me, but I'm not sure what you mean by reset of the message. But here's what I did anyway, and for my purposes,

RE: lingo-l finding the last substring within a string

2004-03-05 Thread Thomas Higgins
All, Neither of those suggestions leaves you with the trailing delimiter. See my few verbose lines to see how to do it. You're right, they don't. I just wanted to show the two operations to strip the end file name off in the new Lingo and JS syntax for MX'04, I figured it was an easy exercise

RE: lingo-l finding the last substring within a string

2004-03-05 Thread Colin Holgate
Colin: Forgive me, but I'm not sure what you mean by reset of the message. I meant rest of my message, the bit that says this: oldid = the itemdelimiter the itemdelimiter = the last char of the moviepath delete the last item of filepath folderpath = filepath the itemdelimiter the itemdelimiter

RE: lingo-l finding the last substring within a string

2004-03-05 Thread Thomas Higgins
All, Thomas: So...lastIndexOf() is in MX2004? I didn't think it actually had js methods in it. I only thought it was the *syntax* of js. That's worth a few bonus points. Would I make that kind of post without checking that the syntax worked? ;P We have full-on JavaScript 1.5 core (core

RE: lingo-l finding the last substring within a string

2004-03-05 Thread roymeo
At 01:09 PM 3/5/2004, you wrote: F:\All Risk Training\modules\serviceInterruption\serviceInterruption.cst The itemDelimiter = \ delete the last item of... Or to see that in the new MX'04 Lingo dot-syntax: tStr = F:\All Risk Training\modules\serviceInterruption\serviceInterruption.cst