how to convert this simple c code to pascal? lazarus / 62-General ---------------------------------------------------------------------- billyb123 · 2017-11-18 00:36 its simple variable definition, not really experienced in pascal, whats the pascal variation of following c code? Code: [Select]char *blabla[] = {     "qwerty",     "asdfg",     "message",     "this is" }; so, i need blablab to be of type PPChar, how to define it to match the above? ---------------------------------------------------------------------- molly · 2017-11-18 11:25 Quote from: billyb123 on November 18, 2017, 01:36:05 amso, i need blablab to be of type PPChar, how to define it to match the above? PPChar ? Isn't it an array of PChar, as char  * is a pointer to a char (Pascal equivalent is PChar) and blabla[] is an array ? Code: [Select]const   blabla : array[0..3] of PChar = (     'qwerty',     'asdfg',     'message',     'this is'   ); ---------------------------------------------------------------------- billyb123 · 2017-11-18 12:02 i simplified the question.. i need PPChar in a certain function but will try to pass array of pchar to it (it is the same thing).. ---------------------------------------------------------------------- molly · 2017-11-18 12:19 In case PPChar is required then don't forget to close your array with a nil as that is th usual way to close such an array. Other then that, you should be good to go. ---------------------------------------------------------------------- Leledumbo · 2017-11-18 17:17 Quote from: billyb123 on November 18, 2017, 01:02:17 pmi simplified the question.. i need PPChar in a certain function but will try to pass array of pchar to it (it is the same thing).. I assume your actual question is: "how to pass an array of pchar to a function expecting ppchar". In that case just pass @ArrayOfPChar[LowestIndex]. ---------------------------------------------------------------------- billyb123 · 2017-11-18 17:36 Thanks for the replies guys