On Sat, Mar 10, 2012 at 4:44 AM, Robert Herman <rpjher...@gmail.com> wrote:
> I solved Windows-specific installation issues I had with Factor

How did you end up solving these problems?

> Any tips on other functions or structures would be most appreciated. I tried
> slice, joins, the CSV library,and some others, but mainly received errors
> asking for a string, when the Inspector showed that I had a string on the
> top of the stack. How can I index the string like: string[0] or string[2:4]?
> Or some other way of achieving the end results?

How were you using the CSV library? I had no problem pasting your
example data and loading it as follows:

```
IN: scratchpad "/Users/joe/testcsv.txt" utf8 file>csv .
{
    { "Show Report" "" "" "" "" }
    { "Show Name:" "TTTTT1 " "" "" "" }
    { "Show Date:" "24/02/2012 (Fri)" "" "" "" }
    { "Show Time:" "05:00:00 PM" "" "" "" }
    { "Venue:" "DDDDDD WWWWW TTTTTTT" "" "" "" }
    {
        "Door Open:"
        "04:30:00 PM"
        ""
        "Admission Time:"
        "30 mins"
    }
    { "Announcement:" "05:00:00 PM" "" "" "" }
    {
        "Show Start:"
        "05:02:00 PM"
        ""
        "Show End:"
        "06:29:00 PM"
    }
    {
        "Door Close:"
        "06:37:00 PM"
        ""
        "Dismission Time"
        "8 mins"
    }
    { "" "  " "" "" "" }
    { "Duration:" "87 mins" "" "" "" }
    { "Ticket issued:" "1029" "" "Total Attendance" "998" }
    {
        "Remarks:"
        "1. blah blah blah blah blah blah blah blah blah."
        ""
        ""
        ""
    }
    { "Incidents:" "" "" "" "" }
}
```

With the parsed CSV it should be easy to `find` the entry starting
with "Ticket" and extract the second element.

> Thanks. I hope the post is not too long...

Not a problem. Including code and data examples in-line is perfectly
fine around here. Any bugs and solutions you come up with would be
nice to have in our bug tracker at
https://github.com/slavapestov/factor/issues .

-Joe

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to