Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


format exception


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-22-2007, 09:43 PM
Senior Member
 
Join Date: Jul 2007
Posts: 147
Awards Showcase
Beta Tester 
Total Awards: 1
Default format exception

This is the sub it is complaining about. When message window pops up it says an error has occured on sub_logsegment, formatexception.

Sub LogSegment
myvalue(1) = txtx1.Text
myvalue(2) = txty1.Text
myvalue(3) = txtx2.Text
myvalue(4) = txty2.Text
myvalue(5) = txtr.Text
myvalue(6) = myColor
table1.AddRow(myvalue(0),myvalue(6),myvalue(1),myv alue(2),myvalue(3),myvalue(4),myvalue(5))
table1.Refresh
mnulabel1.Text = table1.RowCount
End Sub

It runs fine on desktop but not ppc.

dennishea
__________________
Using 6.30
dennishea
Reply With Quote
  #2 (permalink)  
Old 12-23-2007, 02:53 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello
What is hidden in myvalue(0) ?
Reply With Quote
  #3 (permalink)  
Old 12-23-2007, 08:36 AM
Senior Member
 
Join Date: Jul 2007
Posts: 147
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks alfcen. I checked myvalue(0) and it was ok. I was sure once saw your question that that was it. Then I thought I never really checked that whole array so I did to discover that one them was null so to solve that problem I checked it before adding the row and if it was blank stuck a zero in it. Again thank for your help.

dennishea
__________________
Using 6.30
dennishea
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Format Exception Error Zenerdiode Questions & Help Needed 2 09-03-2008 04:12 PM
Door Library Null Reference Exception sahoopes Bug Reports 1 07-15-2008 05:46 AM
Out of Memory Exception Error on Load willisgt Questions & Help Needed 9 03-01-2008 12:18 PM
SIP Exception davidmw Bug Reports 8 07-05-2007 05:32 PM
Exception Handling Astragali Questions & Help Needed 2 05-23-2007 01:44 AM


All times are GMT. The time now is 06:03 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0