Click to See Complete Forum and Search --> : numeric vs strings
TraderBoy
October 2nd, 1999, 07:49 PM
I noticed that alot of my doc data are ints & floats, which I have to convert to strings when using many of the controls . . . so wouldn't it be better to just declare them as CStrings or regular strings since my conversions to ints & floats would be less than my conversions to strings? Hope this makes sense. Guess I would like to have some kind of rule on deciding what types to declare the data in doc (which will be persistant. Thanks for anyone's input!
MikeM
October 3rd, 1999, 06:17 AM
I would say that if your data isn't really textual then using CString's would be excessive. You don't really need the comparatively large memory overhead of a CString object, so I would just keep them as simple numeric types and write some generic conversion functions to convert the different numerics to strings and back again.
MikeM
TraderBoy
October 3rd, 1999, 10:36 AM
Mike, thanks. Appreciate your input.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.