Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-05

TDBF Indexes

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jon Foster

I've been trying to create an index based on a boolean field and a integer. I can't find any documentation on constructing multi-column indexes. Being distantly familiar with VFP I figure that I'd have to apply some functions to the arguments and concatenate them together. However I don't know what functions are available and if this theory is true. At a minimum a pointer as to which source files to look at would be helpful.

TIA - Jon

Jon Foster JF Possibilities, Inc. 541-410-2760 Making computers work for you!

Reply by email

Jon Foster
to Jon Foster

I found the expression parsing stuff in:

fpcsrc/packages/fcl-db/src/dbase/dbf_prscore.pas

But it doesn't appear that I have a method of converting bools to a string. I'll have to come up with something. Does anyone know what the typical xBase function for this is? Its been way too long since I've worked with it to remember.

THX - Jon

Jon Foster wrote 11 lines
I've been trying to create an index based on a boolean field and a integer. I can't find any documentation on constructing multi-column indexes. Being distantly familiar with VFP I figure that I'd have to apply some functions to the arguments and concatenate them together. However I don't know what functions are available and if this theory is true. At a minimum a pointer as to which source files to look at would be helpful. TIA - Jon
Jon Foster JF Possibilities, Inc. 541-410-2760 Making computers work for you!

Reply by email

Jon Foster
to Jon Foster: I've been trying to create an index based on a boolean field and a integer. I can't find…

I figured out some of the issue is that apparently I can't see variables in the parent procedure from a nested child procedure. At least not completely all of the time. Is this a known limitation?

TIA - Jon

Jon Foster wrote 11 lines
I've been trying to create an index based on a boolean field and a integer. I can't find any documentation on constructing multi-column indexes. Being distantly familiar with VFP I figure that I'd have to apply some functions to the arguments and concatenate them together. However I don't know what functions are available and if this theory is true. At a minimum a pointer as to which source files to look at would be helpful. TIA - Jon
Jon Foster JF Possibilities, Inc. 541-410-2760 Making computers work for you!

Reply by email

Marco van de Voort
to Jon Foster
Jon Foster wrote
I figured out some of the issue is that apparently I can't see variables in the parent procedure from a nested child procedure. At least not completely all of the time. Is this a known limitation?

That is according to the language definition of the scopes. This is logical since the scope of the child might not exist yet in the parent.

Or do you mean the other way around.

Reply by email