This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- ComboBox Values -- Length is always 1024
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 31, 2008
10:55 AM
ComboBox Values -- Length is always 1024
Why is every value that I return from a combo value is padded to the length of 1024?
I am using C# for custom actions and I just figured out why every method is failing. What is being appended? Spaces? Returns?
I ask because in certain instances, .Trim() does NOT remove the excess characters which is a problem.
What needs to happen to resolve this?
I am using C# for custom actions and I just figured out why every method is failing. What is being appended? Spaces? Returns?
I ask because in certain instances, .Trim() does NOT remove the excess characters which is a problem.
What needs to happen to resolve this?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 31, 2008
11:46 AM
Through several rounds of testing, Installshield is padding the data with nulls.
To fix the problem I created a method which will clean it up.
private string SanitizeInstallShield(string data)
{
return data.Replace("\0", string.Empty);
}
To fix the problem I created a method which will clean it up.
private string SanitizeInstallShield(string data)
{
return data.Replace("\0", string.Empty);
}