如何尋找同一資料夾副檔名相同的檔案?
Dim FileName As String
Dim result(100) As String
Dim count As Integer
FileName = Dir("C:\temp\*.txt", vbNormal)
count = 0
Do While FileName <> ""
Debug.Print FileName
result(count) = FileName
FileName = Dir
count = count + 1
Loop
JL8051 發表在 痞客邦 留言(0) 人氣()
Dim sample_voltage(5800) As Integer
Array.Clear(sample_voltage, 0, sample_voltage.Length) ' 清除矩陣
JL8051 發表在 痞客邦 留言(0) 人氣()
這函數超好用啊!測試code用的到
Dim RR(5) As Byte
Dim rnd As New Random()
rnd.NextBytes(RR)
Textbox1.text=RR(0)
Textbox1.text=RR(1)
JL8051 發表在 痞客邦 留言(0) 人氣()
1.這是送一個指令的方法
SerialPort2.Write(CMD.Text & Chr(&HD))
說明:0x0D為console的斷句碼
JL8051 發表在 痞客邦 留言(0) 人氣()
JL8051 發表在 痞客邦 留言(0) 人氣()
JL8051 發表在 痞客邦 留言(0) 人氣()
JL8051 發表在 痞客邦 留言(0) 人氣()
Enhanced Serial Peripheral Interface (eSPI)
Embedded Controller (EC)
Baseboard Management Controller (BMC)
JL8051 發表在 痞客邦 留言(0) 人氣()
DataGridView1 add the checkbox
1.點選datagridview1/ 選擇右邊屬性欄/按小按鈕

JL8051 發表在 痞客邦 留言(0) 人氣()
今天要介紹 如何知道DataGridView1有幾筆資料的語法, how many the datagirdview1 data?
GridView1.Rows.Count.ToString
JL8051 發表在 痞客邦 留言(0) 人氣()
How to do VB random function ,example is
如何產生VB無重複的亂數,程式碼如下
Dim MyValue As Integer
MyValue = Int((6 * Rnd) + 1) ' Generate random value between 1 and 6.
JL8051 發表在 痞客邦 留言(0) 人氣()
JL8051 發表在 痞客邦 留言(0) 人氣()
如何在Quarts產生.rbf檔案,步驟紀錄給你看
1.點選上面工具列的Assignments 接著選擇 Device
JL8051 發表在 痞客邦 留言(0) 人氣()
圖片解析度表格

來源:wiki
JL8051 發表在 痞客邦 留言(0) 人氣()
情境: 加入ComboBox資料,使用code的方法
方法:
JL8051 發表在 痞客邦 留言(0) 人氣()
今天遇到電腦無法開機的情況 ,按開機按鈕卻沒有反應,開始debug,開始懷疑幾個點
- power壞了
- 主機板壞了
- 電沒接
如果都排除這幾個問題,那你會想過,按鈕的線可能斷了嗎?
對就是有可能,而且有常常在開關機的應該都會碰到,
JL8051 發表在 痞客邦 留言(0) 人氣()

今天要介紹一款免費線上的EDA工具(easyeda),不需要安裝任何軟體,只要用瀏覽器就可以畫電路PCB版甚至可以幫你整理需要的BOM,真的很完整,分享給各位。
EasyEDA is a web-based EDA tool suite that enables hardware engineers to design, simulate, share - publicly and privately - and discuss schematics, simulations and printed circuit boards. Other features include the creation of a Bill of Materials, Gerber and pick and place files and documentary outputs in PDF, PNG and SVG formats.
JL8051 發表在 痞客邦 留言(2) 人氣()
今天遇到RU竟然當掉 只能打文字不能選擇
有個方法是把隨身碟底下的ru.set砍掉就好了
原因是這個檔案是記錄你上一次做RU的動作,
JL8051 發表在 痞客邦 留言(0) 人氣()
C範例 - 輸入判斷程式碼
printf("開始燒錄? 輸入 Y or N :\n");
char c;
scanf("%c", &c);
while (c == 'Y' || c =='N' || c =='y' || c== 'n'){
if (c == 'Y' || c =='y')
break;
else
exit(1);
}
JL8051 發表在 痞客邦 留言(0) 人氣()
do
{
//一直做放這邊的程式 直到你按下q
}while(ch!='q');
JL8051 發表在 痞客邦 留言(0) 人氣()