hi Albert,

but how to define the "parm_operator", and set the value?for e.g parm_operator = "=", or "!=" etc.



daniel


Albert Akuamoah <[EMAIL PROTECTED]> wrote:

Most dynamic string operations are done in axapta by taking advantage of the xppcompiler class.  you can also create an sql statement and pass it a string.
take advanatge of the += operator for string objects, so str sqlstatment = "delete_from TblA where";

if(condition1)
sqlstatment +="TblA.FieldA parm_operator _value1";
if(condition2)
sqlstatment += "TblA.FieldA parm_operator _value2";

take care.



daniellim_yh <[EMAIL PROTECTED]> wrote:


hi all,

i need to do somoething like this and wonder it can be done in
axapta:

void deltbl(anytype parm_operator, str _value)
{
  delete_from TblA where TblA.FieldA parm_operator _value;
  //i need to pass in dynamic operator, for e.g "like", "==",
  // "!=" as parm_operator
}

can it be done in axapta?i dont want to use switch case because my
actual situation have more combinations, if this can be done it save
me lot of time and effort.

thx in advance.

daniel







Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
 
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


           
---------------------------------
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!

[Non-text portions of this message have been removed]





Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
 
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


           
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.

[Non-text portions of this message have been removed]





Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to