To determine the length of a null-terminated string, and display the value of the string and its length, code:.
To move a null-terminated string to an alphanumeric string, but delete the null, code:. Experienced software developer. Skills in Development, Coding, Testing and Debugging. Also skills in Mainframe. View all posts by Srini. Facebook twitter Instagram. I've been told there's a way compiler directive or another to have pic X n data items to behave as C-strings binary zeroes appended to the end of the data item.
Eg, move "Something" to mystring. So far, I've found no evidence of this in the MicroFocus documentation. Is all this true or legend? Jacques, It is definitely true and, who knows, in years to come it may develop into a legend!
Jacques, Fact not fiction. Well I'll be damned! From the NetExpress 3. The resultant literal is equivalent to concatenating X"00" a null byte to the end of the specified string.
I could find no trace of this in the printed documentation. Upgrade from MF WB 3. Decided to replace character screens with GUI? If so, which interface? Decided to get into OO? For instance, a pointer to a Converter passed as argument to conversion APIs. Inter-language communication is often problematic.
Similar sections should be added for other platforms. For performance, it is better to perform these steps once before the first call and to save the returned values for future use the sample programs get the address of APIs for each call, for the sake of logging; production programs should get the address once and reuse it as many times as needed.
Errors may happen if the DLL name is not correct, or the string is not null-terminated, or the DLL file is not available in the current directory or in a directory included in the PATH system variable. After calling an API, the returned error code should be checked when relevant. Code to check for error conditions is illustrated in the sample programs. Three sample programs are supplied with this document.
0コメント