Moon Base Alpha Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access priviledges.

Previous Message | Next Message | Back to VBBS/VADV Script Discussion  <--  <--- Return to Home Page
   Networked Database  VBBS/VADV Script Discussion   [121 / 126]
 From   To   Subject   Date/Time 
Message   Steve Winn    razor   Checking status of user flag   May 5, 2009
 1:35 PM  

Re: Checking status of user flag

> This seems like a dumb question to me, but I can't find the answer in
> SCRIPT.DOC.  I've figured out how to turn on/off flags using the SETFLAGS
> command, but I can't figure out how to check whether a flag is on or off.
> How would I do that?

You want to use the INSTR function to search for the flag letter. Like so:

' Set x to the user flags.
LET x0 = !57
' Set y to the flag you are looking for.
LET y0 = "A"
' Use INSTR (!8) to find that flag.
IFVAL !8 = 0 GOTO NotFound
? "Flag is set"

NotFound:
' Continue on...

Steve


--
[AT2k] -- Your VBBS/VADV Support Center -- [www.at2k.org] -- [bbs.at2k.org]
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to VBBS/VADV Script Discussion  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0561 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.160505


Warning: Unknown: open(C:\Windows\TEMP\\sess_s3ukb79spn3arkg5q0m584aqs2, O_RDWR) failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0