VBA code working on multiple languages

V

Vadim Gerya

Is it possible to make the following code running on English and, for
example, Russian locales correctly
----------
Dim Rejected_ as String
Dim Task_ as Task
...
Rejected_ = FieldNameToFieldConstant("Rejected") ' Rejected - custom field
of "Flag" type ("Yes" or "No")
If Task_.GetField(Rejected_) = "Yes" _
Then
..
End If
----------
The problem is : the string value of Task_.GetField(Rejected) is not "Yes"
or "No" in Russian locale. Value is returned in corresponding locale.
How to avoid such "translation" :) ??

Special thanks to Rod Gill for the book "VBA Programming for MOP"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top