5.605 can't cut wrapped text; Editor crash when unwrapping selected text

When the long line at 34 is wrapped,and text is selected from the end of 34 to the wrap at 35, Cut doesn't work. When I try to unwrap the line with text still selected, the Editor crashes.

DIM intervals(33), dist(0 to 10)

RANDOMIZE

LET events = 30
LET trials = 41

MAT redim intervals(trials)

FOR x = 1 to 1000

MAT intervals = 0

! Place each of 30 events into 1 of 41 intervals
FOR chance = 1 to events
LET i = Int(Rnd*trials) + 1
LET intervals(i) = intervals(i) + 1
NEXT chance

! record distribution

FOR y = 1 to trials
LET k = intervals(y)
LET dist(k) = dist(k) + 1
NEXT y

! PRINT x
NEXT x

PRINT "Distribution for mean values: 30 episodes placed randomly into 41 focal samples, 1,000 simulations"
FOR d = 0 to 9
LET total = total + dist(d)
PRINT using "value = ##, N = ##,### p = .### cum p = #.### p (# or more) = #.###": d, dist(d), dist(d)/(trials * 1000), total/(trials * 1000), d, (dist(d)/(trials * 1000)) + (1 - total/(trials * 1000))
NEXT d

END

Comments

Wrapped text

Hi,

You cannot use Wrapped text when writing programs. The purpose of the wrap option is to allow users to read text files.

In version 5.605 the Text Edit window is provided by TrueCtrl library. Unfortunately it has numerous bugs. Since this version I have written my own routine that creates a Text Edit control. When I get a few moments spare I will release a new version that incorporates this new control and hopefully it will address the many issues that you have raised.

Big John