replaceText - correction

-= JB =- sundown at pacifier.com
Sun Jun 7 16:41:26 EDT 2009


That did it!  I was going to tell you I got an error because for some
reason I didn't change fSATUFF to fld id 1004 but you caught it
before I had a chance.

thanks to everyone for the help.

-=>JB<=-


On Jun 7, 2009, at 1:22 PM, Richmond Mathewson wrote:

> Sorry, should have written:
>
> on mouseUp
> put "id=d2b516" into oldWord
> put "id=anything" into newWord
> if fld id 1004 contains "id=d2b516" then
>   replace oldWord with newWord in fld id 1004
>   end if
> end mouseUp
>
> rather than
> on mouseUp
> put "id=d2b516" into oldWord
> put "id=anything" into newWord
> if fld id 1004 contains "id=d2b516" then
>   replace oldWord with newWord in fld "fSTUFF"
>   end if
> end mouseUp
>
> (this is because I prefer to give my fields names so that if
> I copy them onto new cards I don't have to fiddle around
> finding their new id numbers).
>
> -= JB =- wrote:
>> Below is a piece of text from the field,
>>
>> /link.php?&gr=1&id=d2b516&url=/ftt/
>>
>> I will be replacing id=d2b516 with id=anything
>>
>> -=>JB<=-
>>
>>
>> On Jun 7, 2009, at 1:00 PM, Mark Schonewille wrote:
>>
>>> JB, can you post a piece of the text you are modifying?
>>>
>>> --  
>>> Best regards,
>>>
>>> Mark Schonewille
>>>
>>> Economy-x-Talk Consulting and Software Engineering
>>> http://economy-x-talk.com
>>> Snapper Screen Recorder 2.0.1 http://snapper.economy-x-talk.com
>>>
>>> If you sent me an e-mail before 15 May and haven't got a reply  
>>> yet, please send me a reminder.
>>>
>>>
>>>
>>> On 7 jun 2009, at 21:55, -= JB =- wrote:
>>>
>>>> In the code below the reason I delete chars is because I am  
>>>> actually replacing
>>>> the same line twice but the first time that line has id= before  
>>>> it with no .jpg while
>>>> the second time it has thumbs/ before it and a .jpg after.
>>>>
>>>> Any ideas on how to accomplish this task?
>>>>
>>>> -=>JB<=-
>>>>
>>>
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your  
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list