Guest mutant Posted April 8, 2003 Posted April 8, 2003 Is there? I couldnt find one :rolleyes: And I need it for my code because some other error may occur and I will have no idea if the registrykey was not found or something. Quote
Moderators Robby Posted April 8, 2003 Moderators Posted April 8, 2003 If you're using Settings, then you can do this... Dim Settings(,) As String = GetAllSettings("SomeApp", "SomeSection") If Not Settings Is Nothing Then 'Exists else 'Does not end if Quote Visit...Bassic Software
Guest mutant Posted April 8, 2003 Posted April 8, 2003 No, im using the registry classes from the Win32 namespace. If I dont have any error handling for the registry key specifically, it could result in some bad things :( Quote
*Gurus* Derek Stone Posted April 9, 2003 *Gurus* Posted April 9, 2003 If the key does not exist the RegistryKey object returned will be null (the Nothing keyword in Visual Basic .NET). Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.