C# syntax issues again:
Trying to get the next batch number for SO Invoice entry
string sBatchNo = """";
DispatchObject sage = new DispatchObject(pvx.InvokeMethod(""NewObject"", ""SO_Invoice_bus"", oSS.GetObject()));
int iBatchEnabled = 0;
iBatchEnabled = (int)sage.InvokeMethod(""nBatchEnabled"");
if (iBatchEnabled == 1)
{
retval = (int)sage.InvokeMethod(""nSelectbatch"",sBatchNo);
};
response[""BatchNo$""] = sBatchNo;
response[""success""] = true;
No errors (iBatchEnabelretval = 1), but sBatchNo is still """" at the end of it.
Any ideas?