zachvaldez
asked on
INSRT/mid use in VB.net
How do I get the parsing on this in vb.net?
Given : August 31, 2004. htm
I want to get the result to show - August 31, 2004
that is to the left of ".htm"
ASKER
So in this case scenario DotNetLover, BTW ,THanks in a million!
I'd like to get only the August 31,2004 from the August 31,2004.htm
how is that done please..
dra.name here is the full filename- August 31,2004.htm
For Each dra In diar1
Dim dr As DataRow = ds.Tables(0).NewRow()
dr(0) = dra.Name
dr(1) = "c:\Events\HTML\" & dra.Name
ds.Tables(0).Rows.Add(dr)
Next
I'd like to get only the August 31,2004 from the August 31,2004.htm
how is that done please..
dra.name here is the full filename- August 31,2004.htm
For Each dra In diar1
Dim dr As DataRow = ds.Tables(0).NewRow()
dr(0) = dra.Name
dr(1) = "c:\Events\HTML\" & dra.Name
ds.Tables(0).Rows.Add(dr)
Next
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
IN this DDL, Id liek to see the first row blank so that the first data is in the second row when the selectedchanged index is fired.
thanks
thanks
Which DDL ? Where is ur DDL ? What are you doing in the selectedIndexChanged ? Please explain...
Note: You can always do DDL.SelectedIndex = -1 to show blank.
-Baan
Note: You can always do DDL.SelectedIndex = -1 to show blank.
-Baan
or, Insert a blank after populating the DDL:
DDL.Items.Insert(0, "--Select All--") -OR- DDL.Items.Insert(0, "")
-Baan
DDL.Items.Insert(0, "--Select All--") -OR- DDL.Items.Insert(0, "")
-Baan
ASKER
Wow! There many ways to do it then!
Thanks for your help and I'll try each way.
Thanks for your help and I'll try each way.
Dim Str As String = "August 31, 2004. htm"
Str = Str.SubString(0,Str.LastIn
Now the Str will have "August 31, 2004"
-Baan