Page 8 of 22 FirstFirst ... 56789101118 ... LastLast
Results 71 to 80 of 211

Thread: Whats ur ctrl V right now

  1. #71
    Cheese's Avatar Poster
    Join Date
    Sep 2003
    Location
    is everything.
    Age
    47
    Posts
    15,288
    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.

  2. Lounge   -   #72
    Snee's Avatar Error xɐʇuʎs BT Rep: +1
    Join Date
    Sep 2003
    Location
    on something.
    Age
    45
    Posts
    17,971
    Quote Originally Posted by Barbarossa View Post
    Quote Originally Posted by Barbarossa View Post
    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.

  3. Lounge   -   #73
    Barbarossa's Avatar mostly harmless
    Join Date
    Jun 2002
    Location
    Over here!
    Posts
    15,172
    Quote Originally Posted by Snee View Post
    Quote Originally Posted by Barbarossa View Post

    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

    I've more or less done it. In some ways Javascript is kewl. In most ways however it sucks untold amount of bawls

  4. Lounge   -   #74
    Cheese's Avatar Poster
    Join Date
    Sep 2003
    Location
    is everything.
    Age
    47
    Posts
    15,288
    Mein Kampf

  5. Lounge   -   #75
    Mr. Mulder's Avatar pepper your angus BT Rep: +10BT Rep +10
    Join Date
    Aug 2003
    Location
    Vault 111
    Age
    39
    Posts
    16,598
    job 30337

  6. Lounge   -   #76
    Snee's Avatar Error xɐʇuʎs BT Rep: +1
    Join Date
    Sep 2003
    Location
    on something.
    Age
    45
    Posts
    17,971
    Quote Originally Posted by Barbarossa View Post
    Quote Originally Posted by Snee View Post

    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

    I've more or less done it. In some ways Javascript is kewl. In most ways however it sucks untold amount of bawls
    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.

  7. Lounge   -   #77
    Chip Monk's Avatar Darth Monk Like.
    Join Date
    Apr 2006
    Posts
    1,543
    znomre zhenya tebya pazdra vlayu llubya
    You do not need to see my I.D.

  8. Lounge   -   #78
    SnnY's Avatar Error Syntax
    Join Date
    Feb 2007
    Posts
    448
    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.
    You and every other nub on the internets.

  9. Lounge   -   #79
    Mr. Mulder's Avatar pepper your angus BT Rep: +10BT Rep +10
    Join Date
    Aug 2003
    Location
    Vault 111
    Age
    39
    Posts
    16,598
    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

  10. Lounge   -   #80
    Barbarossa's Avatar mostly harmless
    Join Date
    Jun 2002
    Location
    Over here!
    Posts
    15,172
    Quote Originally Posted by Snee View Post
    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;
    }

Page 8 of 22 FirstFirst ... 56789101118 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •