How con I add Nodes to my TreeView in OL2003 Forms (VBS)

  • Thread starter Thread starter HelixX23
  • Start date Start date
H

HelixX23

Hi...
I´d like to add a treeview Element to my Outlook Form.

Can enyone give me an example...?

In VBA this wokrs fine...
 
HelixX23 said:
Hi...
I´d like to add a treeview Element to my Outlook Form.

Can enyone give me an example...?

In VBA this wokrs fine...

Assuming you already have a treeview control named "TreeView1" on your
form page named "P.1"

sub tvtest
dim pgs,tv,i
set pgs = Item.GetInspector.ModifiedFormPages
set tv = pgs("P.1").controls("TreeView1")
for i = 1 to 3 ' e.g.
tv.nodes.add "Node " & i
next ' i
end sub


More treeview info at
http://msdn.microsoft.com/library/d...us/vbcon98/html/vbconusingtreeviewcontrol.asp

Make sure to use numbers instead of vba constants (4 instead of
tvwChild). VBS does not know vba constants.


HTH, Wolfram
 
Back
Top