change yes/no boolean field to another language in datagrid 
Author Message
 change yes/no boolean field to another language in datagrid

hi
i use a component and vb6 (sp5); i have this boolean
field and in the datagrid the field shows as -1 or 0; i
made some code and now shows as yes/no; i want it to
appear as sim/n?o, in my country language.
When earlier i used an ADODC and a datagrid, i solved the
problem clicking the datagrid and going to properties,
format the field and said the field as boolean showing
sim/n?o; but as i use the recordset created when i invoke
the component, a cant do that;
How can a solve this?
thanks in advance


Tue, 26 Jul 2005 04:26:42 GMT  
 change yes/no boolean field to another language in datagrid
Does this give you Yes / No when you run it on your system, or does it use
your language (Format$ is supposed to be language-aware).  I can't remember
if "Yes/No" is a valid format$ argument for yes/no, or whether it's
returning the literal string.

Private Sub Command1_Click()

   Print Format$(True, "Yes/No")
   Print Format$(False, "Yes/No")

End Sub

Quote:
> Yes

   No

--

Randy Birch
MVP Visual Basic
http://www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.


hi
i use a component and vb6 (sp5); i have this boolean
field and in the datagrid the field shows as -1 or 0; i
made some code and now shows as yes/no; i want it to
appear as sim/n?o, in my country language.
When earlier i used an ADODC and a datagrid, i solved the
problem clicking the datagrid and going to properties,
format the field and said the field as boolean showing
sim/n?o; but as i use the recordset created when i invoke
the component, a cant do that;
How can a solve this?
thanks in advance



Tue, 26 Jul 2005 11:49:13 GMT  
 change yes/no boolean field to another language in datagrid
hi
thanks for answering
it does use my language: prints Sim / n?o
Quote:
>-----Original Message-----
>Does this give you Yes / No when you run it on your

system, or does it use
Quote:
>your language (Format$ is supposed to be language-

aware).  I can't remember
Quote:
>if "Yes/No" is a valid format$ argument for yes/no, or
whether it's
>returning the literal string.

>Private Sub Command1_Click()

>   Print Format$(True, "Yes/No")
>   Print Format$(False, "Yes/No")

>End Sub

>> Yes
>   No

>--

>Randy Birch
>MVP Visual Basic
>http://www.mvps.org/vbnet/
>Please respond only to the newsgroups so all can benefit.



>hi
>i use a component and vb6 (sp5); i have this boolean
>field and in the datagrid the field shows as -1 or 0; i
>made some code and now shows as yes/no; i want it to
>appear as sim/n?o, in my country language.
>When earlier i used an ADODC and a datagrid, i solved the
>problem clicking the datagrid and going to properties,
>format the field and said the field as boolean showing
>sim/n?o; but as i use the recordset created when i invoke
>the component, a cant do that;
>How can a solve this?
>thanks in advance

>.



Tue, 26 Jul 2005 19:30:54 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Yes/No and VBA Boolean problem

2. Format Boolean to Yes/No

3. How to convert a Yes/No field to a numeric field

4. Help - Access yes/no fields upsized to SQL Server SQL_BIT fields

5. How can i change the default language to local language

6. Boolean column in Datagrid

7. Boolean check ticks in datagrid

8. Update boolean values in datagrid

9. Datagrid Boolean Column

10. Help with Datagrid and boolean column

11. Datagrid w/boolean

 

 
Powered by phpBB® Forum Software