Jump to content

FOR ... NEXT Problem


Recommended Posts

I am a novice programmer. We wish you detailed instructions

I want to create 1 notification list VGA devices installed

For $ida = 1 to 5
    $getvga = RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\000" & $ida,"DriverDesc")
    MsgBox(0,"Get VGA",$getvga)
Next
there is one small problem. 
 
I want it to show only one message devices list
Link to comment
Share on other sites

Try. Please, use and read the help file {F1}

Local $sVGA = ""

For $i = 1 to 5

$sGetVGA = RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\000" & $i,"DriverDesc")

If $sGetVGA <> "" Then
    $sVGA = $sGetVGA & @CRLF
EndIf

Next

MsgBox(0,"Get VGA",$sVGA)
Edited by GordonFreeman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...