Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么这不起作用?
MsgBox("F6D8C47B-46E6-4E93-A393-00085ACA2242").ToString.Replace("-", "")
您在 MsgBox 上调用 ToString,而不是在显然已经是字符串的 Guid 上。尝试
MsgBox("F6D8C47B-46E6-4E93-A393-00085ACA2242".Replace("-",""))
MsgBox(Guid.NewGuid().ToString("N").ToUpper());