rodiney

help while func

6 posts in this topic

 

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

Share this post


Link to post
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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

 

You know the script I immediately sent the top. I need it to check if my $ button2 was clicked or not. You have any user function that checks it?

Share this post


Link to post
Share on other sites

thanks JohnOne i will try it

Share this post


Link to post
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

1 person likes this

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

Share this post


Link to post
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