<div dir="ltr"><br clear="all">Thanks for the answer.<br><br>I wanted to do it using Firebird instead of my Pascal code.. now I understand thanks to you, that I need to do it using stored procedure.<br><br>Thanks,<br>
Ido<br><br><div class="gmail_quote">On Sat, Dec 6, 2008 at 4:38 PM, Francisco Reyes <span dir="ltr"><<a href="mailto:lists@stringsutils.com">lists@stringsutils.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">ik writes:<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I wish to create a firebird generator that does bitwise generation rather then ordinal generator.<br>
<br>
I mean:<br>
1 2 4 8 16 32 64 128 etc..<br>
<br>
Does anyone have knowledge how to create such generation in firebird ?<br>
</blockquote>
<br></div>
I am not clear what you are trying to do.<br>
You are trying to generate the sequence above, that much I get.<br>
However, is it a pascal program which will be a firebird stored procedure?<br>
<br>
The algorithm to generate the sequence is trivial so I don't quite follow which part you are having problems with. The generation? The creation of the firebird stored procedure?<br>
<br>
If the question is how to generate the sequence in Firebird and not use FPC, then the answer is that you need to have some sort of stored procedure.<br>
You could even just have a table with the values. _______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div><br></div>