Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!hplabs!well!tswift From: tswift@well.sf.ca.us (Theodore John Swift) Newsgroups: comp.sys.tandy Subject: Re: Power on/off function in Tandy 200 Basic? Message-ID: <24908@well.sf.ca.us> Date: 21 May 91 02:36:08 GMT References: <24800@well.sf.ca.us> <22728@shlump.lkg.dec.com> Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 24 I had this problem with the POWER function in Tandy 200 BASIC: (crucial details deleted) > >POWER "hh:mm:ss","mm/dd/yy", "BASIC program" > >20 POWER "19:I:00", "05/14/91", FOO.BA 'this being 7:30 on tuesday 14 May then cameronjames@snoc01.enet.dec.com (James Cameron) suggested: > Ted, > Try POWER "19:"+RIGHT$(STR$(I+100),2)+":00","05/14/91",FOO.BA and, hot damn: it worked! Or at least, it ran and beeped. Thanks, James! The crucial part was to add the RIGHT$(string,2) part. I had tried simply POWER "19:"+STR$(I)+":00","05/14/91", FOO.BA which doesn't work. I also found that it was important to make it "FOO.BA", in quotes, since POWER is looking for a string. Now we'll see if it can be made to happen repetatively under program control. Stay tuned. -- ---------------------- Ted Swift tswift@well.sf.ca.us "You bally well are informed, Jeeves! Do you know everything?" "I don't know, sir" ~P.G. Wodehouse