Small doubts CoolBasic

Post your coding questions such as 'how to' here.
Post Reply
Chopepo
Newcomer
Posts: 4
Joined: Mon Aug 03, 2009 3:58 am

Small doubts CoolBasic

Post by Chopepo » Mon Aug 03, 2009 4:11 am

What is the paradigm of CoolBasic?

Is it mandatory?, Object-oriented?

And the second question is ...

How do I use the command "CRC32 and EOF?

Thanks in advance

:)

User avatar
Aavesoturi
Active Member
Posts: 163
Joined: Fri Aug 31, 2007 7:07 pm
Location: Helsinki
Contact:

Re: Small doubts CoolBasic

Post by Aavesoturi » Mon Aug 03, 2009 4:09 pm

CoolBasic is not object-oriented, but procedural.

CRC32 returns a 32bit checksum of a file or a memory block. It can be used to validate the authencity of data or detect corruption/modifications. Just feed it with the filename/path (or memblock). There is an example in English here: http://www.coolbasic.com/cbmanual/commands/crc32.html

EOF(file_handle) is a function that returns TRUE if the file has been read to the end. English example here: http://www.coolbasic.com/cbmanual/commands/eof.html

User avatar
Zero
Lead Developer
Lead Developer
Posts: 712
Joined: Sun Aug 26, 2007 2:30 pm
Location: Helsinki, Finland
Contact:

Re: Small doubts CoolBasic

Post by Zero » Thu Aug 06, 2009 11:41 am

The current CoolBasic is a procedural language. However, there is a new product, CoolBasic V3, in development, and it'll be fully object oriented language.
CoolBasic henkilökuntaa
Johtava Suunnittelija
CoolBasic V3, CoolBasic Classic

http://www.coolbasic.com/blog

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest