Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extracting Listbox values into Text File
Message
From
23/05/2005 11:00:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01016750
Message ID:
01016764
Views:
7
>I have a listbox which has been populated by using the Addlistitem. Is there anyway I can programmatically extract all the items that have been added into a text file and then email?
>
>Many Thanks

Neil,
set textmerge to memvar m.contents noshow
set textmerge on
with myListBox
 for rows=1 to .ListCount
  for cols=1 to .ColumnCount
  \\<<.List(m.rows,m.cols)>>
    if cols<.ColumnCount
    \\,
    endif
  endfor
  \
 endfor
endwith
set textmerge to
set textmerge off
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform