On 27/01/06, John Pearson wrote: > Why can't I replace the text in this command with a string? > > [insert("FileName", "RowNum","ColNum", "Number")] > > I want to do this: > > char string[] = "123"; > [insert("FileName", "RowNum","ColNum", string)] > > It won't work. Why? > > Thanks > John > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > since string is an array, wont the parameter call treat it as a pointer? What happens if you try [insert("FileName", "RowNum","ColNum", string[])] or if string is a constant you could define it as "123" maybee? Or redefine the function to handle pointers. Richard - who's not a C expert by ant means & could be completely wrong. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist