![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Hi,
I have an Error Label inside a for next loop, and when an error is trapped the error label is called but the for next loop is not exited and becomes an endless loop... Code:
Sub MySub
errorlabel (error)
for x = 0 to 49
D Something
next x
error:
msgbox("file was not created!!",,cMsgBoxOK,cMsgBoxExclamation)
End Sub
I've tryed Exit and Return with no success!!
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
||||
|
Thanks for your help,It seems the problem is solved...in my sub I had an open conection to a file and when the error was trapped the file wasn't closed causing the endless loop...Now it works fine
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
![]() |
| 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 |
| Problem with Serial. ("before loop" error) | jesb4ppc | Questions & Help Needed | 3 | 02-15-2008 06:41 PM |
| Do...Loop While | Put Claude | Questions & Help Needed | 1 | 07-24-2007 09:02 PM |
| Error Label | Cableguy | Questions & Help Needed | 5 | 06-28-2007 06:07 PM |
| Endless loop | Cableguy | Questions & Help Needed | 8 | 06-28-2007 05:36 PM |
| How to achieve loop with textboxinput? | Stellaferox | Questions & Help Needed | 22 | 05-08-2007 08:25 PM |