Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IsBlank()
Message
De
21/01/2003 18:41:55
 
 
À
21/01/2003 18:27:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00744047
Message ID:
00744054
Vues:
10
>maybe someone has an idea
>
>i sometimes work with long strings (i.e. to build an sql or filter command) i then check that string if it is empty with "IsBlank(StrToCheck)".
>
>i gues there is a limitation in IsBlank() since it sometimes triggers the error "string to long to fit".
>
>is there a solution to this problem (i work with vfp6 sp5)?
>
>thanks for all your help in advance.

What my understanding, ISBLANK() is usually use against a field from a table. If you wish to detect if a string is empty, you may check LEN() function such as:
IF LEN(lcString)=0
   * Blank
ENDIF
or
IF LEN(ALLTRIM(lcString))=0
   * Blank
ENDIF
to be more bullet proof in case you are handling that string with spaces.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform