![]() |
|
|||||||
| 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 |
|
||||
|
Some may not know that in .NET a "null" is just that. It is the absence of anything. It is not numeric zero or an empty string or the character chr(0) or anything else that might be thought of as "nothing". It really is an indicator of nothing - and it's occurrence usually indicates a coding bug or error of some sort.
|
|
||||
|
Hi Erel,
Sorry to get back to you again on this issue. The code below throws an "Specified argument was out of the range of valid values." error. The values in "Path" contain strings such as: "\SD Card\RBS Taiyoukei\taiyokei.exe". All entries are plain text and are present. Now, the code runs without optimization on PPC 2003 and WM6. It runs optimized under WM6. It does NOT run optimized under PPC 2003. It is reasonable to assume that the old compiler and WM6 are more tolerant to something I haven't figured out yet. Any thoughts you can share with me ? Thanks Robert Code:
Sub mnuSearchAlfcen_Click
Dim ex
ErrorLabel(alfcen)
lbS.Clear 'ListBox
alSort.Clear 'Arraylist
Reg.RootKey(Reg.rtCurrentUser)
subKeys()=Reg.GetSubKeyNames("Software\RBSoft")
For i = 0 To ArrayLen(SubKeys())-1
ex=Reg.GetString("Software\RBSoft\" & SubKeys(i),"File")
If IsNull(ex) = false AND ex <> "" Then
lbS.Add(ex & " (" & Reg.GetString("Software\RBSoft\" & subKeys(i),"FriendlyName") & ")")
alSort.Add(Reg.GetString("Software\RBSoft\" & subKeys(i),"Path")) 'ERROR IS THROWN HERE. No error if I REM this line
End If
Next
Return
alfcen:
Msgbox("Not all entries could be read!"," alfcen Software",cMsgBoxNone, cMsgBoxAsterisk)
End Sub
|
![]() |
| 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 |
| Lettura del registry | Raytracer | Italian Forum | 9 | 04-19-2008 01:03 PM |
| Registry to Tree View | willisgt | Questions & Help Needed | 0 | 02-20-2008 04:17 PM |
| reading and editing registry | Dr. Feelgood | Questions & Help Needed | 3 | 02-16-2008 07:18 AM |
| Reload registry after change? | mcflaytasche | Questions & Help Needed | 8 | 06-13-2007 07:50 PM |
| registry | bdiscount | Questions & Help Needed | 4 | 05-11-2007 02:29 PM |