Didn't understand that scripting
Posted: Fri Feb 17, 2006 10:49 pm
Hello,
I am really confused about Installaware and I hope someone can help me out of this problem:
A few days I ask how to check the length of an String. Cause I do not find any information, only an Function "Parse String". I didn't understand this function but the Team gaves me great help.
However, now Iam at an point, where I think to validate an Serialnumber with Installaware is really impossible, if it is possible, I ask the Team to remove the Header "Without rocket Science"
Ok, I have now an, in my eyes, very complicated method to check if my string is 30 chars long. But one of the most common and used featrues I missed. How can I trim an Textfield? I run now in big trouble cause some users enters the key with an space (Copy&Paste problem) Now the function can check the length with Parse String but I can only Trim the result. So I do not want to have 50 lines in my code with Parse string calls. Parse this part then this and then this sometimes I get the real length.
So please give me an accurate way to check an Serialnumber an really good way and not an Rocket science way. I mean "Trim" is an basic development function!
However I found some other problems. After Parse Sring (PART1 and PART2) I tried to work with PART1 or PART2. But I cannot do anything with this. If I try
Everyting is empty. If I try
KEYA1 is the Text PART1. If I try
KEYA1 is empty.
So please please give me help!
Ocrana
I am really confused about Installaware and I hope someone can help me out of this problem:
A few days I ask how to check the length of an String. Cause I do not find any information, only an Function "Parse String". I didn't understand this function but the Team gaves me great help.
However, now Iam at an point, where I think to validate an Serialnumber with Installaware is really impossible, if it is possible, I ask the Team to remove the Header "Without rocket Science"

Ok, I have now an, in my eyes, very complicated method to check if my string is 30 chars long. But one of the most common and used featrues I missed. How can I trim an Textfield? I run now in big trouble cause some users enters the key with an space (Copy&Paste problem) Now the function can check the length with Parse String but I can only Trim the result. So I do not want to have 50 lines in my code with Parse string calls. Parse this part then this and then this sometimes I get the real length.
So please give me an accurate way to check an Serialnumber an really good way and not an Rocket science way. I mean "Trim" is an basic development function!
However I found some other problems. After Parse Sring (PART1 and PART2) I tried to work with PART1 or PART2. But I cannot do anything with this. If I try
Code: Select all
MessageBox: X, Key is 30 long $PART1$ and $PART2$
Code: Select all
Set Variable KEYA1 to PART1
Code: Select all
Set Variable KEYA1 to $PART1$
So please please give me help!
Ocrana