This returns an error in Windows 7?
Blitz3D Forums/Blitz3D Programming/This returns an error in Windows 7?
| ||
Type Number Type Num% End Type Delete pi.Number on windows XP, returns nothing and everything seems fine. |
| ||
Did you mean Field Num% instead of Type Num% ? Your Code is very far away from working Blitz3D Code. No matter which windows it is executed on. The second Type is wrong ... it should read Field pi is not a declared Element as pi.Number = New Number So you cannot delete an Element which is not there ... and if you would have the element you would just code Delete pi Actually you would find everything out if you would look into the Help files for Type and Delete Although the Delete Help File does not work on its own since the Elements are not declared there either ... Adding the 2 Lines of the Delete Example if room\x > 640 then Delete room at the right place inside the Type Example will show you how to do Delete. . |
| ||
Also, Pi is a reserved word. Any IDE would capitalise pi.Number to Pi.Number, which suggests this code was not actually copy/pasted but simply typed into the topic content edit box. |