Untitled Document
Microsoft Dynamics RMS Experts
  Register   Login
 Search
RMS Experts
 
  You are Here: Dynamics RMS Community ... Dynamics RMS and POS Forums
 
RMS and POS Forums
Subject: Inserting objected into Session.Variable

You are not authorized to post a reply.   
Author Messages
amrita
Posts:2

09/29/2010 1:02 AM Alert 

Can we assign objects (such as Classes object or structure ) to session.variable ?

Dim objEmp As New stuEmployee

objEmp.intEmpId = 1

objEmp.strName = "Test"

CurrentSession.Variable(1) = objEmp

This line throws " An unknown error occured"

Please advice.

Mixer
Posts:69

09/29/2010 9:30 AM Alert 
No, you have to serialize the object.

Anthony
You are not authorized to post a reply.
Forums > Microsoft RMS and POS > RMS Add-ins Discussion > Inserting objected into Session.Variable



ActiveForums 3.6
Sponsor
(c) 2006-2012 Retail Hero ®