Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if controlsource is a field or a variable/prop
Message
From
12/12/2001 14:12:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00592686
Message ID:
00593428
Views:
31
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform