Skip to main content
IvanGn
Participant
September 4, 2018
解決済み

Filemaker Error Code?

  • September 4, 2018
  • 返信数 2.
  • 535 ビュー

Hi everyone,

Its been stumping me for a few days and I thought I'd ask the experts out here.

Basically, its not recognizing my variable, although it has been set already.

Am I using the wrong syntax?

I'm using ColdFusion 10 and using Filemaker Pro Advanced 15.

    このトピックへの返信は締め切られました。
    解決に役立った回答 pete_freitag

    Try using cfqueryparam -- it is also more secure:

    WHERE IDStudent IN (<cfqueryparam value="#StudList#" list="true" cfsqltype="cf_sql_varchar">)

    Also you may get a database error with an IN statement if your variable StudList is empty.

    返信数 2

    pete_freitag
    pete_freitag解決!
    Participating Frequently
    September 4, 2018

    Try using cfqueryparam -- it is also more secure:

    WHERE IDStudent IN (<cfqueryparam value="#StudList#" list="true" cfsqltype="cf_sql_varchar">)

    Also you may get a database error with an IN statement if your variable StudList is empty.

    IvanGn
    IvanGn作成者
    Participant
    September 4, 2018

    Thank you so much! It worked like a charm!

    WolfShade
    Legend
    September 4, 2018

    I have zero experience with Filemaker Pro, but I did find this in a Google search.  I hope it helps.

    V/r,

    ^ _ ^