General information
Category:
Coding, syntax & commands
Title:
Referencing a variable
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only