Subj : Translating CASE from BAS To : Herbert Bushong From : Mike Luther Date : Fri Feb 09 2001 02:53 pm I posted to Sarah .. HB> No, it doesn't help with that much at all. :) HB> You could do a series of nested switch statements HB> (check first letter, check HB> second letter, etc... until you've narrowed it down to HB> a unique value), but HB> that could get real hairy. what my auto-transator does with the stuff now. It converts the SELECT CASE to a slurry of equivalent IF/THEN constructs. The logic knows how to swap between variable types on the basis of another stunt I've settled on. In my case I ignored the Bill Gates wry humor advice to throw away the trailing variable type identifiers on all variables! I kept all mine all throughout my work. So . .. I made up my mind I would keep that up by kludge in C/C++. The translator looks or say, the (%) mark as the trailing Ident. Then in the conversion process it converts that always to a trailing (_int) convention. The (&) becomes (_lng), for example. After that, getting the translator to be able to figure out the nuances of what to do with (_str) data, etc., is *MUCH* easier, if you call printf any substitute for PRINT USING .... wry grin.. Sometimes I still think that MALLOC is the inverse of MALLOX ... ;) Mike @ 117/3001 --- Maximus/2 3.01 * Origin: Ziplog Public Port (1:117/3001) .