Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's _tally meant ?
Message
From
19/12/2002 07:47:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00734433
Message ID:
00734436
Views:
18
>Guys...
>
>I just want to ask several things :

It is considered more appropriate to write your two non-related questions in two separate messages.

>1. different using
> return "" with return(0) and return .f.

RETURN returns a value back to the calling function.

For instance:
? CircleArea(5)

FUNCTION CircleArea(radius)
  return Radius * Radius * pi()
ENDFUNC
RETURN 0 will return the value 0, and RETURN .F. will return the value .F. These values are different.

>2. What's _tally meant ? what its use for ?

_tally returns the number of records processed by the latest command. Several commands that process records will update this.

Example:
select * from MyTable where ... into cursor Temp
if _tally = 0
  MessageBox("There are no records. Please change the selection criteria.")
else
  report form ...
endif
HTH, Hilmar.
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