Jump to content

specifying a fieldname from user input


This topic is 7379 days old. Please don't post here. Open a new topic instead.

Recommended Posts

how do you target a specific field based on what a user has inputed into a field? basically, i am able to generate a field name based on user input; now i need to spit out a few other fields that are relevant to what the user input. ... does this make any sense?

so if the user input "007" i have a script that creates the following text string "007_st" and there is a field name in my dBase called "007_st" and i would like to display it's value.

Link to comment
Share on other sites

Are you familiar with relational databases? It sounds like what you want to do with fields can be done more easily with related *records* (and be easier to maintain as well).

Try doing a forum search for "filtered portal" or something similar.

Link to comment
Share on other sites

You want the GetField function. so if in your example you had a global field named UserInput that contained the value "007_st", you would code it as GetField(UserInput). This would return the value that is in the field named 007_st.

Ian

Link to comment
Share on other sites

This topic is 7379 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.