[Gambas-user] File_Read() doesn't work

vuott at tutanota.com vuott at tutanota.com
Fri Jul 30 01:09:15 CEST 2021


I simply made a correction to the writing-error in my example code, obviously the problem - that I reported - remains.

regards



30 lug 2021, 00:52 da user at lists.gambas-basic.org:

> opsss...Correction to the code:
>
>    Read #mid, datum
>
>
>
>
> 30 lug 2021, 00:50 da user at lists.gambas-basic.org:
>
>> Hi,
>> for example with this simple code (by using an external midi-keyboard connected to PC via USB):
>>
>> Private mid As File
>>
>> Public Sub Main()
>>
>>   mid = Open "/dev/snd/midiC2D0" For Read Watch
>>
>> End
>>
>> Public Sub File_Read()
>>
>>   Dim datum As Byte
>>
>>   Read @mid, datum
>>
>>   Print datum
>>
>> End
>>
>>
>>
>> 30 lug 2021, 00:38 da g4mba5 at gmail.com:
>>
>>> Le 30/07/2021 à 00:25, vuott--- via User a écrit :
>>>
>>>> Hello,
>>>> it seems to me that the procedure:
>>>>
>>>>     file_variable = Open "......." For Read Watch
>>>> .....
>>>> End
>>>>
>>>> Public Sub File_Read()
>>>> ......
>>>> ......
>>>>
>>>> no longer works.
>>>> (maybe from  Commit cba7b188 ? Or 1943dbfc ? )
>>>>
>>>
>>> Can you send a full project that reproduces the bug?
>>>
>>> -- 
>>> Benoît Minisini
>>>
>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>>
>>
>>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210730/7940f4fe/attachment.htm>


More information about the User mailing list