• Baja Command To Campare.

    From DesotoFireflite@VERT/VALHALLA to All on Thu Dec 14 05:56:55 2017
    Need some help on a baja compare statement. I want to compare a currentãusers name (Handle) with the last entry of a file im keeping created byãbaja.ããI'll use me as an exampleããWhat I want is if I was the last entry "Desotofireflite" in the log fileãcalled call.dat, I want it to do nothing, but if I wasn't the last entry inãthe call.dat, I want it to write to the call.dat my name. My problems is Iãdon't know how to compare a handle to the last entry of a file. My guessãwould beããCOMPARE_ARS Handle c:\sbbs\data\call.datãIf TrueãGoto endãend_ifããFOPEN FILE O_WRONLY|O_CREAT|O_APPEND "%Jcalls.dat"ãã:endããSysOp: C.G. Learn, AKA: DesotoFirefliteãValhalla Home Services! - (Synchronet) - bbs.valhallabbs.comãValhalla II! - (GAP) - bbs.valhallabbs.com:24ãA Gamers Paradise - Over 150 Registered Online Game Doors!ããPlay Trade Wars Between 10 Other BBS's On Valhalla's Trade Wars Game Server!ããFeaturing Legion, A New RPG, Available On Both Systems!ãã--- A true friend knows who you are... But likes you anyway.ã þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.netã
  • From Digital Man@VERT to DesotoFireflite on Thu Dec 14 09:17:34 2017
    Re: Baja Command To Campare.ã By: DesotoFireflite to All on Thu Dec 14 2017 05:56 amãã > Need some help on a baja compare statement. I want to compare a currentã > users name (Handle) with the last entry of a file im keeping created byã > baja.ã >ã > I'll use me as an exampleã >ã > What I want is if I was the last entry "Desotofireflite" in the log fileã > called call.dat, I want it to do nothing, but if I wasn't the last entry inã > the call.dat, I want it to write to the call.dat my name. My problems is Iã > don't know how to compare a handle to the last entry of a file. My guessã > would beã >ã > COMPARE_ARS Handle c:\sbbs\data\call.datã > If Trueã > Goto endã > end_ifã >ã > FOPEN FILE O_WRONLY|O_CREAT|O_APPEND "%Jcalls.dat"ã >ã > :endããCOMPARE_ARS is for comparing the current user against a list of accessãrequirements (not a file), so not the right function to call.ããCOMPARE is probably what you want. So, FOPEN, FREAD, COMPARE the result againstã_USERON.ALIAS (a global variable), FWRITE to add it to the file. That's theãbasics anyway. I think echicken already gave you a working example in the otherãsub.ãã digital manããSynchronet/BBS Terminology Definition #59:ãXPDEV = Cross-platform DevelopmentãNorco, CA WX: 73.3øF, 12.0% humidity, 12 mph S wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From DesotoFireflite@VERT/VALHALLA to Digital Man on Thu Dec 14 15:36:53 2017
    Re: Baja Command To Campare.ã By: Digital Man to DesotoFireflite on Thu Dec 14 2017 09:17 amãã >> COMPARE_ARS Handle c:\sbbs\data\call.datã >> If Trueã >> Goto endã >> end_ifãã >> FOPEN FILE O_WRONLY|O_CREAT|O_APPEND "%Jcalls.dat"ã >> :endã DM> COMPARE_ARS is for comparing the current user against a list of accessã DM> requirements (not a file), so not the right function to call.ãã DM> COMPARE is probably what you want. So, FOPEN, FREAD, COMPARE the resultã DM> against _USERON.ALIAS (a global variable), FWRITE to add it to the file.ã DM> That's the basics anyway. I think echicken already gave you a workingã DM> example in the other sub.ããI knew it was wrong (Kinda), but it helped me show what I was thinking. Theãbigist problem I had was trying to figure out how to open the file so I couldãcompare it to the _USERON.ALIAS. yes, echicken helped me very much, and now Iãthink I have enough to incorporate it into my script I've been updating throughãthe years. Everytime I think I've mastered baja, something like this comesãalong and I get humbled very quick :) If it wasn't for you, echicken, nightfox,ãand mro, I'd never get anything in baja or js fixed. You guys have always comeãthrough for me when I need help, and I really appreciate it. ããSysOp: C.G. Learn, AKA: DesotoFirefliteãValhalla Home Services! - (Synchronet) - bbs.valhallabbs.comãValhalla II! - (GAP) - bbs.valhallabbs.com:24ãA Gamers Paradise - Over 150 Registered Online Game Doors!ããPlay Trade Wars Between 10 Other BBS's On Valhalla's Trade Wars Game Server!ããFeaturing Legion, A New RPG, Available On Both Systems!ãã--- FART(n): An audio test of one's waste-disposal system.ã þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.netã