Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ha ha ha! Try this! sending VFP for a loop...
Message
De
10/04/1999 01:07:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00206525
Message ID:
00207154
Vues:
16
Gil,
I suspect both you and your fellow had the same test.prg (.app, .exe etc) somewhere along a shared path.
Cetin
>Hello guys,
>
>What the code did in my machine was to load the print dialog without reason, and then after I closed it, the getfile dialog came up asking for a file, after closing this dialog, then got an error message.
>
>And yes, I know all of the functions involved in the call and the right syntaxis but when I accidentally added the brackets to the 'test' string it did all this weird stuff.
>
>And I'm surprised it didn't do it on your machines, because I tested the same code on my colleague's machine and got the same thing
>
>
>>>>test = '10/03/00'
>>
>>1) creates a character string called 'test'
>>
>>>>?CHRTRAN(dtoc(test()),'0','')
>>
>>2) file test.prg does not exist
>>
>>3) changing to ?CHRTRAN(dtoc(test),'0','')
>> gives 'function argument value, type or count is invalid'
>> remember 'test' is a character string and
>> DTOC() means convert date format variable to character string
>>
>>4) ?CHRTRAN(test,'0','') gives '1/3/'
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform