Jump to content

info in field separated by colon, drop down menu


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

Recommended Posts

We have a record, in the record is a field that has info separated by colons, Ex: blue:green:black we want to make a pull down menu with this information. We can't figure out on how to make filemaker recognize the ( smile.gifin the field, so that the pull down menu sees each bit of information as separate info. We know how to enter the info to make a pull down menu, but not how to make it recognize what is in the field. Thanks

Link to comment
Share on other sites

There might be an easier way but this script will do it:

You need to define global fields: gString [Text]; gCharacter [Text}; and gCount[Number]; and a text field New Value List.

Go to record/request/Page[First]

Loop

Set Field [gCount,1]

Set Field [gString,Value List]

Set Field [New Value List,""]

Loop

Set Field [gCharacter,Middle(gString,gCount,1)

If [gCharacter,"<carriage return symbol>"]

End If

Set Field[New Value List,New value List & gCharacter]

Exit Loop if [gCount = Length(gString)]

End Loop

Set Field [Value List, New Value List]

Go to record/Request/Page [Next,Exit after Last]

End Loop

Best of luck!

Link to comment
Share on other sites

This topic is 8500 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.