Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Foxpro Equivalent

Status
Not open for further replies.

resurgam

Programmer
Oct 11, 2005
5
GB
Is there an equivalent command to RTTI (runtime type information) in C++ for foxpro?

Many Thanks

Rachel

 
It displays what the data type of a variable is. It does more than Vartype does though it will instead of an integer and a float being displayed as "N" in vartype it distingushes been the two.

Thanks Again

Rachel
 

Rachel,

The distinction between numeric (float) and integer is only really relevant for fields in a table. Once you have copied the value into a variable, they are just numeric. Similarly with chars, varchars and varchars (binary).

So it doesn't really make sense in VFP to have the function you suggested. If you want to know the data type of a field in a table, you can get that with AFIELDS().

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top