Hi.
I'm new to Procomm but have managed to put together a useful script that saves me from having to type information into a screen by reading records from a text file that "cuts & pastes" various strings from within the record into the various fields on the screen, i.e. the script reads a record then
outputs the first string into the first field,
outputs the "tab" command
outputs the second string into the second field,
outputs the "tab" command,
etc.
The scripts works perfectly when the string being output has less characters than the field it is being output to.
The problem I have is when the string being output has the maximum number of characters that the field on the screen can accept.
When this happens the field that I output the string to automatically tabs to the next field.
I was wondering whether there is any way within the script that I could check the length/number of characters within the string to see whether it is equal to the maximum length of the field on the screen so that I could a "IF / Else" command to decide whether to send the "TAB" command or not!
I'm new to Procomm but have managed to put together a useful script that saves me from having to type information into a screen by reading records from a text file that "cuts & pastes" various strings from within the record into the various fields on the screen, i.e. the script reads a record then
outputs the first string into the first field,
outputs the "tab" command
outputs the second string into the second field,
outputs the "tab" command,
etc.
The scripts works perfectly when the string being output has less characters than the field it is being output to.
The problem I have is when the string being output has the maximum number of characters that the field on the screen can accept.
When this happens the field that I output the string to automatically tabs to the next field.
I was wondering whether there is any way within the script that I could check the length/number of characters within the string to see whether it is equal to the maximum length of the field on the screen so that I could a "IF / Else" command to decide whether to send the "TAB" command or not!