[Gambas-user] Problem with CsvFile.Fields.Count

Benoit Minisini benoit.minisini at gambas-basic.org
Mon Jul 18 20:26:53 CEST 2022


Le 15/07/2022 à 15:42, Safiur Rahman a écrit :
> Hi
> 
> I have one simple csv. When I run this
> 
> Dim hForm As CsvFile
>   hForm = New CsvFile("csv/8.tmp.csv", ";")
>   ValueBox1 = hForm.Fields.Count
> 
> I get the error "Null Value". Previously it worked. Is there any change?
> I am using gambas 3.17.2 on Ubuntu 20.04
> 
> Attached a project
> 
> -- 
> Regards
> Safiur Rahman
> 
> 

Hi,

I have fixed the problem in the last commit.

Now reading the 'Fields' property automatically reads the fields from 
the first line of the file if needed.

Regards,

-- 
Benoît Minisini.


More information about the User mailing list