Run BASIC
« Comment with rb101 linux. »

Welcome Guest. Please Login or Register.
Dec 8, 2009, 6:04pm



Run BASIC
Run BASIC Community Wiki
Easy Web Programming with Run BASIC

Run BASIC :: Testing and Bug Reports :: Bug Reports :: Comment with rb101 linux.
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Comment with rb101 linux. (Read 23 times)
ekvirtanen
Full Member
***
member is offline



Ubuntu 9.10 + RB101

[icq] [msn]

Joined: Jan 2008
Gender: Male
Posts: 101
Location: Finland
Karma: 0
 Comment with rb101 linux.
« Thread Started on Nov 7, 2009, 3:45pm »

Code:
cls

shipN = 0        '    Name of the ship
shipX = 1        '    X coord
shipY = 2        '    Y coord
shipZ = 3        '    Z coord
shipS = 4        '    Max. speed
shipA = 5        '    Max. acceleration
shipR = 6        '    Max. retardation


dim ships$(2, 6)

ships$(0, shipN) = "Ship 1"
ships$(0, shipX) = "100"
ships$(0, shipY) = "100"
ships$(0, shipZ) = "100"
ships$(0, shipS) = "0.9"
ships$(0, shipA) = "0.1"
ships$(0, shipR) = "0.1"
ships$(1, shipN) = "Ship 2"
ships$(1, shipX) = "50"
ships$(1, shipY) = "150"
ships$(1, shipZ) = "75"
ships$(1, shipS) = "0.6"
ships$(1, shipA) = "0.2"
ships$(1, shipR) = "0.15"


Comments from; ' Name of the ship to ' Max. retardation causes a "Compile Error".

If i remove them, all works as should. I have double checked that comment character is correct one. Is this because of some char-table differences at linux and windows or what? I tried in "Write your own" feature at the main site and it has same problem.

Using rb101 for linux and i desperately need comments on my messy codes ::)
Link to Post - Back to Top  IP: Logged

My home
BasicProgramming.Org
ASCII-World.Com
ekvirtanen
Full Member
***
member is offline



Ubuntu 9.10 + RB101

[icq] [msn]

Joined: Jan 2008
Gender: Male
Posts: 101
Location: Finland
Karma: 0
 Re: Comment with rb101 linux.
« Reply #1 on Nov 7, 2009, 3:49pm »

I tried the tinyBasic example from the wiki. Works fine with "Write your own" feature at mainsite, however my local rb101 for linux messes about the same error than with the code in first post.

[edit]
Also this causes same error
Code:
shipN = 0
rem    Name of the ship
« Last Edit: Nov 7, 2009, 3:55pm by ekvirtanen »Link to Post - Back to Top  IP: Logged

My home
BasicProgramming.Org
ASCII-World.Com
ekvirtanen
Full Member
***
member is offline



Ubuntu 9.10 + RB101

[icq] [msn]

Joined: Jan 2008
Gender: Male
Posts: 101
Location: Finland
Karma: 0
 Re: Comment with rb101 linux.
« Reply #2 on Nov 7, 2009, 3:58pm »

Ok. I restarted rb and browser, now shipN = 0 ' rem name of ship works just fine.
Cant tell why and what tho...
Link to Post - Back to Top  IP: Logged

My home
BasicProgramming.Org
ASCII-World.Com
   [Search This Thread][Send Topic To Friend] [Print]

Google
Webrunbasic.proboards.com
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!