[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question re: hashnums - Problem Solved



PureBytes Links

Trading Reference Links

After a little more thought answered my own question - headers should not
have quotes around it - took out the quotes and read worked fine.

-----Original Message-----
From: Peter Gibson <Peter_Gibson@xxxxxxxxxxxxxx>
To: omega-list@xxxxxxxxxx <omega-list@xxxxxxxxxx>
Date: November 6, 1998 10:11 AM
Subject: question re: hashnums


>I have a question re: hashnums product.  Their support is great but its
>Saturday in Austrailia so I thought I'd try the list in case anyone has
used
>their OpenReadCSV and readNextCSV commands.
>
>I am attempting to read a .CSV file in the following format:
>
>"Date1","BBR","Count"
>871231,0,92
>880101,0.5,0
>880102,0.5,0
>880103,0.5,0
>880104,1,92
>880105,0,92
>
>I am using the following commands:
>
>Vars: FileDate(0),
>  test1(0),
>  test2(0),
>  BBR0(0),
>  Count(0);
>
>If CurrentBar=2 then begin
>     DefineDllFunc:"c:\omega\prog\hashnums.dll",FLOAT,"getAT",LPSTR,LPSTR;
>
>DefineDllFunc:"c:\omega\prog\hashnums.dll",INT,"openReadCSV",LPSTR,LPSTR;
>     DefineDllFunc:"c:\omega\prog\hashnums.dll",INT,"readNextCSV",LPSTR;
>     test1=openReadCSV("my data","c:\omega\prog\bbr.csv");
>end;
>
>If currentBar>2 and Date<961231 then begin
>     test2=readNextCSV("my data");
>     FileDate=getAT("my data","Date1");
>     BBR0=getAT("my data","BBR");
>     Count=getAT("my data","Count");
>     Print(FileDate,",",Date:6:0,",",BBR0:4,",",Count,",",test1,",",test2);
>end;
>
>test1 and test2 both show 1's indicating the operation worked but the other
>values all show 0's instead of actual values in the file.  any ideas?
>
>
>
>