| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1851 人关注过本帖
标题:[讨论]女孩,随风逐流,你们俩进来一下!
只看楼主 加入收藏
kaishiuexi
Rank: 1
等 级:新手上路
帖 子:264
专家分:0
注 册:2007-6-8
收藏
 问题点数:0 回复次数:23 
[讨论]女孩,随风逐流,你们俩进来一下!

把你们的MSN留下吧

搜索更多相关主题的帖子: MSN 女孩 
2007-09-20 12:31
kaishiuexi
Rank: 1
等 级:新手上路
帖 子:264
专家分:0
注 册:2007-6-8
收藏
得分:0 

女孩是purana


当白天又一次把黑夜按翻在床上的时候,太阳就出生了……
2007-09-20 12:39
purana
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:广东-广州
等 级:版主
威 望:66
帖 子:6039
专家分:0
注 册:2005-6-17
收藏
得分:0 
什么事?

我的msn: myfend@
2007-09-20 12:53
雨中飞燕
Rank: 3Rank: 3
等 级:禁止访问
威 望:8
帖 子:2200
专家分:0
注 册:2007-8-9
收藏
得分:0 
........算不算水帖?
2007-09-20 12:59
kaishiuexi
Rank: 1
等 级:新手上路
帖 子:264
专家分:0
注 册:2007-6-8
收藏
得分:0 
不算,我有事需要帮忙,能把你的MSN给我吗

当白天又一次把黑夜按翻在床上的时候,太阳就出生了……
2007-09-20 13:05
purana
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:广东-广州
等 级:版主
威 望:66
帖 子:6039
专家分:0
注 册:2005-6-17
收藏
得分:0 
不能在论坛说?

我的msn: myfend@
2007-09-20 13:07
雨中飞燕
Rank: 3Rank: 3
等 级:禁止访问
威 望:8
帖 子:2200
专家分:0
注 册:2007-8-9
收藏
得分:0 
就是嘛,直接在论坛问不行吗?
2007-09-20 13:11
kaishiuexi
Rank: 1
等 级:新手上路
帖 子:264
专家分:0
注 册:2007-6-8
收藏
得分:0 

好,我贴出来:

Option Explicit

Private mvarG_ID As String
Private mvarG_Name As String
Private mvarG_Linkman As String
Private mvarG_Duty As String
Private mvarG_OfficePhone As String
Private mvarG_MobilePhone As String
Private mvarG_Fax As String
Private mvarG_Address As String
Private mvarG_Cooperate As String
Private mvarG_Demand As String
Private mvarG_Maintenance As Date
Private mvarG_Actualize As String
Private mvarG_Feedback As String
Private mvarG_Settle As String
Private mvarG_Importance As Integer
Private mvarG_Friendly As Integer
Private mvarG_Satisfaction As Integer
Private mvarG_Remark As String

Public Function DeleteGuestInfoRecord(ByVal strID As String) As Boolean
Dim strSQL As String
On Error Resume Next
strSQL = "delete from GuestInfo where G_ID=strID"
TransactSQL (strSQL)
DeleteGuestInfoRecord = (Err.Number = 0)
End Function

Public Function UpdateGuestInfoOldRecord() As Boolean
Dim strSQL As String
On Error Resume Next
strSQL = "update GuestInfo set G_ID='" & Trim() & "'"
TransactSQL (strSQL)

UpdateGuestInfoOldRecord = (Err.Number = 0)
End Function

Public Function AddGuestInfoNewRecord(Optional ByVal strID As String, _
Optional ByVal strName As String, _
Optional ByVal strSex As String, _
Optional ByVal dateBirthday As Date) As Boolean
Dim strSQL As String
On Error Resume Next
If strID = "" Then MsgBox "id isn't null"
strSQL = "insert into GuestInfo(G_ID,G_Name,," & vbCrLf
strSQL = strSQL & "G_Linkman,G_Duty,G_OfficePhone,," & vbCrLf
strSQL = strSQL & "G_MobilePhone,G_Fax,G_Address,," & vbCrLf
strSQL = strSQL & "G_Cooperate,G_Demand,G_Maintenance,," & vbCrLf
strSQL = strSQL & "G_G_Actualize,G_Feedback,G_Settle,," & vbCrLf
strSQL = strSQL & "G_Importance,G_Friendly,G_Satisfaction,," & vbCrLf
strSQL = strSQL & "G_Remark) values ('" & mvarG_ID
strSQL = strSQL & "','" & mvarG_Name
strSQL = strSQL & "','" & mvarG_Linkman
strSQL = strSQL & "','" & mvarG_Duty
strSQL = strSQL & "','" & mvarG_OfficePhone
strSQL = strSQL & "','" & mvarG_MobilePhone
strSQL = strSQL & "','" & mvarG_Fax
strSQL = strSQL & "','" & mvarG_Address
strSQL = strSQL & "','" & mvarG_Cooperate
strSQL = strSQL & "','" & mvarG_Demand
strSQL = strSQL & "','" & mvarG_Maintenance
strSQL = strSQL & "','" & mvarG_Actualize
strSQL = strSQL & "','" & mvarG_Feedback
strSQL = strSQL & "','" & mvarG_Settle
strSQL = strSQL & "','" & mvarG_Importance
strSQL = strSQL & "','" & mvarG_Friendly
strSQL = strSQL & "','" & mvarG_Satisfaction
strSQL = strSQL & "','" & mvarremark & "')"
TransactSQL (strSQL)
AddGuestInfoNewRecord = (Err.Number = 0)
End Function
Public Property Let G_Remark(ByVal vData As String)
mvarG_Remark = vData
End Property
Public Property Get G_Remark() As String
G_Remark = mvarG_Remark
End Property

Public Property Let G_Satisfaction(ByVal vData As Integer)
mvarG_Satisfaction = vData
End Property
Public Property Get G_Satisfaction() As Integer
G_Satisfaction = mvarG_Satisfaction
End Property
Public Property Let G_Friendly(ByVal vData As Integer)
mvarG_Friendly = vData
End Property
Public Property Get G_Friendly() As Integer
G_Friendly = mvarG_Friendly
End Property
Public Property Let G_Importance(ByVal vData As Integer)
mvarG_Importance = vData
End Property
Public Property Get G_Importance() As Integer
G_Importance = mvarG_Importance
End Property
Public Property Let G_Settle(ByVal vData As String)
mvarG_Settle = vData
End Property
Public Property Get G_Settle() As String
G_Settle = mvarG_Settle
End Property
Public Property Let G_Feedback(ByVal vData As String)
mvarG_Feedback = vData
End Property
Public Property Get G_Feedback() As String
G_Feedback = mvarG_Feedback
End Property
Public Property Let G_Actualize(ByVal vData As String)
mvarG_Actualize = vData
End Property
Public Property Get G_Actualize() As String
G_Actualize = mvarG_Actualize
End Property
Public Property Let G_Maintenance(ByVal vData As Date)
mvarG_Maintenance = vData
End Property
Public Property Get G_Maintenance() As Date
G_Maintenance = mvarG_Maintenance
End Property
Public Property Let G_Demand(ByVal vData As String)
mvarG_Demand = vData
End Property
Public Property Get G_Demand() As String
G_Demand = mvarG_Demand
End Property
Public Property Let G_Cooperate(ByVal vData As String)
mvarG_Cooperate = vData
End Property
Public Property Get G_Cooperate() As String
G_Cooperate = mvarG_Cooperate
End Property
Public Property Let G_Address(ByVal vData As String)
mvarG_Address = vData
End Property
Public Property Get G_Address() As String
G_Address = mvarG_Address
End Property
Public Property Let G_Fax(ByVal vData As String)
mvarG_Fax = vData
End Property
Public Property Get G_Fax() As String
G_Fax = mvarG_Fax
End Property
Public Property Let G_MobilePhone(ByVal vData As String)
mvarG_MobilePhone = vData
End Property
Public Property Get G_MobilePhone() As String
G_MobilePhone = mvarG_MobilePhone
End Property
Public Property Let G_OfficePhone(ByVal vData As String)
mvarG_OfficePhone = vData
End Property
Public Property Get G_OfficePhone() As String
G_OfficePhone = mvarG_OfficePhone
End Property
Public Property Let G_Duty(ByVal vData As String)
mvarG_Duty = vData
End Property
Public Property Get G_Duty() As String
G_Duty = mvarG_Duty
End Property
Public Property Let G_Linkman(ByVal vData As String)
mvarG_Linkman = vData
End Property
Public Property Get G_Linkman() As String
G_Linkman = mvarG_Linkman
End Property
Public Property Let G_Name(ByVal vData As String)
mvarG_Name = vData
End Property
Public Property Get G_Name() As String
G_Name = mvarG_Name
End PropertyPublic Property Let G_ID(ByVal vData As String)
mvarG_ID = vData
End PropertyPublic Property Get G_ID() As String
G_ID = mvarG_ID
End Property


我写了一个对数据库的GuestInfo表进行添加,修改,删除操作的类,在使用时老出错,咋整?


当白天又一次把黑夜按翻在床上的时候,太阳就出生了……
2007-09-20 13:35
kaishiuexi
Rank: 1
等 级:新手上路
帖 子:264
专家分:0
注 册:2007-6-8
收藏
得分:0 
我想明白数据传递的路径,你能帮我详细解释一下吗?

当白天又一次把黑夜按翻在床上的时候,太阳就出生了……
2007-09-20 13:36
purana
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:广东-广州
等 级:版主
威 望:66
帖 子:6039
专家分:0
注 册:2005-6-17
收藏
得分:0 
看了一眼.
看到这有错strSQL = "delete from GuestInfo where G_ID=strID"

我的msn: myfend@
2007-09-20 13:39
快速回复:[讨论]女孩,随风逐流,你们俩进来一下!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.037210 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved