Thread: ansstring

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    12

    ansstring

    how do you convert a ansistring to a char in c++ builder

  2. #2
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    a string cannot be a character, but can be (and is) a character array.

    strcpy(*character[], ansistring); // I think that will work.... it has been a while

    char second_char = character[0];
    Blue

Popular pages Recent additions subscribe to a feed
Website Security Test