Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extracting Listbox values into Text File
Message
From
23/05/2005 12:22:18
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:
01016801
Views:
9
This message has been marked as the solution to the initial question of the thread.
>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")

* Add this
splash.list1.ColumnCount=1


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

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
Reply
Map
View

Click here to load this message in the networking platform