Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extracting Listbox values into Text File
Message
 
 
To
23/05/2005 11:11:40
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:
01016780
Views:
8
Thankyou cetin,

When I run the code the txt file is blank. Here is my code:
DO FORM splash

splash.list1.columnwidths="350,50,50"

splash.list1.addlistitem("Now printing generic submission")
splash.list1.addlistitem("Now attaching generic submission")
splash.list1.addlistitem("Now attaching submission")
splash.list1.addlistitem("Now attaching submission 2")

set textmerge to memvar m.contents noshow
set textmerge on
with splash.list1
 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

StrToFile(m.contents, "neiltemp.txt")
modi file neiltemp.txt
Neil
Neil Lewis
IT R&D Manager
Velmore Ltd
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform