pmusaev Posted February 5, 2004 Posted February 5, 2004 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.
Vaughan Posted February 5, 2004 Posted February 5, 2004 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.
pmusaev Posted February 5, 2004 Author Posted February 5, 2004 what's the jist? i am slightly familiar with relational databases, but not sure on how far their power can extend. could you explain how i could achieve this easily? maybe with a self-relatioship?
pmusaev Posted February 5, 2004 Author Posted February 5, 2004 i need to access a fieldname based on a dynamic value... that's how i could summarize it
Vaughan Posted February 5, 2004 Posted February 5, 2004 Tell us *what* you want to do, not *how* you want to do it.
_ian Posted February 5, 2004 Posted February 5, 2004 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
pmusaev Posted February 5, 2004 Author Posted February 5, 2004 exactly, thank you Ian! *remembering GetField*
Recommended Posts
This topic is 7943 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 accountSign in
Already have an account? Sign in here.
Sign In Now