Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UDF AMPM() is inconsistent???
Message
From
04/06/1998 02:44:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00104276
Message ID:
00104586
Views:
23
Snip...
>Thanks Cetin and Rod
>
>But...
>
>Rod...
>
>The reason I'm in the debugger watch window in the first place is because the string DTOC(DATE())+" "+AMPM(TIME()) is "undefined" so I was trying to figure out why. It's still confusing that it prints from the command window but not through the program. I also discovered that TYPE( AMPM(TIME())) is "U" if that helps.
>
>Cetin...
>
>I need to generate documentation using a "Template" that is based on Clipper, so it uses the line DTOC(DATE())+" "+AMPM(TIME()) in several places. I was hoping to accomodate this syntax so I don't have to rewrite the templates.
>
>Thanks again
Larry,
Debugger won't access a UDF, normal behaviour. Try this one create a very simple function (ie just: return 5). Include it in a prg (or be the prg itself w/o set proc to). Set proc to that prg and call in debugger watch. You would get "Exp.. not evaluated". Now why failing in prg, that's the problem. In debugger instead of watch use trace for that. In first line of AMPM add a wait window or suspend to see if ever it's called.
Cetin
Ç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