Not much help forthcoming around these parts: so: Diddit masen:
*on mouseUp**
** put the selectedChunk into CHK**
** put word 4 of CHK into NUMERO**
** delete char NUMERO of fld "ff"**
**end mouseUp*
muffled rude noises.
Richmond.
___
use-liveco
What is unfortunate is that these "possibilities" are not possible:
delete before the selectedText
delete after the selectedText
and THIS works ONLY when some text is selected (rather than before the
insertion point):
delete the selectedText
there seems to be no obvious way to work out what
Thanks
On 31/8/2018 9:30 pm, Paul Dupuis via use-livecode wrote:
If you want to delete the last characters by script, why not something like:
delete last char of fld X
This works, of course, if it is the last char in the field.
Or a more complex version might be
put the selectedChunk into
If you want to delete the last characters by script, why not something like:
delete last char of fld X
Or a more complex version might be
put the selectedChunk into tWhere
put word 2 of tWhere into tStart -- staring char position of the cursor
put word 4 of tWhere into tEnd -- ending char positi
Digging further . . .
I found out that the problem appearas:
1. NOT to be with LiveCode.
2. NOT to be with MacOS.
Because using a font other than my one works well.
So?
What hidden aspects of my Devawriter.ttf font are gumming up the works?
Richmond.
On 31/8/2018 6:44 pm, Richmond Mathewso
To make things more complicated:
if one has this:
put numToCodePoint(7418) after the selectedText
put numToCodePoint(7418) after the selectedText
delete the last char of fld "XYZ"
it is the target glyph that is deleted and NOT the useless square
(ie. it is NOT the last char that is deleted).