开发者

Autogenerated keys in Pilog

What's the best way to go about autogenerated keys for Pilog? i've been digging arou开发者_开发技巧nd a bit and can't find anything related.

Hints and pointers would be most appreciated. Thank you.


You get the same behavior as auto increment in for instance MySQL with this one: http://software-lab.de/doc/refG.html#genKey

I use it a lot in the VizReader code.

I'm not so sure I would've used it much though if I had know about the (id) function from the start: http://software-lab.de/doc/refI.html#id

In my case it's all about displaying a nice id that is easy to relate for humans and JavaScript in my non-traditional gui and as you can see both approaches accomplish that but that latter is imo more elegant.

/Henrik Sarvell

(Copied verbatim form Henrik Sarvells' answer.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜