|
-
April 27th, 1999, 12:27 PM
#1
Token Pasting at run time
I have an MS Access database with 100 fields. For simplicity, I have just named them F1, F2, F3,....F100. I have to develop the front end using MFC and ODBC.
The CRecodSet class will now have one hundred variables called m_F1, m_F2,.....m_F100. This is rather cumbersome to handle. Is there a way to put
them in an array or something, so that I can handle them in a loop ?
Another relevant question : I know that the preprocesser has a token pasting
mechanism (##) to concatenate two strings. Is there a similar way to generate variable names during *run time* by pasting two strings ?
Rajaraman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|