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.


Program hangs, caused by strttoupper


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-2008, 12:31 PM
Junior Member
 
Join Date: Jul 2007
Posts: 37
Default Program hangs, caused by strttoupper

Hello,

as soon as I uncomment the line "'r = StrToUpper(r)" in the attached program, it hangs when I try to execute it in the desktop-ide. Don't know why.

Perhaps someone can help me.

Thanks in advance!

Kind regards:

Token
Attached Files
File Type: sbp TopExtract.sbp (1.5 KB, 0 views)

Last edited by token : 08-13-2008 at 12:34 PM.
Reply With Quote
  #2 (permalink)  
Old 08-13-2008, 12:37 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

Code:
        Do Until r = EOF
            sum = sum + 1
            r = FileRead (c1)
            'r = StrToUpper(r)
            ChanPos = StrIndexOf  (r , "Chan := ",0)
            If ChanPos > 0 Then
                ChanText = SubString (r,ChanPos + 8, 2)
                textbox1.Text=SubString(RemoveSpaces(r),0,11)
                If SubString(RemoveSpaces(r),0,11) = "My_RetValue" Then
                    r = FileRead(c1)
                    Table1.AddRow (ChanText,r)
                End If                    
            End If
        Loop
EOF is a string mark. If you change 'r' with StrToUpper, r will never be equal to EOF.
Reply With Quote
  #3 (permalink)  
Old 08-13-2008, 01:08 PM
Junior Member
 
Join Date: Jul 2007
Posts: 37
Default

Quote:
Originally Posted by Erel View Post
Code:
        Do Until r = EOF
            sum = sum + 1
            r = FileRead (c1)
            'r = StrToUpper(r)
            ChanPos = StrIndexOf  (r , "Chan := ",0)
            If ChanPos > 0 Then
                ChanText = SubString (r,ChanPos + 8, 2)
                textbox1.Text=SubString(RemoveSpaces(r),0,11)
                If SubString(RemoveSpaces(r),0,11) = "My_RetValue" Then
                    r = FileRead(c1)
                    Table1.AddRow (ChanText,r)
                End If                    
            End If
        Loop
EOF is a string mark. If you change 'r' with StrToUpper, r will never be equal to EOF.
Many thanks, Erel.
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
Program not run under CF3.5 ? Paulsche Questions & Help Needed 7 10-15-2008 04:23 PM
Program Size ceaser Chit Chat 2 08-09-2008 02:20 PM
IDE hangs and does not start again DieterR Bug Reports 1 01-06-2008 08:32 PM
Program load stevefan Questions & Help Needed 1 12-07-2007 07:24 AM
How to get a picture of the program? Stellaferox Questions & Help Needed 11 05-13-2007 09:33 PM


All times are GMT. The time now is 12:21 PM.


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