Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
='' in a form property
Message
From
18/01/2009 07:01:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
17/01/2009 21:11:19
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01374677
Message ID:
01374750
Views:
7
>>What does it mean when a developer has put this in the property of form instead of just quotes?
>>
>>=''
>>
>It depends on the property. For a property that assumes a string value (caption of a label) the = sign means evaluate the expression so
=""
is an empty string while
""
would show two double-quotes.
>
>I know I've done it in the past, but I don't remember exactly why and I don't have the form in front of me now for a reminder.

You would actually need the "=" sign to assign some function to a property. For example, if you want to show the current time on a Label (initially; you would need a Timer to update it later):

time() in the .Caption property would show the text "time()".
= time() in the .Caption property would show the actual time.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform