谁人知晓Attributes为何物?

online0 2003-10-25 12:24:21
请教有关Attributes的有关知识
...全文
30 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
supercdz 2003-12-09
  • 打赏
  • 举报
回复
ms-help://MS.NETFrameworkSDKv1.1.CHS/cpref/html/frlrfSystemWebUIWebControlsWebControlClassAttributesTopic.htm
inethax 2003-12-09
  • 打赏
  • 举报
回复
up
孟子E章 2003-10-25
  • 打赏
  • 举报
回复
到.net sdk里输入Attributes可以看到很多对象有这个属性的
lzg530 2003-10-25
  • 打赏
  • 举报
回复
Attribute就是属性,我们做vb.net项目就是对Form及各种控件属性的应用
falcon6666 2003-10-25
  • 打赏
  • 举报
回复
属性
以下代码举例说明如何使用 Attributes 属性:
Sub SetClearArchiveBit(filespec)
Dim fs, f, r
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(fs.GetFileName(filespec))
If f.attributes and 32 Then
r = MsgBox("已设置 Archive 位,是否确定清除?", vbYesNo, "设置/清除 Archive 位")
If r = vbYes Then
f.attributes = f.attributes - 32
MsgBox "已清除 Archive 位。"
Else
MsgBox "保留 Archive 位设置。"
End If
Else
r = MsgBox("未设置 Archive 位。是否确定设置?", vbYesNo, "设置/清除 Archive 位")
If r = vbYes Then
f.attributes = f.attributes + 32
MsgBox "已设置 Archive 位。"
Else
MsgBox "未设置 Archive 位。"
End If
End If
End Sub
saucer 2003-10-25
  • 打赏
  • 举报
回复
Attributes

Part 1
http://www.ondotnet.com/pub/a/dotnet/excerpt/vbnut_8/index1.html

Part 2
http://www.ondotnet.com/pub/a/dotnet/excerpt/vbnut_8/index2.html

Part 3
http://www.ondotnet.com/pub/a/dotnet/excerpt/vbnut_8/index3.html
SqlDataAdapter 2003-10-25
  • 打赏
  • 举报
回复
就是属性吗,
举个例子吧,一辆车子.
它的颜色、长度、高度、轮子的大小...等等就是它的属性。

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧