Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List box Item
Message
 
 
To
28/08/2007 12:25:51
Mazahir Naya
Kuwait United Co.
Kuwait, Kuwait
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01250918
Message ID:
01250940
Views:
12
>hello Naomi
>i try with additemlist but it is adding only first colum with value.
>here is my code "thisform.pageframe1.page1.list2.addlistitem(thisform.pageframe1.page1.list1.value)" .if i am missing something then update me .Thnak you

Instead of the ListBox.value you need to use List property, e.g.
with thisform.pageframe1.page1
    lnIndex = .List1.ListIndex
   .list2.addlistitem(.List1.List[m.lnIndex,1],1) && To add to the first column
    .list2.addlistitem(.List1.List[m.lnIndex,2],2) && To add to the second column
endwith
From the top of my head and not tested.

Check List, ListIndex and AddListItem methods/properties in the Help.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform