Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing a variable
Message
From
26/10/2001 09:29:53
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00573603
Message ID:
00573605
Views:
14
This message has been marked as the solution to the initial question of the thread.
Hi!

type(m.lctemp)

Also
laReprStructure(lnCount,2)

2-nd element of the result of AFIELDS() is a field type.

>I am having trouble with an application. I am populating a variable lcReprTable with the result of a choice from a list box (lcNetworkName)
>
>lcReprTable = 'Repr' + alltrim(lcNetworkName)
>
>This is referencing me to the table that I want to do testing with. I am using
>
>AFIELDS(laReprStructure,lcReprTable)
>
>to step through the fields of the table. I then use
>
>lcTemp = laReprStructure(lnCount,1)
>
>to grab the field name. I need to check that the data within the lcTemp field is of numeric type. Otherwise, I need to halt the application. I have tried
>
>if type('lctemp') <> 'N'
>
>but that always returns a false as lcTemp is the field name not the data within the field.
>
>Can someone help me out here? I know that this is simple but I'm just spinning my wheels here.
>
>TIA
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform