Re: Whats ur ctrl V right now
to succumb to the evilness known as having a mobile phone
The above from my ctrl V was taken from an email from manker after I had to ask him for my girlfriend's mobile number. :pinch:
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
Barbarossa
Quote:
Originally Posted by
Barbarossa
Function DisplayCurrency(Amount)
Dim currentLocale
Dim original
currentLocale = GetLocale
original = SetLocale("en-gb")
if isnumeric(Amount) Then
if Amount < 0 Then
DisplayCurrency = "-£" & FormatNumber(0-Amount,2)
else
DisplayCurrency = "£" & FormatNumber(Amount,2)
End if
else
DisplayCurrency = Amount
End if
original = SetLocale(currentLocale)
End Function
Function ConvertCurrency(Amount)
TempAmount = Amount
while (not isnumeric(left(TempAmount,1))) and (len(TempAmount) > 0)
TempAmount = trim(mid(TempAmount,2,len(TempAmount)))
wend
if isnumeric(TempAmount) Then
ConvertCurrency = ccur(Round(TempAmount,2))
else
ConvertCurrency = TempAmount
End if
End Function
If anyone would actually like to rewrite this as javascript, I'd be eternally grateful (until tomorrow)
I'll have a look later.
Dunno if I can be bothered to fix the whole thing, but maybe I'll give you a function or two.
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
Snee
Quote:
Originally Posted by
Barbarossa
If anyone would actually like to rewrite this as javascript, I'd be eternally grateful (until tomorrow)
I'll have a look later.
Dunno if I can be bothered to fix the whole thing, but maybe I'll give you a function or two.
Unfortunately, due to the curse of deadlines, it's got to be done this morning :dabs:
I've more or less done it. In some ways Javascript is kewl. In most ways however it sucks untold amount of bawls :frusty:
Re: Whats ur ctrl V right now
Re: Whats ur ctrl V right now
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
Barbarossa
Quote:
Originally Posted by
Snee
I'll have a look later.
Dunno if I can be bothered to fix the whole thing, but maybe I'll give you a function or two.
Unfortunately, due to the curse of deadlines, it's got to be done this morning :dabs:
I've more or less done it. In some ways Javascript is kewl. In most ways however it sucks untold amount of bawls :frusty:
Were you able to use some premade isnumeric thing?
'cos I remember writing one on my own.
EDit: also, I just got home, so I couldn't have done owt then anyways, posted that after getting out of bed, before I went off adventurin' in the university library.
Re: Whats ur ctrl V right now
znomre zhenya tebya pazdra vlayu llubya
Re: Whats ur ctrl V right now
http://www.theregister.co.uk/2007/03/29/diamond_geezer/
I think I was going to make a post about that earlier, but I went off to verify its verifibilisitude.
Re: Whats ur ctrl V right now
Any calls that are on the F4 I am going to move into stuarth as its getting difficult to see the F4 – I will be keeping an eye on any call and putting them all in stuarth so please go there instead of F4 until the logger starts dying down again
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
Snee
Were you able to use some premade isnumeric thing?
function isnumeric(sText) {
var ValidChars = "-0123456789.";
var IsNumber=true;
var Char;
if (sText.length == 0)
{return false;}
for (i = 0; i < sText.length && IsNumber == true; i++)
{ Char = sText.charAt(i);
if (ValidChars.indexOf(Char) == -1)
{ IsNumber = false; }
}
return IsNumber;
}