Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Problem with Hiscore

Author
Message
Raybrite2
15
Years of Service
User Offline
Joined: 16th May 2009
Location: Cyberspace
Posted: 20th Jun 2009 01:06 Edited at: 20th Jun 2009 01:25
I am getting an error that says the the parameter for Str$ does not match the "value" at line 22.


This is the last WriteString 1 statement.
I am getting this out of the Tutorials For DB Pro.
I think they should be reversed and placed in the same order as in the Read Statement, but I get an error that way also.
(I am using the DB Pro demo program until mine arrives.)
The following if the complete code that I have to this point. Maybe the problem is in the top somewhere..)

I notice they change the titles around in order between read and write but, that doesn't change the error message.
MrBill
17
Years of Service
User Offline
Joined: 23rd Feb 2007
Location:
Posted: 20th Jun 2009 01:44
one thing that I think is wrong is that you might want to change
"Dim PlayeName$(10)" to DimPlayerName$(10)

MrBill
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 20th Jun 2009 01:47

In this code i see a typo in line:

Maybe this is what gives you the error.Offcourse maybe i`m wrong or half right

Where is a will, there is a way.
Raybrite2
15
Years of Service
User Offline
Joined: 16th May 2009
Location: Cyberspace
Posted: 20th Jun 2009 01:55
Found that one and it didn't make a difference.
to me, it doesn't look right because the order of the data is reversed between the read and write.
I tried changing that and it didn't make a difference.
Maybe it has something to do with the way DBC and DBP look at these things.
I am new and don't know. I have seen some commands that make a difference in one and not the other.
Pillarofire
20
Years of Service
User Offline
Joined: 31st Dec 2003
Location: Good Question, <looks around.>
Posted: 20th Jun 2009 03:40


In this code the PlayerName$() array is declared as PlayeName$() this causes the problem later on.

fix that typo and that code should compile.

Dim Hiscore(10)
Dim PlayeName$(10)
Filename$="HISCORE.DAT"
Raybrite2
15
Years of Service
User Offline
Joined: 16th May 2009
Location: Cyberspace
Posted: 20th Jun 2009 12:38
That made it through. thanks.
I didn't even see that missing letter. Did it early in the morning before my coffee.
Thanks again.

Login to post a reply

Server time is: 2024-11-24 05:32:26
Your offset time is: 2024-11-24 05:32:26