Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ha ha ha! Try this! sending VFP for a loop...
Message
From
10/04/1999 01:07:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00206525
Message ID:
00207154
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform