Jump to content

help while func


rodiney
 Share

Recommended Posts

 

Hi again.

need some help here , I need to do while checking if the button was not clicked , Button which added "$button1" , not the keyboard key . will be like in so much I did not click on the button he keeps doing WHAT was defined .

case $Button1
            While                                 << I  NEED HERE
            ReDim $Array[UBound($Array) + 1]
            $Array[$iCount] = $H
            $Input1 = GUICtrlSetData($Input1,$Array[$iCount] & " Start")
            if  $H <> $Array[$iCount] Then
               $iCount += 1
               ReDim $Array[UBound($Array) + 1]
              $Array[$iCount] = $H
           EndIf
           ConsoleWrite($Array[$iCount] & @CR)
           _ArrayDisplay($Array, "", Default, 8)

WEnd

Link to comment
Share on other sites

Seems English isn't your mother language. I have absolutely no idea what you are looking for.
Could you please describe in your language what you need and then use Google Translate or something similar to translate it to English?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

rodiney,

See comments in the following code...

Case $Button1
    While < < I NEED HERE
        ReDim $Array[UBound($Array) + 1]
        $Array[$iCount] = $H    
        ;
        ; $Input1 is being used as a controlid.  You do NOT want to overwrite it !!!
        ;
        $Input1 = GUICtrlSetData($Input1, $Array[$iCount] & " Start")
        ;
        ; two statements ago you set these values =.  Why the test?
        ;
        If $H <> $Array[$iCount] Then
            $iCount += 1
            ReDim $Array[UBound($Array) + 1]
            $Array[$iCount] = $H
        EndIf
        ConsoleWrite($Array[$iCount] & @CR)
        _ArrayDisplay($Array, "", Default, 8)

    WEnd

It might be better to create a runnable reproducer and tell us what you expect and what it is/is not doing...

kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

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...