Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why define constants
Message
From
25/10/2006 11:12:20
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01164235
Message ID:
01164405
Views:
13
>This will also work fine:
>
#If hLanguage="en"
>lcERR_MESS_NO_DISK = "There is no disk in the selected drive.  Please ensure that there is a disk in the drive" + CHR(13) + ;
>              "reselect the 'Save Changes' Checkbox and click 'Execute' again.  The process will continue" + CHR(13) + ;
>              "from where you left off"
>lcCap_no_disk = "No Disk in Drive"
>#elif hLanguage="sr"
>lcERR_MESS_NO_DISK = "Nema diska u jedinici.  Turi bre neki disk u nju" + CHR(13) + ;
>              "pa ponovo klikni kućicu 'Snimi' i dugme 'Izvrši'.  Proces će se nastaviti" + CHR(13) + ;
>              "tamo gde smo stali."
>lcCap_no_disk = "Nema diska u jedinici"
>#endif
>lcMB_ICONSTOP, "16"
>
>...
>
>MESSAGEBOX( m.lcERR_MESS_NO_DISK, m.lcMB_ICONSTOP, m.lcCap_no_disk)
I was doing that too, for a while, because of some FP bug then (don't remember what it was). It's pretty much the same to me - except that in this case you can't have this in a .h file, because VFP doesn't read any other statements from it, just those prefixed with a #.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform