-
When you do the following It will not trim advice would be appricated
DIM PROBLEM AS STRING * 50
PROBLEM = "PROD"
PROBLEM = RTrim(Mid(PROBLEM , 1, InStr(1, PROBLEM , " ") - 1))
FOR SOME REASON IT DOES NOT SEE THE SPACES BEHIND PROD. IF I ADD A CHAR TO THE STRING LIKE "^" AND LOOK FOR IT, IT WORKS FINE...
Thanks For the help
Brooke
-
You have declared your string as a fixed length string.
This means that whatever value you put into the variable will be padded out with spaces. So that the number of characters equals the size of the string.
-
I know that
to pull from an ini file i must have a buffer to throw the values in... Is there anyway to retrieve the text in the buffer with out putting in stop values?
-
Here's how it's done
Code:
sBuffer = Space$(99)
nDummy = GetPrivateProfileString("Defaults", "IntegrationType1", "", sBuffer, 99, gsIniName)
gsDefIntegType1 = Left$(sBuffer, nDummy)
-
Cool
So you haft to throw into a padded string before it can be trimmed... Thanks didn't know that...