RobRock92 Member Licensed User Longtime User Oct 25, 2013 #1 hi , I am creating an application that creates tax documents such as invoices and wanted to know how do you in a listview filled with description and price, take only that part of the price and put it into a textbox... Thanks and excuse me for bad English, I'm Italian
hi , I am creating an application that creates tax documents such as invoices and wanted to know how do you in a listview filled with description and price, take only that part of the price and put it into a textbox... Thanks and excuse me for bad English, I'm Italian
M Mahares Expert Licensed User Longtime User Oct 25, 2013 #2 Here is a small example: Code: Copy 'Code in the ListView item click Dim strVar As String=Value 'Example: Italian Sausage $6.55 et.Text = strVar.substring(strVar.indexof("$")) 'returns $6.55 Upvote 0
Here is a small example: Code: Copy 'Code in the ListView item click Dim strVar As String=Value 'Example: Italian Sausage $6.55 et.Text = strVar.substring(strVar.indexof("$")) 'returns $6.55
RobRock92 Member Licensed User Longtime User Oct 25, 2013 #3 Thank you very much...tomorrow morning I try the code Upvote 0
RobRock92 Member Licensed User Longtime User Oct 28, 2013 #4 it work , but how remove the $ from the string ? Upvote 0
M Mahares Expert Licensed User Longtime User Oct 28, 2013 #5 Use the substring function. See example below: Code: Copy Dim MyString As String="$6.55" MyString=MyString.SubString(MyString.indexof("$")+1) 'displays 6.55 Msgbox(MyString,"") Upvote 0
Use the substring function. See example below: Code: Copy Dim MyString As String="$6.55" MyString=MyString.SubString(MyString.indexof("$")+1) 'displays 6.55 Msgbox(MyString,"")