I am building a VFP application which will see whether an ADB(Android Debug Bridge) connection has been established or not. If an ADB connection is established then the thisform.label3.caption will be "Connected" else "Not Connected". Now the application can catch the connection and disconnection events but i want to set the caption to "Checking" before it executes ADB connection checking codes. How do i achieve that?
Code:
thisform.label3.Caption= "Checking ADB Connection"
DO shellexecute.prg
ShellExecute(0, "open", "cmd.exe", "/C adb devices > H:\New_folder\adbc_log.txt", "", 0)