没问题:
Private Sub DataReport_Initialize()
dim strtest as string
strtest=rsttest.filed(0)
if strtest="a" then
Me.Sections("section4").Controls("lblid").Caption = "#"
elseif strtest="b" then
Me.Sections("section4").Controls("lblid").Caption = "$"
elseif strtest="c" thenend ifend sub请给分!~_~
Private Sub DataReport_Initialize()
dim strtest as string
strtest=rsttest.filed(0)
if strtest="a" then
Me.Sections("section4").Controls("lblid").Caption = "#"
elseif strtest="b" then
Me.Sections("section4").Controls("lblid").Caption = "$"
elseif strtest="c" thenend ifend sub请给分!~_~
解决方案 »
- 利用windowsAPI开发串口通信
- end select 没有select case
- 求助:关于MSFlexGrid里的内容保存到Excel的问题?急!急!急!
- 用setup factory做完安装程序后,执行碰到的问题拒绝访问(好象在没有vb的环境下)?
- 多语言问题
- 怎样使工作区变宽?
- 如何对msflexgrid中的图形进行放大缩小?
- 谁能提供一个有图标和背景图的弹出式菜单的源码或控件?
- webbrows控件无法浏览*.asp文件问题
- 怎么将ADO Recordset 数据绑定到DataBoundGird中?谁做过?
- 三问:mailto的语法、邮件附件???
- 如何给一个PictureBox添加快捷键,和CommandButton中使用 "&"的效果一样?
case when filed1='b' then '$'
case ' '
end)
from table1 ok!!!!
法2:
用 dataFormat 对象,先引用 Microsoft Data Formatting Object Libary
在 DataReport 模块添加:
Dim WithEvents dataFormatX As StdDataFormat
Private Sub dataFormatX_Format(ByVal DataValue As StdFormat.StdDataValue)
If DataValue = 1 Then
DataValue = "@"
...
End If
End Sub
在 DataReport_Initialize 添加:
set dataFormatX=new StdDataFormat
set Me.Sections("section4").Controls("Text1").DataFormat=dataFormatX
《VB6 之数据格式化对象使用技巧》
http://microinfo.top263.net/Txt/Format.txt