DataSet Handling function

Posted By: MatPed

DataSet Handling function - 03/16/20 13:52

With dataSet() function I can set any value in any dataset position.
How can I do the same with a string?
Thank you
Posted By: jcl

Re: DataSet Handling function - 03/16/20 14:58

For instance:

string MyString = dataStr(...);
strcpy(MyString,"123");

Take care not to exceed the field length.
Posted By: MatPed

Re: DataSet Handling function - 03/16/20 15:35

... because the type string is a pointer?
Posted By: AndrewAMD

Re: DataSet Handling function - 03/16/20 15:58

Yes. string is typedef'd to char* (pointer to char).
Posted By: MatPed

Re: DataSet Handling function - 03/16/20 22:41

Thank you; still too Pascal minded...
© 2024 lite-C Forums