Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect javascript variable
Message
De
04/12/2006 17:08:24
 
 
À
04/12/2006 16:47:38
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
01174767
Message ID:
01174776
Vues:
9
>It seems something as simple as:
>
>
>   if (LevelExtremeListHeight)
>   {
>      var oH=LevelExtremeListHeight
>   }
>
>
>does it.

You may try using the TRY / CATCH.
var oH = 0;
try {
     if (LevelExteremaListHeight)
     {
         oH = LevelExteremaListHeight
     }
CATCH {
     oH = <somedefault value or don't change>
}
I thought there was a function similar to VARTYPE, but I may be thinking of VBscript.

I use too many languages.
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform