The program does not inherently know that it's in a file called "BP".
And it does not know it's own (value of) PROG.ID unless it can find it out 
somehow.
 
 
 
 
-----Original Message-----
From: Adrian Overs <[email protected]>
To: U2 Users List <[email protected]>
Sent: Mon, May 12, 2014 4:33 pm
Subject: Re: [U2] Read yourself


What problem are you trying to solve by doing so?
After all it's not rocket science (pardon the pun) to
OPEN "BP" TO BP.FV THEN
READ R.PROG FROM BP.FV, PROG.ID ELSE ... Whatever
END

Sent from my iPad

On 13 May 2014, at 6:54 am, Wjhonson <[email protected]> wrote:


Does anyone have a BASIC program, that will open it's own code in a variable ?
So something like this

GOSUB RETURN.A.LOCAL.FILE.AND.KEY.FOR.ME

READ THIS.PROGRAM FROM F.LOCALFILENAME, K.PROGRAMKEY ....

the program reads itself.

Does anyone have a program like that?


_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

 
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to