Read ListItem Properties

Read ListItem Properties

Post by TWFydGluIE » Fri, 02 Jun 2006 00:39:02


Hi all

I develop a webpart which shows values from ListItems...

***************************************
Dim myList as splist
Dim myListItem as splistitem
Dim myValue as string

myList = myWeb.Lists("Values")

for each myListItem in myList.items
myValue = <????>

<Do Anything with the myValue variable>

next myListItem
***************************************

How can I fill the "myValue" variable with the value from the field "Test"
of the ListItem?

Can anyone help me?

Thanx
Martin
 
 
 

Read ListItem Properties

Post by S.S. Ahme » Fri, 02 Jun 2006 03:22:58

Martin,

C#:

myValue = myListItem["Test"].ToString();

--SSA
http://www.yqcomputer.com/ (All About SharePoint)

-----