Note that there are some explanatory texts on larger screens.

plurals
  1. POConverting from java to c#
    primarykey
    data
    text
    <p>I need your help. I am converting from java to c# and I have run into a roadblock. I am looking for a c# equivalent of the java Enumeration class. I have gone through the C# Enumeration documentation and I wasn't able to find something that mirror the java version, especially when it came to too methods that I need and these are the Enumeration. hasMoreElements() and the Enumeration.nextElement().</p> <pre><code>protected boolean populateResultSetDataToRRX(Hashtable objStructureHT,String strObjectName ,String strMultiUserCheck) { try{ Enumeration objEnum = null; for (objEnum=objStructureHT.keys(); objEnum.hasMoreElements();){ String strFieldName = (String)objEnum.nextElement(); String strBindFieldName=extractBindField(strFieldName).toUpperCase(); String strDataType = (String)objStructureHT.get(strFieldName); String strFieldValue=""; if(strDataType.equals("date")){ if(objResultSet.getTimestamp(strBindFieldName)==null) strFieldValue=""; else strFieldValue = objResultSet.getTimestamp(strBindFieldName).toString(); }else { strFieldValue = objResultSet.getString(strBindFieldName); } if(!populateRRXField(strObjectName,strFieldName,strFieldValue,strDataType)){ return false; } }// end of for objEnum hasNoMoreElements if (strMultiUserCheck.equalsIgnoreCase("Token")) { objRRX.addField(strObjectName,"Token", objResultSet.getString("Token")); } objRRX.addField(strObjectName,"selected","N"); objRRX.assignErrorStatus(strObjectName, strStatus, "SUCCESS"); return true; } catch(Exception e) { System.out.println("Exception in populateResultSetDataToRRX " + e.getMessage()); return false; } }// end of function populateResultSetDataToRRX </code></pre> <p>Thanks for your help</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload