• Date

    From DesotoFireflite@VERT to All on Mon Nov 11 12:17:03 2013
    What is the proper way to pull the time into a baja file, then print it to the screen. I thought I had it, but when I compile, it always says missing string, or define a string. One day, I will understand this:( Thanks

    - CAT (n.), Furry keyboard cover.

    - C.G. Learn
    - Valhalla Home Services! - Telnet://valhalla.synchro.net
    - A Gamers Paradise - Over 100 Registered Online Game Doors!


    ---
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From Mro@VERT to DesotoFireflite on Mon Nov 11 17:17:44 2013
    Re: Date
    By: DesotoFireflite to All on Mon Nov 11 2013 12:17 pm

    What is the proper way to pull the time into a baja file, then print it to the screen. I thought I had it, but when I compile, it always says missing string, or define a string. One day, I will understand this:( Thanks


    from baja.doc :

    *TIME_STR <str_var> <int_var>
    args: dest time
    *----------------------------
    Writes to the string variable (specified as dest) the time and date stored in the integer variable specified by time. This function is the Baja equivalent
    to the standard C ctime() function. Example:

    # Display current time
    INT T
    TIME T
    TIME_STR STR T
    PRINTF "Current time: %s\r\n" STR

    Would display the current date/time similar to:

    Current time: Thu Aug 31 1995 08:34 am
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From DesotoFireflite@VERT to Mro on Mon Nov 11 19:12:48 2013
    Re: Date
    By: Mro to DesotoFireflite on Mon Nov 11 2013 05:17 pm

    <int_var>
    args: dest time
    *----------------------------
    Writes to the string variable (specified as dest) the time and date stored in the integer variable specified by time. This function is the Baja equivalent to the standard C ctime() function. Example:

    # Display current time
    INT T
    TIME T
    TIME_STR STR T
    PRINTF "Current time: %s\r\n" STR

    Thanks. I read the baja docs, but just didn't undersand the string it was asking for. At least I'm trying. Thanks for putting up with me:)


    - Gates are down, the lights are flashing, but the train isn't coming.

    - C.G. Learn
    - Valhalla Home Services! - Telnet://valhalla.synchro.net
    - A Gamers Paradise - Over 100 Registered Online Game Doors!


    ---
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From Mro@VERT to DesotoFireflite on Mon Nov 11 19:31:50 2013
    Re: Date
    By: DesotoFireflite to Mro on Mon Nov 11 2013 07:12 pm


    Thanks. I read the baja docs, but just didn't undersand the string it was asking for. At least I'm trying. Thanks for putting up with me:)


    there's also more than one way to do things. and different styles of doing
    each thing.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From DesotoFireflite@VERT to Mro on Tue Nov 12 03:07:07 2013
    Re: Date
    By: Mro to DesotoFireflite on Mon Nov 11 2013 07:31 pm

    there's also more than one way to do things. and different styles of doing each thing.

    As I look at everyones code, I am quickly learning that. My big question is, is baja still going to be supported in future releases of Sync. The reason I'm asking this is, I'm spending a godly amount of time learning this code, but would I be better off since I don't code, to learn js instead, and just let baja alone. Thanks Bud for all of your help.

    - German for virgin: Guttentight.

    - C.G. Learn
    - Valhalla Home Services! - Telnet://valhalla.synchro.net
    - A Gamers Paradise - Over 100 Registered Online Game Doors!


    ---
    þ Synchronet þ Valhalla Home Services þ USA þ http
  • From echicken@VERT to DesotoFireflite on Tue Nov 12 11:17:04 2013
    Re: Date
    By: DesotoFireflite to All on Mon Nov 11 2013 12:17:03

    What is the proper way to pull the time into a baja file, then print it to the screen. I thought I had it, but when I compile, it always says missing string, or define a string. One day, I will understand this:( Thanks

    The proper way to use Baja is to use Javascript instead.

    :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-72
  • From echicken@VERT to DesotoFireflite on Tue Nov 12 11:40:34 2013
    Re: Date
    By: DesotoFireflite to Mro on Tue Nov 12 2013 03:07:07

    As I look at everyones code, I am quickly learning that. My big question is, is baja still going to be supported in future releases of Sync. The

    As far as I know, it's around for the foreseeable future, however ..

    reason I'm asking this is, I'm spending a godly amount of time learning this code, but would I be better off since I don't code, to learn js instead, and just let baja alone. Thanks Bud for all of your help.

    If you'll be satisfied with the ability to create simple modules for your BBS, Baja is fine. If you think you'll ever want to branch out and make more complicated mods, or like the idea of gaining some knowledge that's useful outside of the BBS sphere, Javascript is the way to go.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From DesotoFireflite@VERT to echicken on Tue Nov 12 12:47:22 2013
    Re: Date
    By: echicken to DesotoFireflite on Tue Nov 12 2013 11:17 am

    The proper way to use Baja is to use Javascript instead.

    :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D

    Thanks, I needed that. LOL :), and yes, I know js is better, and that is where i'm going after I finish this one project. I can't give up when I'm this close to finishing. OH, BTY, I got the date figured out:)

    - CAT (n.), Furry keyboard cover.

    - C.G. Learn
    - Valhalla Home Services! - Telnet://valhalla.synchro.net
    - A Gamers Paradise - Over 100 Registered Online Game Doors!


    ---
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From DesotoFireflite@VERT to echicken on Tue Nov 12 12:49:44 2013
    Re: Date
    By: echicken to DesotoFireflite on Tue Nov 12 2013 11:40 am

    If you'll be satisfied with the ability to create simple modules for your BBS, Baja is fine. If you think you'll ever want to branch out and make more complicated mods, or like the idea of gaining some knowledge that's useful outside of the BBS sphere, Javascript is the way to go.

    Yea, I've decided that is the right direction. As long as I know nothing, Js is what I should pour my efforts into, guess I just wanted some reasurance. Thanks Bud.

    - CAT (n.), Furry keyboard cover.

    - C.G. Learn
    - Valhalla Home Services! - Telnet://valhalla.synchro.net
    - A Gamers Paradise - Over 100 Registered Online Game Doors!


    ---
    þ Synchronet þ Valhalla Home