Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
A.Acheson
in reply to: Lupe_Stewart

There was some spaces in the Names you were using  "UNIT NUMBER"   "PART NUMBER"  just like parameter names you cannot have spaces.  

 

Also

myparams = Part Number.Split("-")

Should Be

myparams = SALE_ORDER_.Split("-")

 

Working:

Dim SALE_ORDER_ As String
SALE_ORDER_ = iProperties.Value("Project", "Part Number")
myparams = SALE_ORDER_.Split("-")
SALE_ORDER_ = myparams(0)'123456
UNIT_NUMBER = myparams(1)'01
PART_NUMBER = myparams(2)'01

MessageBox.Show(SALE_ORDER_, "Title")
MessageBox.Show(UNIT_NUMBER, "Title")
MessageBox.Show(PART_NUMBER, "Title")

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan