Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String to a constant?

Status
Not open for further replies.

sanka69

Programmer
May 15, 2002
6
0
0
GB
Hi all,
I have a type definition;

type
AdfPatterns = TOleEnum;
const
FPNone = $00000000;
FPGray6 = $00000001;
FPGray12 = $00000002;
FPGray25 = $00000003;
FPGray50 = $00000004;
FPGray75 = $00000005;

.....

If all I had was 'FPGray75' stored in a string, what would be an efficient way to obtain the 5?

thank you for any help.

Regards,
Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top