Syntax 

Format[$](expr, "SymbolInfo")


Description 

Format("...", "SymbolInfo") returns a JSON object string for the ?symbolinfo request.


Parameters

Description

expr 

This string indicates what SymbolInfo is requested. It is composed of thow parts: "macroname|command". (see below)


Part

Description

macroname

This is the name of the macro. If omitted the currently executing macro is used.

command

This is either: "Global", "Global+Ids", or a JSON object string. (see below)


Command

Description

"Global"

Return the global symbol info the macro.

"Global+Ids"

Return the global symbol info the macro including all the ids. For a large macro with a lot of symbols this might be time consuming.

"{...}"

Return the symbol information using the JSON object string as the input to the ?symbolinfo request.


Example

Sub Main

    Debug.Print Format("Global+Ids", "SymbolInfo")

End Sub

--- Debug.Print output follows:

{"target":"?A1",

 "symbol_kind":"Global",

 "user_defined":true,

 "last_read_error":"",

 "known":true,

 "loaded":true,

 "revision":50,

 "hidden_len":0,

 "hidden_lines":0,

 "visible_len":93,

 "visible_lines":4,

 "imports":[],

 "members":["Main()"],

 "ids":

 {"Format":

  {"defs":[],

   "refs":[48]},

  "Main":

  {"defs":[26],

   "refs":[]}}}