Talk:Jacob OS/@comment-25128627-20141031203720/@comment-25128627-20141101192639

Here's how you do it: (assuming your mem file has /,%,<,>,,?,! separating each program name, like this: a/b%ce(f)g?h! )

C=INSTR(MEM$,"/") D=INSTR(MEM$,"%") E=INSTR(MEM$,"<") F=INSTR(MEM$,">") G=INSTR(MEM$,"(") H=INSTR(MEM$,")") I=INSTR(MEM$,"?") J=INSTR(MEM$,"!")

A1$=LEFT$(MEM$,C) A2$=MID$(MEM$,C+1,D-C-1) A3$=MID$(MEM$,D+1,E-D-1) A4$=MID$(MEM$,E+1,F-E-1) A5$=MID$(MEM$,F+1,G-F-1) A6$=MID$(MEM$,G+1,H-G-1) A7$=MID$(MEM$,H+1,I-H-1) A8$=MID$(MEM$,I+1,J-I-1)

INSTR gets the number of characters before a certain character in a string.

I'll use A2$=MID$(MEM$,C+1,D-C-1) for explaining.

Use C+1 for the start position so it does not retrieve the / character. Use D-C-1 for the number of characters, because if you just use D you would get the string "1stprogram/2ndprogram%" so you subtract C so you just get "2ndprogram%" then you subtract 1 to just get "2ndprogram".

Heres a qr code so you don't have to type it all in: