[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Xy program doesn't run in NB



Carl,
I get the idea of forcing a save and then using the current date and time, but I couldn't get the code below to work. Nor do I understand it--how is the (which I take it is put into the text by the following GT) supposed to acquire any content?
I'd do it by: +TF , except that then
I'd have to, each subsequent time, find and replace for the previous
date-time stamp.
On reflection, if I'm going to go the forced-save route (not ideal: there's
the very rare csae of wanting to print out an older version of something),
it seems that the dead simple way to do that is to embed DA and TM into the
Running Header, then replace the key that has TY on it with one that does a
SA/NV before the TY.
Or maybe it should ask: do you want to save before printing? (Y/n).
OTOH, your idea of inserting Doc Info, TY-ing, deleting Doc Info, is looking better and better.
BTW, the encoding of the keyboard assignment didn't come out right: had
square brackets where angle brackets should have been.

Thanks very much for your help, Carl.
--Harry
In the meantime, here's another, quick-and-dirty way to get the last
SAve date & time into S/G 50, then print (procedure: force a SAve,
grab date and time, print):

XPLeNCODE v2.0
b-gin [UNTITLED]
XPL:[cr|lf]{<}IF{<}VA$WS{>}==1{>}[GT_]{<}SV50,{>}{<}GT50{>}[B
X_]sa[Q2_][BX_]wait[Q2_]{<}SX50,{<}VA$DAmm-dd-yyyy{>}+" "+{<}
VA$TM{>}{>}[BX_]ty[Q2_]{<}EI{>}{<}EX{>}[cr|lf][cr|lf]KBD file
:[cr|lf]nn=NOJM2,.,P,r,s,K,b,d,A,r,g,Q2x,m, ,[,I,F,[,V,A,$,W,
S,],=,=,1,],COG,T,[,S,V,5,0,CO],[,G,T,5,0,],COB,X,s,a,Q,2,B,X
,w,a,i,t,Q,2,[,S,X,5,0,CO[,V,A,$,D,A,m,m,-,d,d,-,y,y,y,y,],+,
", ,",+,[,V,A,$,T,M,],],COB,X,t,y,Q,2,[,E,I,],[,E,X,],NO[cr|l
f][cr|lf]
-nd
XPLeNCODE

--
Carl Distefano
cld@xxxxxxxx


Harry Binswanger
hb@xxxxxxxx