Click here to Skip to main content
15,896,726 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionremote connection error! Pin
pandapatin12-Feb-06 20:19
pandapatin12-Feb-06 20:19 
AnswerRe: remote connection error! Pin
Dave Kreskowiak14-Feb-06 8:03
mveDave Kreskowiak14-Feb-06 8:03 
Questionencountring a substring from a string inputted in a textbox Pin
anurag11oct12-Feb-06 18:49
anurag11oct12-Feb-06 18:49 
AnswerRe: encountring a substring from a string inputted in a textbox Pin
Colin Angus Mackay12-Feb-06 20:28
Colin Angus Mackay12-Feb-06 20:28 
QuestionHow to make a Web Browser based on these criterias? Pin
Iftikhar Ali12-Feb-06 17:38
Iftikhar Ali12-Feb-06 17:38 
AnswerRe: How to make a Web Browser based on these criterias? Pin
Dave Kreskowiak13-Feb-06 5:56
mveDave Kreskowiak13-Feb-06 5:56 
AnswerRe: How to make a Web Browser based on these criterias? Pin
Iftikhar Ali13-Feb-06 19:55
Iftikhar Ali13-Feb-06 19:55 
QuestionProblem migrating from VB to VB.NET Pin
drexler_kk12-Feb-06 17:38
drexler_kk12-Feb-06 17:38 
I'm beginner for VB.NET. This is my code that migrating from VB to VB.NET. I'm selecting a group of data in the same data table from my MSSQL database to a dataset,and I wish to process the data row by row inside the dataset. There is no error shown when executed,but there is not messagebox pop-up to show the OriginatingAddress when I try to test the result.

Anyone can give me a solution about this please?

Private Sub Spam_Now()
Dim conStr1 As String
Dim con1 As SqlConnection
Dim reader As IDataReader
Dim sql1 As String
Dim command As SqlCommand

Try
con1 = New SqlConnection("server=(local);database=Jacson;integrated security=true;")
sql1 = "SELECT TOP 10 * FROM TT_Member WHERE Reminder ='0' AND Status ='1'"
command = New SqlCommand(sql1, con1)
con1.Open()
reader = command.ExecuteReader
If Not reader.Read() Then
Label1.Text = "Finished - " & DateTime.Now
Else
Do
Label1.Text = "Spamming - " & DateTime.Now
OriginatingAddress = reader.GetValue("Mobile_No")
MessageBox.Show("This is my>>" & OriginatingAddress & "<<") '<<<<
If OriginatingAddress.Substring(0, 3) = "601" Then
Telco = 2
ElseIf OriginatingAddress.Substring(0, 3) = "013" Then
Telco = 3
ElseIf OriginatingAddress.Substring(0, 3) = "016" Then
Telco = 6
ElseIf OriginatingAddress.Substring(0, 3) = "019" Then
Telco = 9
End If

Reminder_Msg = "Free Msg. Subscription Reminder.Fee:Auto renewal datedate,unless cancelled. To cancel, send STOP TT to 32132."
MT_Msg = Reminder_Msg
MT_Msg = Replace(MT_Msg, "datedate", Renewal_Date3)

Loop Until Not reader.Read()
con1.Close()

End If
Catch ex As Exception

End Try

End Sub
AnswerRe: Problem migrating from VB to VB.NET Pin
Dave Kreskowiak13-Feb-06 5:46
mveDave Kreskowiak13-Feb-06 5:46 
GeneralRe: Problem migrating from VB to VB.NET Pin
drexler_kk13-Feb-06 16:33
drexler_kk13-Feb-06 16:33 
QuestionNeed to print a single record from the data report Pin
Santhosh Nickson12-Feb-06 16:25
Santhosh Nickson12-Feb-06 16:25 
Questionprogramming for communications in VB6 using USB port Pin
wtfskh12-Feb-06 16:16
wtfskh12-Feb-06 16:16 
AnswerRe: programming for communications in VB6 using USB port Pin
Dave Kreskowiak13-Feb-06 5:38
mveDave Kreskowiak13-Feb-06 5:38 
Questionhow to enter txt in datagrid in another form Pin
thepityone12-Feb-06 16:10
thepityone12-Feb-06 16:10 
QuestionCANCEL ON GOING PROCESS Pin
aqui_i12-Feb-06 15:58
aqui_i12-Feb-06 15:58 
AnswerRe: CANCEL ON GOING PROCESS Pin
alien viper12-Feb-06 16:31
alien viper12-Feb-06 16:31 
AnswerRe: CANCEL ON GOING PROCESS Pin
patgrape12-Feb-06 16:32
patgrape12-Feb-06 16:32 
QuestionChange shared add-in project Pin
cylix200012-Feb-06 15:30
cylix200012-Feb-06 15:30 
Questionusercontrol question Pin
maytel12-Feb-06 15:16
maytel12-Feb-06 15:16 
AnswerRe: usercontrol question Pin
alien viper12-Feb-06 16:18
alien viper12-Feb-06 16:18 
GeneralRe: usercontrol question Pin
maytel12-Feb-06 19:10
maytel12-Feb-06 19:10 
Questionhow 2 convert .mdb to .cdb Pin
williamccyccyccy12-Feb-06 14:35
williamccyccyccy12-Feb-06 14:35 
QuestionsqlException was unhandle by user code! Pin
pandapatin12-Feb-06 14:32
pandapatin12-Feb-06 14:32 
AnswerRe: sqlException was unhandle by user code! Pin
Dave Kreskowiak12-Feb-06 15:13
mveDave Kreskowiak12-Feb-06 15:13 
GeneralRe: sqlException was unhandle by user code! Pin
pandapatin12-Feb-06 16:44
pandapatin12-Feb-06 16:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.