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/'