Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21271

how to add a * in a listview

$
0
0
is there a way to add a * intsead of a password to a listview
or a number?
if say i have a pricelist and i dont want somebody to see the price then it will show me a * instead of the price?
tnx in advanced
salsa31
Code:

strSQL = "INSERT INTO PriceList "
strSQL = strSQL & "(PriceID, PriceName, PriceCost, PriceRemarks) "
strSQL = strSQL & "VALUES("
strSQL = strSQL & NewID & ","                         
strSQL = strSQL & "'" & RplS(Txt(0).text) & "',"
strSQL = strSQL & CCur(Txt(1).text) & ","
strSQL = strSQL & "'" & RplS(Txt(2).text) & "'"
strSQL = strSQL & ")"
CN.Execute strSQL

        Set itm = FrmPriceList.LsVw.ListItems.Add(, , Txt(0).text, , "price")
        itm.Tag = NewID
        itm.SubItems(1) = Replace$(Txt(1).text, ",", ".")
        itm.SubItems(2) = Replace$(Txt(2).text, ",", ".")


Viewing all articles
Browse latest Browse all 21271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>