BBC BASIC for Windows
« Type Mismatch error with DIM(struct{}) »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:10pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Type Mismatch error with DIM(struct{})  (Read 95 times)
onlyonemac
New Member
Image


member is offline

Avatar




PM


Posts: 4
xx Type Mismatch error with DIM(struct{})
« Thread started on: May 5th, 2015, 1:53pm »

Hi,

I cannot work out what is causing this error. I don't remember this happening before so it might be the new version because I upgraded recently (I am currently using version 5.60b).

When I use the syntax "size% = DIM(structure{})" I get a "Type mismatch" error.

What is causing this and what can I do about it?

Thanks,

onlyonemac
User IP Logged

rtr2
Guest
xx Re: Type Mismatch error with DIM(struct{})
« Reply #1 on: May 5th, 2015, 2:48pm »

on May 5th, 2015, 1:53pm, onlyonemac wrote:
What is causing this and what can I do about it?

Please list a short, self-contained, program which demonstrates the issue. This minimal example works correctly in v6.00a:

Code:
      DIM structure{test}
      size% = DIM(structure{})
      PRINT size% 

Richard.
« Last Edit: May 5th, 2015, 2:49pm by rtr2 » User IP Logged

onlyonemac
New Member
Image


member is offline

Avatar




PM


Posts: 4
xx Re: Type Mismatch error with DIM(struct{})
« Reply #2 on: May 5th, 2015, 2:53pm »

Supplied program does not work in 5.60b.
User IP Logged

rtr2
Guest
xx Re: Type Mismatch error with DIM(struct{})
« Reply #3 on: May 5th, 2015, 3:36pm »

on May 5th, 2015, 2:53pm, onlyonemac wrote:
Supplied program does not work in 5.60b.

That is twice now that you've mentioned v5.60b (I assumed the first time it was a typo for v6.00a) which is an ancient, long obsolete version - released eight years ago almost to the day!

The only current, supported, versions of BB4W are v5.95a and v6.00a.

Richard.
User IP Logged

onlyonemac
New Member
Image


member is offline

Avatar




PM


Posts: 4
xx Re: Type Mismatch error with DIM(struct{})
« Reply #4 on: May 5th, 2015, 4:16pm »

Well I don't know how I ended up with such an old version as I always run the upgrade program after a new installation of BBC BASIC for Windows. Perhaps I should get a newer upgrade program wink .
User IP Logged

onlyonemac
New Member
Image


member is offline

Avatar




PM


Posts: 4
xx Re: Type Mismatch error with DIM(struct{})
« Reply #5 on: May 5th, 2015, 4:19pm »

Yeah I had run the old upgrade utility. I have a newer version and now with version 5.95a it seems to be working as usual! Sorry for my stupidity but I don't normally keep track of version numbers very well.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls