Forum: VB.NET Jan 21st, 2008 |
| Replies: 6 Views: 1,462 How about this?
http://www.developerfusion.co.uk/show/2084/
Do I get a dollar for my research fee please ? |
Forum: VB.NET Sep 20th, 2007 |
| Replies: 14 Views: 2,369 Right. Replace *returns* a string with the "s replaced, it doesn't change the string in match.Value (strings are immutable)
So:
match.Value.Replace("""","")
MessageBox(match.Value)
Won't... |
Forum: VB.NET Sep 19th, 2007 |
| Replies: 14 Views: 2,369 That's in the code already. match.Value.Replace("""","")
the Value property returns a string, all strings inherit the Replace method. The above code returns the string in Value with any "'s... |
Forum: VB.NET Sep 19th, 2007 |
| Replies: 14 Views: 2,369 ????
You lost me why do you need to add "'s in ?
In programming languages it is common to declare strings in double quotes. But, what if you actually need a double quote in the string? you have... |
Forum: VB.NET Sep 19th, 2007 |
| Replies: 14 Views: 2,369 Hey even I have to look them up! powerful things tend to be 'arcane'. All you need is a good reference or site to refer too when you know you need a regex. I like this site best:
... |
Forum: VB.NET Sep 19th, 2007 |
| Replies: 14 Views: 2,369 Sorry couldn't resist. I still don't like VB syntax yetch!
'Import the namespace required
Imports System.Text.RegularExpressions
Module Module1
Sub Main()
'The string data I... |
Forum: VB.NET Sep 14th, 2007 |
| Replies: 4 Views: 965 Have you not been given any training at all?
Do you know how to use Visual Studio to start a project?
Your first task before you code anything is to identify the objects. They become your... |
Forum: VB.NET Apr 25th, 2007 |
| Replies: 5 Views: 2,714 Try this :
Select
t1.StockCode,
t1.QtyNeeded,
t2.QtyProduced,
t2.ProdDate
from
( |
Forum: VB.NET Apr 25th, 2007 |
| Replies: 5 Views: 2,714 Select
t1.StockCode,
sum(t1.QtyNeeded) QtyNeeded,
sum(t2.QtyProduced) QtyProduced,
max(t2.Date) [Date]
from
Table1 t1
join Table2 t2 on t1.StockCode = t2.StockCode... |
Forum: VB.NET Apr 20th, 2007 |
| Replies: 6 Views: 1,506 try String.Format.
Label.Text = String.Format({0:0.00},CSng(Val(txtbox.Text) + Val(txtbox2.Text))
see here:
http://idunno.org/archive/2004/14/01/122.aspx |
Forum: VB.NET Apr 20th, 2007 |
| Replies: 6 Views: 1,506 You are right integer variables don't have decimal places, they are for whole numbers only. Use float double or decimal variables. |
Forum: VB.NET Apr 11th, 2007 |
| Replies: 9 Views: 7,587 wonder_gal,
as you're new just to let you know, we like to explain solutions as much as possible so that other visitors with similar problems can learn from existing threads instead of starting... |
Forum: VB.NET Apr 11th, 2007 |
| Replies: 9 Views: 7,587 This pathList(s) is evaluated before the ExtractZip method, pathList is an array and requires an integer argument in the parenthesis representing the index number, but string s is being passed... |
Forum: VB.NET Mar 28th, 2007 |
| Replies: 3 Views: 879 earningsResultLabel.Text holds an empty string which Val cannot convert into an integer ? |
Forum: VB.NET Jul 31st, 2006 |
| Replies: 2 Views: 4,043 Asp.Net AutoGenerateColumns attribute in datagrids is on by default, set the attribute to false in the aspx page.
<asp:DataGrid AutoGenerateColumns="False" ... |
Forum: VB.NET Jul 21st, 2006 |
| Replies: 2 Views: 3,980 In the file menu select New... and then Web site ...
Why they dd it that way I dunno it got me first time too and I'm a pro.
Somebody somewhere thought it would be funny I guess. |