no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Next revision | |||
— | en:docs:fapi:vioreadcharstr [2018/09/01 03:51] – created prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | This call reads a string of characters from the display starting at the specified location. | ||
+ | |||
+ | ==Syntax== | ||
+ | | ||
+ | |||
+ | ==Parameters== | ||
+ | ;CharStr (PCH) - output : Address of the buffer where the character string is returned. | ||
+ | ;Length (PUSHORT) - input/ | ||
+ | ;Row (USHORT) - input : Starting row of the field to read, 0 is the top row. | ||
+ | ;Column (USHORT) - input : Starting column of the field to read, 0 is the leftmost column. | ||
+ | ;VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, | ||
+ | |||
+ | ==Return Code== | ||
+ | rc (USHORT) - return | ||
+ | Return code descriptions are: | ||
+ | * 0 NO_ERROR | ||
+ | * 355 ERROR_VIO_MODE | ||
+ | * 358 ERROR_VIO_ROW | ||
+ | * 359 ERROR_VIO_COL | ||
+ | * 436 ERROR_VIO_INVALID_HANDLE | ||
+ | * 465 ERROR_VIO_DETACHED | ||
+ | |||
+ | ==Remarks== | ||
+ | If a string read comes to the end of the line and is not complete, then the string read continues at the beginning of the next line. If the read comes to the end of the screen and is not complete, the read terminates and the length is set to the number of characters read. | ||
+ | |||
+ | ===PM Considerations=== | ||
+ | VioReadCharStr reads a character string from the Advanced VIO presentation space starting at the specified location. | ||
+ | |||
+ | ==Example Code== | ||
+ | ===C Binding=== | ||
+ | <PRE> | ||
+ | #define INCL_VIO | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | PCH CharStr; | ||
+ | PUSHORT | ||
+ | USHORT | ||
+ | USHORT | ||
+ | HVIO | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | ===MASM Binding=== | ||
+ | <PRE> | ||
+ | EXTRN VioReadCharStr: | ||
+ | INCL_VIO | ||
+ | |||
+ | PUSH@ OTHER | ||
+ | PUSH@ WORD Length | ||
+ | PUSH | ||
+ | PUSH | ||
+ | PUSH | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Note ====== | ||
+ | |||
+ | Text based on [[http:// | ||
+ | |||
+ | {{page> | ||
+ | |||