• Writing to User database

    From Bigjoe@BLUETHR to All on Saturday, January 15, 2005 19:29:00
    I know using

    Setstr Joe Moo
    set_user_string user_string_note

    will work, how do I do the same thing but, with a (int_var)

    I'm using a int_var called code. It has a number in it. How do I set the users notes with that int_var

    Thanks

    Joe


    ---
    ■ Synchronet ■ Blue Thunder - bluethunder.dtdns.net or bluethr.synchro.net
  • From Angus Mcleod@ANJO to Bigjoe on Saturday, January 15, 2005 23:00:00
    Re: Writing to User database
    By: Bigjoe to All on Sat Jan 15 2005 19:29:00

    I know using

    Setstr Joe Moo
    set_user_string user_string_note

    will work, how do I do the same thing but, with a (int_var)

    I'm using a int_var called code. It has a number in it. How do I set the use notes with that int_var

    Convert to a string first. Example:

    COPY SomeStringVar SomeIntVar

    The COPY verb will convert integers to decimal strings if the source
    variable is an integer. If you want the string to be more complex, such
    as a string with your int_var *in* it, then try:

    SPRINTF SomeStringVar "User has visited %ld times" SomeIntVar

    which embeds trailing string_ or int_var(s) in the format string at the point(s) where the specifier(s) are.


    ---
    ■ Synchronet ■ Where we BAJA Rob into writing our modules. The ANJO BBS
  • From Bigjoe@BLUETHR to Angus Mcleod on Sunday, January 16, 2005 11:27:00
    Re: Writing to User database
    By: Angus Mcleod to Bigjoe on Sat Jan 15 2005 11:00 pm

    Thanks, That works

    Joe


    ---
    ■ Synchronet ■ Blue Thunder - bluethunder.dtdns.net or bluethr.synchro.net