Spaced Out

Richmond richmondmathewson at gmail.com
Sun Sep 5 07:10:31 EDT 2010


On 09/05/2010 02:04 PM, Mark Schonewille wrote:
> Hi Richmond,
>
> You have W! instead of W1. W1 is undefined. Also, shouldn't it be W4-1 and W2+1? Have you checked that W4>  W2? I know, this is a tricky thing, struggled a lot with it myself.
>
>
>    

Yes, it should be W2 + 1, and that was me being careless copying the 
script into my e-mail client; as with 'W!'.

The script still has the same problem.
  I will keep on fiddling around; Thanks for the support.
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
>  From 15th August, we'll have time for new projects! Be the first in line and contact me now!
>
> Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce
>
> On 5 sep 2010, at 12:33, Richmond wrote:
>
>    
>> Running a detection script like this:
>>
>> on mouseUp
>>    set the useUnicode to true
>>    put the word 4 of the selectedChunk into W4
>>    put (W4 - 1) into W5
>>       get charToNum(char W5 to W4 of fld "MyGuff")
>>       put it into UNIK
>>    put the word 2 of the selectedChunk into W2
>>    put (W2 - 1) into W!
>>       get charToNumber(char W2 to W1 of fld "MyGuff")
>>       put it into UNIQ
>>    put uniEncode("The insertion point is between '") into P1
>>    put uniEncode("' and '") into P2
>>    put uniEncode("'") into P3
>>    set the unicodeText of fld "WhereAreWe" to P1&  numToChar(UNIK)&  P2&  numToChar(UNIQ)&  P3
>> end mouseUp
>>
>>
>> detects a SPACE when the insertion point is BEFORE the space, but
>>
>> does NOT detect a SPACE when the insertion point is AFTER a space.
>>      
> _______________________________________________
> 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