Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 00:32 28 Apr 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MM trap for the newbie..ie me

Author Message
peter m
Newbie

Joined: 31/12/2014
Location: Australia
Posts: 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
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9063
Posted: 01:15am 05 Jan 2015
Copy link to clipboard 
Print this post

Ahhhhh yes.

The MM thinks it is being helpful, you see, with the reformatting on your first example.

As with most things computer-based, that is not necessarily always the case!

Welcome to the forums.
Smoke makes things work. When the smoke gets out, it stops!
 
peter m
Newbie

Joined: 31/12/2014
Location: Australia
Posts: 2
Posted: 08:33pm 05 Jan 2015
Copy link to clipboard 
Print this post

Hi Grogster,

Thanks

Yes it was being rather helpful. Just not what I wanted help with.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024