View Single Post
  #20 (permalink)  
Old 11-06-2009, 05:07 PM
taximania's Avatar
taximania taximania is offline
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default error occurred on sub_main_killlabel

My code works in the desktop IDE
It compiles for desktop OK but throws this error every time the sub is called.

Quote:
Unable to cast object of type
'Dbasic.EnhancedControls.CEnhancedLabel' to type 'Dbasic.IText'.
Continue

Here's Sub killlabel
Code:
Sub killlabel(y)
Control(
"Label" & y).text=""
End Sub

I'm a bit confused.
It worked fine before V6.80
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote