loading external files into Lists - examples or potential solutions?

Greg Osenbach gosenbach at gmail.com
Tue Mar 3 16:47:33 UTC 2009


Oh, and as a side note, I also added in a List1.Reset as well.

Best of luck,
Greg

On Tue, Mar 3, 2009 at 11:46 AM, Greg Osenbach <gosenbach at gmail.com> wrote:

> Tiffany,
>
> I have been doing this with Tab Delineated Text Files (v.s. .CSV) and it
> has been working fine for me.  There is an example in the E-Basic help file
> under the Factor.Load Method.
>
> Factor.Load (method)
>
>
>
> Syntax
>
> Factor.Load
>
> Description
>
> Loads the attribute and level data into the Factor object.
>
> Comments
>
> Factor.Load applies only when Factor.LoadMethod = ebLoadMethodEmbedded or
> ebLoadMethodFile
>
> Example
>
> 'This example sets the List to be loaded from the file,
> 'and identifies the text file to be used.
>
>
>
> List1.LoadMethod = ebLoadMethodFile
>
> List1.Filename = "MyTextFile.txt"
>
> List1.Load
>
>
>
> 'Note: To run this example in E-BasicExample.es, copy the
> 'script above and paste it into the Setup InLine object.
> 'Create MyTextFile.txt as a tab-delimited text file containing
> 'attribute header information in the working directory.
> Good Luck,
> Greg
>
>
> On Tue, Mar 3, 2009 at 11:41 AM, TN <tnsaffell at gmail.com> wrote:
>
>>
>> Hi,
>>
>> I was wondering if anybody had an example or could please point me to
>> an example of an E-Prime (v2 preferably) program which loads external
>> files into List.
>>
>> For my program, we are trying to load different variable values for
>> various variable.   I have found where you tell Eprime to load the
>> file (in List, go to "Property Page," General Tab) but I cannot seem
>> to create a file that will load.  I tried a .xml and a .csv - both
>> created by excel.  I don't think EprimV2 likes .csv and the .xml file
>> had errors.  I put in the necessary Column headers (weight, nested,
>> procedure) but it errored on the "Procedure" column.  It claimed my
>> Procedure name was not valid, even though I could see that particular
>> Trial Procedure directly under the List in the program.  I'm not
>> limited to using .xml or .csv files - that's just where my previous
>> research lead me.
>>
>> I am stuck, have looked through some online examples, EPrime's support
>> forum and have glanced through the manuals but haven't found any
>> solutions.  I would be grateful for any help or examples.
>>
>> Thanks,
>> ~Tiffany
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20090303/297eb03e/attachment.htm>


More information about the Eprime mailing list