Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if controlsource is a field or a variable/prop
Message
De
12/12/2001 14:12:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00592686
Message ID:
00593428
Vues:
32
>The new DO CASE based on your reply
>Thanks all :-)
>
>
>DO CASE
>   CASE nDots > 1  && object property
>     lIsField=.F.
>   CASE nDots = 1  && property or field
>     lIsField= USED(JUSTSTEM(.controlsource)) AND FSIZE(JUSTEXT(.controlsource))>0 && returns .t. if field
>   OTHERWISE  && nDots=0
>     lIsField= FSIZE(.controlsource)> 0
>ENDCASE	
>
>
Gerald,
Parsing was prohibited :)?
Some comments which might never apply :
-Multiple dots where conrolsource is multiple fields.
-Dots=0 and isField and alias not the current one
-Dots=1 this sounds better :
lIsField= FSIZE(JUSTEXT(.controlsource), JUSTSTEM(.controlsource))>0
-Dots = 1 but memvar, same name field in current alias && 'm.First_Name'
-Dots = 0 but old syntax && 'myTable->First_Name'

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform