Register to post in forums, or Log in to your existing account
 

 Related 
Contents
AutoMapper
  #CONFIGURE
  #DESCRIBE
  #DOOR
  #FIND
  #LOCATION
  #LOOK
  #MAKEROOM
  #MAPQUERY
  #MERGE
  #MOVE
  #NODIR
  #NOMAP
  #OK
  #PORTAL
  #QUEUE
  #RECALL
  #TAG
  #TELEPORT
  #TRACK
  #UNPORTAL
  #WITHLOC
  %destroom
  %inwalk
  %lastdir
  %look
  %mapfilter
  %maplocked
  %parsemode
  %portal
  %portalenabled
  %roommode
  %walkactive
  %walkconfirm
  %walkmode
  %walkroom
  Automapper
Function Reference
  %abs
  %additem
  %addkey
  %alarm
  %alias
  %ansi
  %array
  %arrget
  %arrhigh
  %arrset
  %ascii
  %average
  %begins
  %bitand
  %bitnot
  %bitor
  %bitset
  %bitshift
  %bittest
  %bitxor
  %btncol
  %btnenable
  %btnimage
  %case
  %char
  %charcomment
  %charnotes
  %class
  %clip
  %color
  %colorname
  %colorsyntax
  %comactive
  %comcreate
  %comget
  %comset
  %concat
  %copy
  %count
  %countlist
  %crtonl
  %db
  %dbget
  %dbitems
  %dbkey
  %dbkeys
  %dblist
  %dbmax
  %dbmin
  %dbvalues
  %dde
  %ddeclose
  %ddemacro
  %ddeopen
  %ddepoke
  %defined
  %delete
  %delitem
  %delkey
  %delnitem
  %destroom
  %dice
  %diceavg
  %dicedev
  %dicemax
  %dicemin
  %doorname
  %dups
  %ends
  %eval
  %exec
  %exp
  %expand
  %expanddb
  %expandlist
  %filesize
  %find
  %float
  %format
  %getglobal
  %grep
  %gsl
  %handle
  %hexcolor
  %hexnum
  %hexstr
  %htmldecode
  %htmlencode
  %iconstate
  %if
  %insert
  %int
  %inwalk
  %isfloat
  %iskey
  %ismember
  %isnumber
  %isvalue
  %item
  %json
  %lastdir
  %left
  %leftback
  %len
  %line
  %list
  %literal
  %look
  %lower
  %mapfilter
  %maplocked
  %mapquery
  %mapvnum
  %match
  %max
  %mcp
  %min
  %mod
  %mss
  %nextdir
  %nltocr
  %norm
  %null
  %number
  %numbuttons
  %numitems
  %numkeys
  %numparam
  %numrec
  %numrooms
  %numwords
  %numzones
  %packages
  %param
  %params
  %parsemode
  %parsenumbers
  %pat
  %pathcompress
  %pathexpand
  %pathfrom
  %pathreverse
  %pick
  %pop
  %portal
  %portalenabled
  %pos
  %pref
  %priority
  %prompt
  %proper
  %push
  %query
  %quote
  %random
  %read
  %ref
  %regex
  %remove
  %repeat
  %replace
  %replaceitem
  %reversedir
  %rgb
  %right
  %rightback
  %roomcol
  %roomcom
  %roomcontents
  %roomcost
  %roomdesc
  %roomexit
  %roomflags
  %roomid
  %roomint
  %roomkey
  %roomkind
  %roomlink
  %roomload
  %roommode
  %roomname
  %roomnote
  %roomnum
  %roomportal
  %roomvnum
  %roomzone
  %round
  %section
  %setglobal
  %sort
  %sql
  %sqldb
  %sqrt
  %state
  %stdev
  %string
  %stripansi
  %stripq
  %subchar
  %subregex
  %sum
  %switch
  %threadid
  %threadname
  %time
  %trigger
  %trim
  %trimleft
  %trimright
  %upper
  %url
  %vartype
  %viewrec
  %walk
  %walkactive
  %walkconfirm
  %walkmode
  %walkroom
  %window
  %word
  %write
  %yesno
  %zonename
  %zonenum
  %zonevnum
Related Links:
  Automapper
%mapquery [[cmud_%mapquery]] 
mapquery

Syntax: %mapquery(SQLstring)

Executes the SQL query string (WHERE clause) and returns a string list of room ID numbers for the matching rooms. Spaces in the argument may be stripped if they aren't quoted.

Example:

#SHOW %mapquery("[Name] LIKE '%road%'")
displays a string list like 3|45|56|67 with the Room ID of each room that has "road" somewhere in the room name. The % character is the SQL wildcard character for Access databases.

#VAR Path %mapquery("[Name] LIKE '%road%'")
#FORALL @Path {#SHOW %roomname(%i)}
Loop through the matching records and display the name of each room in the result.

#SHOW %mapquery("Zoneid='7' AND Name='The West Road'")
The spaces around the AND keyword would be stripped if this string wasn't quoted. Use the %concat function to create more complex strings:

#SHOW %mapquery(%concat("Zoneid=",%zonenum," AND Name='The West Road'"))
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net