Results 1 to 9 of 9

Thread: inventory sms system

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2002
    Location
    Philippines
    Posts
    877

    inventory sms system

    hi, how to make an very simple inventory

    this is the screenshots



    now if the Amt Loaded receive P26.00 in the income will appear P4.00

    then schem

    Amt Loaded / Income

    P26.00 / P4.00
    P52.00 / P8.00
    P100.00 / P15.00
    P200.00 / P0.00
    P300.00 / P10.00
    P500.00 / P0.00
    P1000.00 / P0.00
    i want only to compute the INCOME

    daily/monthly/yearly

    the code for listview is

    VB Code:
    1. Sub LoadListView(strPath As String, SettingsList As ListView)
    2.  
    3.  Dim s1              As String
    4.        
    5.    SettingsList.ListItems.Clear
    6.        
    7.       Dim fso As New FileSystemObject, tso As TextStream
    8.        
    9.         Set tso = fso.OpenTextFile(strPath)
    10.          
    11.         Do While Not tso.AtEndOfStream
    12.             s1 = tso.ReadLine
    13.             SettingsList.ListItems.Add , , s1
    14.         Loop
    15.        
    16.         tso.Close
    17.    End Sub

    VB Code:
    1. Dim i               As Long
    2.         Dim strData()       As String
    3.        
    4.         Call LoadListView(App.Path & "\ReadELoadMessages", lstRawData)
    5.         DoEvents
    6.        
    7.         lstRawData.ListItems.Remove 1
    8.         lstRawData.ListItems.Remove 1
    9.         DoEvents
    10.        
    11.         If lstRawData.ListItems.Count >= 10 Then
    12.             For i = 10 To lstRawData.ListItems.Count Step 11
    13.                 If InStr(lstRawData.ListItems.Item(i).Text, "Unable to process transaction") = 0 Then
    14.                     If InStr(lstRawData.ListItems.Item(i).Text, ":") <> 0 Then
    15.                         strData = Split(lstRawData.ListItems.Item(i), ":")
    16.                        
    17.                         lstData.ListItems.Add , , strData(0)
    18.                         lstData.ListItems.Item(lstData.ListItems.Count).ListSubItems.Add , , Mid$(strData(1), InStr(strData(1), " to ") + 4, InStrRev(strData(1), ".") - InStr(strData(1), " to ") - 4)
    19.                         lstData.ListItems.Item(lstData.ListItems.Count).ListSubItems.Add , , Mid$(strData(1), InStr(strData(1), "(") + 1, InStrRev(strData(1), ")") - InStr(strData(1), "(") - 1)
    20.                         lstData.ListItems.Item(lstData.ListItems.Count).ListSubItems.Add , , strData(3)
    21.                         lstData.ListItems.Item(lstData.ListItems.Count).ListSubItems.Add , , Left$(strData(2), InStrRev(strData(2), ".") - 1)
    22.                     End If
    23.                 End If
    24.             Next i
    25.         End If
    Last edited by nokmaster; Sep 30th, 2005 at 09:28 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width