Just compiled a small program, there are many problems, I hope that all experts help modify it.

xiaoxiao2021-03-06  20

Just use VB to run a book, I also added a new code, there are many problems, I hope that everyone helps to modify! This is a homemade alarm clock, there are two Text boxes on the interface, name is TXTHOUR, TXTMINUTE. Three Command buttons, Name is set, stop, end. Program list is: 'There is no redundancy code in the program. ? Dim Hour, Minute 'has not been very clear about Hour and Minute's role, when is the' hour = txtHour.text 'minute = txtminute.text assignment statement? , When do you not need? Private Sub cmdCancel_Click () txtHour = "00" txtMinute = "00" hour = txtHour.Text minute = txtMinute.Text End Sub Private Sub cmdEnd_Click () End End Sub Private Sub cmdSet_Click 'press enter to perform effective program (), but The 'SET button on the interface is not displayed, how to modify it? 'Why can't the word on the Command key can't change color? ? Dim HH As INTEGER, MM AS INTEGER HH = TXTHOUR MM = TXTMINUTE SELECT CASE HH Case 0 To 23 Hour = TXTHOUR.TEXT 'The following three sentences are: After writing TXTHOUR,' txtminute is selected, identified.

转载请注明原文地址:https://www.9cbs.com/read-41371.html

New Post(0)