I am trying to do my first test project in Gambas after maybe 12 years not looking at VB.. This would a basic checker tool to assist me writing titles & keywords for my amazon listings and to calculate fee and taxes etc. I am facing some problems or maybe I don't understand to work with it yet. Some help would be appreciated to guide me solve the riddles:
When I close the application / form it clears the text from clipboard (in case I copy something from TextBox).. how can I fix it?
And below code to validate a product title is reading hyphen (-) as invalid character from TextBox input (typed or pasted).. though the character '-' is included in the pattern.. idk why?
.....
For i = 1 To Len(TextBox2.Text)
If Mid(TextBox2.text, i, 1) Not Like "[A-Z, a-z, 0-9, ',', '.', '-', ' ', '/']" Then
ErrorString = ErrorString & Mid(TextBox2.Text, i, 1)
PatMatch = False
Endif
Next
If PatMatch = False Then
TextBox1.Text = Trim(ErrorString)
TextBox1.Foreground = Color.DarkRed
Else
TextBox1.Text = "None"
TextBox1.Foreground = Color.DarkGreen
Endif
.....