Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Uniqueness of index PRIMARY is violated
Message
 
To
10/10/1998 09:40:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00144393
Message ID:
00145673
Views:
35
>One thing I like and the other I don't. I like the suffix idea - if you maybe remember the Inverse Hungarian Notation thread, some time Summer'97, you may know what I mean. We've spilled lots of bytes over the subject at the time.

I'm sure you did. And I'm sorry I missed that. I enjoy arguing far more than programming. :)

The term "Hungarian notation" is actually rather tricky. Originally, Simonyi suggested using prefixes to identify _use_, not type. The current "lpsz" crap is counter to his original ideas. I don't use that kind of "Hungarian" in my C++ code, though I do use it in Fox (where the compiler can't tell me if I'm mismatching data types).

>I specifically want my, say, customer code to be called "custcode" no matter where it appears.

I generally favor that, myself.

>If they were prefixed, I'd have to do lots of "Select ... mbr_cust as dzw_cust" or write lengthy Insert ...values ... (mbr_this, mbr_that, ...).

I guess it depends on what kind of SELECTs you most commonly write. In your case, prefixes would slow you down. In my case, using prefixes avoids aliasing in SELECTs.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform