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

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...
 
W

Wolfram Jahn

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top