![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Beta Versions This forum is the place to discuss issues regarding Basic4ppc beta versions. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I can't reproduce that error from the information given as it shouldn't matter that direction was already a global and you should get an error if you try to redeclare it as a local. It should also work whether direction was declared as a default, String or Number type. So I'm wondering what the real reason for that error is
![]()
__________________
Sorry, but I don't answer questions by PM or email. Please post your queries in the forum. |
|
||||
|
You are right, the problem was that I had two variables named direction , one was global and the other - local.
The compiler solved some mishaps that I had with the other variable. solved by changing the name.
__________________
David Erez Ramat Hasharon, Israel |
|
||||
|
Sory, I don't think I have made myself clear. I would be interested to see if you could reproduce that error and post the code as I don't think it should be possible, using regular variables, for that error to have occurred at compile time. If you locally redeclared a global variable you should have got a redeclaration error at compile time and if you were assigning a number to a string variable Basic4ppc should have emitted the code to convert it and you wouldn't get an error until runtime if it were not possible.
__________________
Sorry, but I don't answer questions by PM or email. Please post your queries in the forum. |
|
||||
|
I can reproduce the error:
direction is global with value ( not defined as Number) In a sub, direction is defined (again), but as Number. when assigning direction the error appears in compilation (I don't know what happens when running from IDE because this program can run on device only). I checked in a simple program - when running the IDE I get error about the re-dclaration of the variable. Compilation brings up the implicit string etc.
__________________
David Erez Ramat Hasharon, Israel |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gps data string | tremara1 | Questions & Help Needed | 2 | 06-02-2009 09:04 AM |
| Double in blob to string? | HARRY | Questions & Help Needed | 2 | 12-18-2008 04:14 PM |
| put byte value into a string | cotralis | Questions & Help Needed | 5 | 09-13-2008 03:30 AM |
| Long String | Georg | Questions & Help Needed | 2 | 08-06-2008 08:20 AM |
| OK, next string question | Stellaferox | Questions & Help Needed | 9 | 06-07-2007 01:12 PM |