Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: string.length

  1. #1
    Junior Member
    Join Date
    Jan 2003
    Location
    Los Angeles
    Posts
    12
    Member #
    432
    Code:
    function Asse(a,b,c,d){//position four-vectors aka tenzors
    var a1,b1,c1,d1;//tenzor matrices
    if(a==b){
    a1 = b1;
    }
    if(b==c){
    a1 = c1;
    }
    alert(a1.length);
    }
    It returns undefined, can someone help me please?

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    One of the following could have happened:

    1. You're not using strings
    2. a never equals b or b never equals c
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Junior Member
    Join Date
    Jan 2003
    Location
    Los Angeles
    Posts
    12
    Member #
    432
    how do you set a string?

  5. #4
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Just [minicode]a = "something";[/minicode]; all you have to remember is to use the quotes. [minicode]a = "3";[/minicode] might be interpreted as a number, though.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  6. #5
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    You can also call the function mentioned above in following two ways:

    Code:
    var a = "string a";
    var b = "string b";
    var c = "string c";
    var d= "string d";
    Asse(a,b,c,d);
    OR
    Code:
    Asse("string a", "string b", "string c", "string d");
    There and Back Again :Ogre:


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:53 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com