peter m Newbie
Joined: 31/12/2014 Location: AustraliaPosts: 2 |
Posted: 01:11am 05 Jan 2015 |
Copy link to clipboard |
Print this post |
|
Hi All,
No doubt this is written in the documentation somewhere.
I got caught by optioning all the Func keys to save myself typing the same things over and over. by using these I was loading and then editing simple progs to learn what commands do with the hit of a single key.
I came unstuck when trying to do this with a .txt file when loading and then editing it, it treated my data which was dates and decimal times as line numbers, there by deleting any duplicate line numbers (my dates) and placing a space between the first two and the 3rd character and renumbering the rest
so I asked the guru. and he said it should work by typing edit"filename.txt"
I had tried that I thought, but with the func keys
so I typed in exacty as said and bugga me
Thanks Geoff
so the edit command when used on its own with a prog already in memory is treated differently to the edit"filename.ext"
in the following examples the bits within{} are the preprogrammed func keys.
first example:
{load "}hrs.txt" CR
{edit CR}
1 -12-14, 21.5, 24
3 -12-14, 20.25, 24.25
4 -12-14, 22.25, 24
7 -12-14, 22.5, 24.75
10 -12-14, 11, 12
11 -12-14, 22.5, 26.25
15 -12-14, 11.5, 14
16 -12-14, 12, 13
17 -12-14, 10.5, 14.5
18 -12-14, 12, 14.5
19 -12-14, 14, 15.25
20 -12-14, 21.5, 22.5
21 -11-14, 20, 22.25
22 -11-14, 23, 24.25
24 -11-14, 21, 22.75
25 -11-14, 21.25, 23.75
26 -11-14, 22.5, 24.25
27 -11-14, 22.5, 24.5
30 -12-14, 23.5, 25.25
second example:
edit"hrs.txt" CR
17-11-14, 20.5, 23
18-11-14, 21, 23.5
19-11-14, 22, 23.5
20-11-14, 20, 22.5
21-11-14, 20, 22.25
22-11-14, 23, 24.25
24-11-14, 21, 22.75
25-11-14, 21.25, 23.75
26-11-14, 8.5, 9.25
26-11-14, 22.5, 24.25
27-11-14, 21, 21.5
27-11-14, 22.5, 24.5
30-11-14, 23, 24.5
01-12-14, 21.5, 24
03-12-14, 20.25, 24.25
04-11-14, 22.5, 24
04-12-14, 22.25, 24
07-12-14, 22.5, 24.75
10-12-14, 11, 12
11-12-14, 10.5, 13.5
11-12-14, 22.5, 26.25
15-12-14, 11.5, 14
16-12-14, 12, 13
17-12-14, 10.5, 14.5
18-12-14, 12, 14.5
19-12-14, 00, 3
19-12-14, 14, 15.25
20-12-14, 1, 2.5
20-12-14, 14.25, 15.25
20-12-14, 21.5, 22.5
30-12-14, 23.5, 25.25
as you can see in the first example the data is a we bit different.
more than one way to use the "edit" command
hope this helps someone in some way
Pete |