![]() |
|
|||||||
| 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 wonder how to achieve a loop with the textboxinput to achieve a number which lies between the acquired numbers. I want to generate a loop like DO UNTIL NM<Nr1 AND NM<Nr2 then NM = textboxNM LOOP But this doesnt work. It generates an error. Any ideas? thank in advance Marc |
|
|||
|
Well, the prgram doesn't seem to stop when values other then the wanted ones are put in. The reason the program has a parameter RunFirst = evident. The first time the program runs it takes the default values. The second time input is necessary in the sub Initparameters.
|
|
|||
|
Yes, these three loops should take care of the problem that the input is in the wanted range. That was my question.
Now the program doesnt change the input and certainly not within the wanted boundaries. Or should the UNTIL keyword be after the LOOP word? |
|
||||
|
Why not use a simple If then else...?
If NR<=MaxRows AND NR>=MinRows then NR = txtbxRows.Text If the AND bit doesn't work try If NR<=MaxRows then If NR>=MinRows then NR = txtbxRows.Text end if end if
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
||||
|
Ok from what i understsnd you want to set an interval of values from wich the user must enter a number...Right?
I think that in that case you are testing the wrong variable.... You are testing NR before it is set to txtbxRow... Try this... If txtbxRows.Text<=MaxRows AND txtbxRows.Text>=MinRows then NR = txtbxRows.Text Or more complete: dim n as int16 n=txtbxRows.text If n<=MaxRows AND n>=MinRows then NR = txtbxRows.Text
__________________
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 |
| Click event during a for loop | pmu5757 | Questions & Help Needed | 7 | 04-12-2008 04:44 PM |
| Do...Loop While | Put Claude | Questions & Help Needed | 1 | 07-24-2007 09:02 PM |
| How to achieve text edtion like in word? | Cableguy | Questions & Help Needed | 3 | 07-03-2007 04:52 PM |
| Endless loop | Cableguy | Questions & Help Needed | 8 | 06-28-2007 05:36 PM |
| error label and for next loop | Cableguy | Questions & Help Needed | 4 | 05-23-2007 08:47 AM |