• @-codes in a String

    From ASCII Express@VERT/BTCPHL to All on Sat Jan 25 22:35:41 2014
    I've jumped in with both feet and have started writing my own command shell. Itãhas gone well so far. I have an annoying problem though..ããI want to display a textfile based on the current message sub-board. I knowãSynchronet has this, but I need to do it myself. I thought I'd put the filenameãinto a string variable.ããstr fnãsprintf fn "%%zrooms/%s" "@SUB@"ãprintfile fnãbut it has unpredictable results. It seems to set it to the command string. Iãalso triedããset str "%zrooms/@SUB@"ããbut the @-code didn't expand. How can I do this? Thanks.ãããããããããããããããããsãã---ã þ Synchronet þ Pay no attention to that man behind the curtain!ã
  • From Digital Man@VERT to ASCII Express on Mon Jan 27 16:07:30 2014
    Re: @-codes in a Stringã By: ASCII Express to All on Sat Jan 25 2014 10:35 pmãã > I've jumped in with both feet and have started writing my own commandã > shell. It has gone well so far. I have an annoying problem though..ã >ã > I want to display a textfile based on the current message sub-board. I knowã > Synchronet has this, but I need to do it myself. I thought I'd put theã > filename into a string variable.ã >ã > str fnã > sprintf fn "%%zrooms/%s" "@SUB@"ã > printfile fnã > but it has unpredictable results. It seems to set it to the command string.ã > I also triedã >ã > set str "%zrooms/@SUB@"ã >ã > but the @-code didn't expand.ãã@-codes are used for display purposes usually and cannot be used to expand ãvalues in strings in Baja.ãã > How can I do this? Thanks.ããI'm sort of surprised, but I cannot find a way to do this in Baja. There's no ãcommand-line (%) specifier for the current sub-board internal code nor any Baja ã"system variable" for that string.ããThis is rather trivial in JavaScript however (bbs.cursub_code is a string which ãcontains the current sub-board's internal code), so perhaps you could just ãwrite a small JavaScript to display this file and exec that script form your ãBaja script.ãã digital manããSynchronet "Real Fact" #77:ãSynchronet Match Maker had at one time over 4000 profiles of men and women.ãNorco, CA WX: 66.9øF, 52.0% humidity, 5 mph SE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From ASCII Express@VERT/BTCPHL to Digital Man on Mon Jan 27 22:45:51 2014
    Re: @-codes in a Stringã By: Digital Man to ASCII Express on Mon Jan 27 2014 04:07 pmãã > I'm sort of surprised, but I cannot find a way to do this in Baja. There's nãoã > command-line (%) specifier for the current sub-board internal code nor any Bãajaã > "system variable" for that string.ãRight, I looked for that exact thing and couldn't find it. That would come inãhandy. I'll try the javascript idea. I've meant to brush up on it anyways. ãã---ã þ Synchronet þ Pay no attention to that man behind the curtain!ã