D4 to D5 TFieldMap Change

I'm trying to upgrade some code from Delphi 4 to Delphi 5. The code that worked in delphi 4 was

Parser := TExprParser.Create(CursorTable, Expression, [], [], '', nil);

It doesn't work in D5 because the Create funciton has a seventh parameter of TFieldMap. I'm not sure what i should pass in the last parameter in order to make it work in D5. I'm guessing that i'll just pass a null value like the previous parameters, but i can't find the right sytax of a varible to pass into that section. Thanks for any suggestions

Comments

  • : I'm trying to upgrade some code from Delphi 4 to Delphi 5. The code that worked in delphi 4 was
    :
    : Parser := TExprParser.Create(CursorTable, Expression, [], [], '', nil);
    :
    : It doesn't work in D5 because the Create funciton has a seventh parameter of TFieldMap. I'm not sure what i should pass in the last parameter in order to make it work in D5. I'm guessing that i'll just pass a null value like the previous parameters, but i can't find the right sytax of a varible to pass into that section. Thanks for any suggestions
    :
    :
    The TFieldMap is available in the help files. I think you can savely set it to "FieldTypeMap" and try your code to see if it does what you want it to do. In the D5-source codes I only found the FieldTypeMap passed to the Create() method.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion