Jump to content

finddata result=fail


sheldon

Recommended Posts

I don't know how to use the fail result returned from finddata.exe

 

I want to go to one of two sets of menus depending on whether the person belongs to fhg or fho and if the person isn't found then I want them to try again.

 

Ideally, I would like someone to enter as many digits of the last name as necessary to uniquely identify someone. Is that possible?

 

Assuming it isn't, I'm using a fixed length of 4 letters

 

So the letters of last name are translated into digits

 

AAAA belongs to fhg

DDDD belongs to fho

 

I've got a text file that looks like this

2222,fhg

3333,fho

3333,fhg

4444,fho

 

And an OGM that calls the plug in finddata.exe

 

finddata will return in a variable called type either fhg or fho

 

then I go to OGM %type% which will be either the OGM fhg or OGM fho

 

So far so good, but how do I use the result=fail

to play a messsage that says not found and then goes back to the ogm that asks them t enter the name?

Link to comment
Share on other sites

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...