-
private sub form_load()
1 'drawwidth returns or sets the line weight for the output of the graphical method.
true qbcolor(0) 'qbcolor: the RGB color code used to represent the corresponding color value, parameter: 1 15
1500, 1500)-(1500, -1500) 'scale is used to define the coordinate system of the form, picturebox, or printer, parameters: top left-bottom right.
0, 1500)-(1500, -1500) 'scale is used to define the coordinate system of the form, picturebox, or printer, parameters: top left-bottom right.
1500, 0)-(1500, 0), qbcolor(15) 'Draw horizontal lines.
end sub
-
time1 = "1901-1-1 00:" + txt_time2 = "1901-1-1 00:"+ txt The format of your program data is incorrect, change the above 2 lines to the following format:
time1 = cdate(1901 - 1 - 1) +cdate(0) +val(txt_
time2 = cdate(1901 - 1 - 1) +cdate(0) +val(txt_
Run through! Hope it helps!
-
That's because you didn't use it well when you defined it. For example, dim a as integer, but when you pay a value, you use a different type such as a="123456"
-
Type mismatches, most of the time, are when you define a problem with the conversion between the integer and the character line.
-
dimstr1
asstring
str1"16bit
max:"printstr1
In this case, the type does not match, that is, str1 is string, 65535 is integer, here there are two different types, so they cannot be added.
dimstr1
asstring
str1"16bit
max:"print
str1str(65535)
Such! Add a cast str() statement and you're good to go. Convert integers to strings, or just change them to"65535"Double quotation marks are also fine.
-
What database? access, don't use single quotes, use , or if you have entered some inappropriate strings in a few text boxes, such as single quotes, double minus signs, etc.
-
When the obtained data is of the string type, you cannot use "+" to concatenate it, but you can use "&" to concatenate it as a string.
If you want to do addition, you can write = cint( +1
-
The character & in vb does not mean the same thing as and???
You this if b - a > 0 & d - c > 0 then
Can only be written as if b - a > 0 and d - c > 0 then
-
str() to a string.
val() to a number (double).
-
Defined as the same data type.
-
Be sure that the type mismatch isn't VB's fault, it's Microsoft's fault, it's your fault.
To solve the type mismatch, you must first know what type is on both sides, and then you can decide whether it can be automatically converted or must be converted by **.
-
It's just that the variable type is wrong.
Let's say you assign a string to a numeric variable.
-
If the fields "Exam Date" and "Exam Time" in your data table are of the Date and Time type, then change the single quotation marks to "pound signs" in the SQL statement
sql = "select * from Exam Teacher Info where Exam Date =
a = "n c hundred du q49232 ah ah ah pp"
mid(trim(a), 9, 5) 'From the 9th character from left to right (spaces are also counted), count 5 characters you want. >>>More
Two methods:1Add an array of controls with the load method, provided you have to add a control to the form at design time and set its index property to 0, then use : >>>More
Two commandbuttons, two lables, two texts"
private sub command1_click()r = >>>More
It's similar to a calculator.,Numbers can be entered on the interface.,You can also use the keyboard to enter.,Later dedicated**!! >>>More
The second line declares that the textbox control array ** is wrong and does not conform to the syntax specification! >>>More