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

Charlie Ogier charlie at cogier.com
Sat Jul 16 11:00:10 CEST 2022


Hi Safiur,

I am not sure why it is needed but if you add the line *hForm.read* it 
will work.

/Dim hForm As CsvFile//
// hForm = New CsvFile("csv/8.tmp.csv", ";")//
//* hForm.read*//
// ValueBox1 = hForm.Fields.Count//
/
Charlie


On 15/07/2022 14:45, Safiur Rahman wrote:
> Sorry
> ValueBox1.Value = hForm.Fields.Count
>
>
>
> On Fri, Jul 15, 2022 at 7:27 PM Safiur Rahman <isafiur at gmail.com> wrote:
>
>     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
>
>
>
> -- 
> Regards
> Safiur Rahman
>
> ----[http://gambaswiki.org/wiki/doc/netiquette  ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220716/86f4a7ea/attachment.htm>


More information about the User mailing list