Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

is there a Spanish equavalent to vbYesNo

Status
Not open for further replies.

jrice174

Civil/Environmental
Nov 8, 2004
129
To define a message box I usally do the following:
Style = vbYesNo + vbCritical + vbDefaultButton2

The latest program I'm working on is going to be used by Spanish speaking customers and I need for the buttons to be labeled as Si/No rather than Yes/No. Is there a way to make the msgbox function do this or do I have to make a form to do this?
 
Replies continue below

Recommended for you

I don't have a subscription there so I don't see the answer.
 
Neither do I. However, if you access the page through the Google search the solutions are visible at the bottom of the page. I'm not sure why it's different clicking the link here vs. from Google, but I checked both FF and IE and it works from Google. I've viewed quite a number of solutions from that website through Google. I guess the webmaster over there doesn't know what's going on.

-handleman, CSWP (The new, easy test)
 
Amigos,

If the client's OS is in Spanish then the MsgBox will display "Yes, No, Cancel" as "Sí, No, Cancela" automatically. No work is required on your part.

"If stupidity got us into this mess, then why can't it get us out?" - Will Rogers (1879-1935) ***************
 
I think you may be able to change your own OS and give it a try. Sorry - don't remember HOW - but I assume it would be in the System Settings
 
This computer has an English version of VB6, but the opsys is a Spanish version of MS Win XP. Just to be 100% certain, as I sometimes read English words as Spanish and Spanish words as English in my sometimes very mixed up head, I just tested the msgbox function and it is as I said, "Yes, No, Cancel" automatically appears as "Si, No, Cancelar".

MiketheEngineer,
You can't change MS Windows languages via settings. You must buy copy of MS XP or Vista - Español. (Heck maybe by the name maybe all "Vista" systems are español, I only have a Spanish copy of Vista.) I have also had Turkish versions of MS Windows, as I had to purchase a laptop while working in Turkey. I did not understand Turkish, so had to change the opsys to English. It was very difficult to install an English opsys on a computer that had a Turkish opsys previosly. Afterwards I would still get a few messages in Turkish. With any given language MS opsys I know about, you can only change international date and currency settings.

"If stupidity got us into this mess, then why can't it get us out?" - Will Rogers (1879-1935) ***************
 
esptl3.png





"If stupidity got us into this mess, then why can't it get us out?" - Will Rogers (1879-1935) ***************
 
Thanks so much for your help. We found someone that even tested this for us and it works great just using the vbYesNo with the OS set to Spanish.

I've found so many great things on this site and in most cases found that the harder the problem seems, the easier the solution. Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor