[Gambas-user] Example to IIF: what is meant here

Fabien Bodard gambas.fr at ...626...
Fri Oct 12 13:31:00 CEST 2012


2012/10/12 Rolf-Werner Eilert <eilert-sprachen at ...221...>:
> Just a question:
>
> Am 10.10.2012 16:20, schrieb Jussi Lahtinen:
>>> Print ("you have ")&  X&  iif(x>1, ("message"), ("messages "))
>>>
>>
>> This is still not good. Better would be:
>>
>> Print Subst(("you have&1&2"), x, IIf(x>  1, ("messages"), ("message")))
>
> Why do you put the () around the ""?
>
> According to the Subst help page, a simple "" should do.
>
> Rolf
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

because it tell to the compiled that these string must be traducted.

"normal"
("translated")

read this please

http://gambasdoc.org/help/howto/translate?v3

-- 
Fabien Bodard




More information about the User mailing list