Click here to Skip to main content
16,008,490 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: .net applications in a non .net framework Pin
benbminnich@yahoo.com8-Apr-07 14:04
benbminnich@yahoo.com8-Apr-07 14:04 
AnswerRe: .net applications in a non .net framework Pin
Paul Conrad8-Apr-07 14:32
professionalPaul Conrad8-Apr-07 14:32 
QuestionGet Domain User ID list in Dropdownlist vb.net Pin
rasheed.rahman8-Apr-07 3:45
rasheed.rahman8-Apr-07 3:45 
QuestionFile Copy,Move completion Pin
Ramuv8-Apr-07 0:14
Ramuv8-Apr-07 0:14 
AnswerRe: File Copy,Move completion Pin
JUNEYT8-Apr-07 2:48
JUNEYT8-Apr-07 2:48 
Questionhow can rename a table in sql server 2000 (with tsql in query analyzer)? Pin
B.A7-Apr-07 21:02
B.A7-Apr-07 21:02 
AnswerRe: how can rename a table in sql server 2000 (with tsql in query analyzer)? Pin
B.A7-Apr-07 22:39
B.A7-Apr-07 22:39 
Questionneed help for random file Pin
bapu28897-Apr-07 10:50
bapu28897-Apr-07 10:50 
Hello every one

I am doing one project with random file function and i have problem with file open but i can open file in my list box but i can not open file in text box i have three variable id , name , and weight, in find event i put one button and three text box so when user put id in first text box and click find button it should display name and weight in other two text box but it's not so any help, this is what i have done so far


 Structure Ink<br />
        <VBFixedString(5)> Dim Weight As String<br />
        <VBFixedString(10)> Dim InkID As String<br />
        <VBFixedString(30)> Dim InkName As String<br />
    End Structure<br />
    Private Function FindLastRecordNo() As Integer<br />
        Dim Temp As Ink<br />
        FileNumber = FreeFile()<br />
        FileOpen(FileNumber, "c:\inklist.txt", OpenMode.Random, OpenAccess.Read, , Len(Temp))<br />
        FindLastRecordNo = 1<br />
        Do While Not EOF(FileNumber)<br />
            FileGet(FileNumber, Temp, )<br />
            FindLastRecordNo = FindLastRecordNo + 1<br />
        Loop<br />
        FileClose(FileNumber)<br />
    End Function<br />
<br />
I have no problem with this event :)<br />
<br />
 Private Sub btnOpenList_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOpenList.Click<br />
        Dim MyInk As Ink, Count As Integer, Temp As String<br />
        Dim MyLine, MySubString As String, LineWidth As Integer = 60<br />
        FileNumber = FreeFile()<br />
        FileOpen(FileNumber, "c:\inklist.txt", OpenMode.Random, , , Len(MyInk))<br />
        Count = 1<br />
        lstInk.Items.Clear()<br />
        Do While Not EOF(FileNumber)<br />
            FileGet(FileNumber, MyInk, Count)<br />
            Temp = MyInk.InkID + MyInk.InkName + MyInk.Weight<br />
            lstInk.Items.Add(Temp)<br />
            Count = Count + 1<br />
        Loop<br />
        FileClose(FileNumber)<br />
    End Sub<br />
<br />
but i have problem with find click event it's not showing any thing in textbox :confused:<br />
<br />
    Private Sub btnFind_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnFind.Click<br />
        Dim MyInk As Ink<br />
        FileNumber = FreeFile()<br />
        FileOpen(FileNumber, "c:\inklist.txt", OpenMode.Random, , , Len(MyInk))<br />
        Do While Not EOF(FileNumber)<br />
            FileGet(FileNumber, MyInk, )<br />
            If MyInk.InkID = txtID.Text Then<br />
                Position = Loc(FileNumber)<br />
                txtIName.Text = MyInk.InkName  this is the problem:confused:<br />
                txtIWeight.Text = MyInk.Weight   this is the problem :confused:<br />
                Exit Do<br />
            End If<br />
        Loop<br />
        FileClose(FileNumber)<br />
    End Sub


any help

wating for your kind help Frown | :(
QuestionGet the current URL Pin
Sergio Correia7-Apr-07 9:39
Sergio Correia7-Apr-07 9:39 
Questionrecord allignment Pin
Member 38798817-Apr-07 3:34
Member 38798817-Apr-07 3:34 
QuestionPicking the "Odd" one out Pin
Zaegra7-Apr-07 3:05
Zaegra7-Apr-07 3:05 
AnswerRe: Picking the "Odd" one out Pin
The ANZAC7-Apr-07 19:01
The ANZAC7-Apr-07 19:01 
GeneralRe: Picking the "Odd" one out Pin
Zaegra8-Apr-07 7:43
Zaegra8-Apr-07 7:43 
QuestionDefault Sound Device Pin
mertology7-Apr-07 2:29
mertology7-Apr-07 2:29 
Questionsearch file from server Pin
mmm!@#7-Apr-07 2:22
mmm!@#7-Apr-07 2:22 
QuestionInstalling Sql Server Express Database on Setting up Application Pin
xbiplav7-Apr-07 1:54
xbiplav7-Apr-07 1:54 
AnswerRe: Installing Sql Server Express Database on Setting up Application Pin
Rob Graham8-Apr-07 4:02
Rob Graham8-Apr-07 4:02 
Questionhow to troubleshoot could not access 'CDO.Message' object Pin
hisuman1007-Apr-07 0:50
hisuman1007-Apr-07 0:50 
AnswerRe: how to troubleshoot could not access 'CDO.Message' object Pin
KreativeKai16-Apr-07 1:26
professionalKreativeKai16-Apr-07 1:26 
QuestionHow to get web-server's OK responce in case of web-service. Pin
Amol Ravatale7-Apr-07 0:47
Amol Ravatale7-Apr-07 0:47 
Questionuse the datagrid Pin
vishu_shri6-Apr-07 23:06
vishu_shri6-Apr-07 23:06 
AnswerRe: use the datagrid Pin
solberg7-Apr-07 1:00
solberg7-Apr-07 1:00 
QuestionTiff File Merge Pin
G.Manivannan6-Apr-07 21:35
G.Manivannan6-Apr-07 21:35 
QuestionHow ro run the project? Pin
Member 38798816-Apr-07 21:31
Member 38798816-Apr-07 21:31 
AnswerRe: How ro run the project? Pin
Xandip6-Apr-07 21:42
Xandip6-Apr-07 21:42 

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.