Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to declare random bunch of PUBLIC variables?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Best way to declare random bunch of PUBLIC variables?
Miscellaneous
Thread ID:
00692500
Message ID:
00692500
Views:
55
Gee... I am full of questions today.

I have a VFP 6.0 .PRG program with a bunch of variables declared as shown below.
My question is -
I can have up to 50 medic, O_att, O_succ, and O_pts variables each.
What's the best way to declare them as the number of medics can fall anywhere between 0 and 50? Same with O_att and the others. I don't want to waste time making medic7, medic8 and so on up to 50 if there is a better way.
Thanks for the advice.
PUBLIC medic1 medic2 medic3 medic4 medic5 medic6
PUBLIC O_att1 O_att2 O_att3 O_att4 O_att5 O_att6
PUBLIC O_succ1 O_succ2 O_succ3 O_succ4 O_succ5 O_succ6
PUBLIC O_pts1 O_pts2 O_pts3 O_pts4 O_pts5 O_pts6
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform