The problem you have is that the getValue function works on an instance of
CSpDisplayField

You need either:
String station = getDisplayField("CbStations").getValue().stringValue();

or

String station = getDisplayFieldValue("CbStations").stringValue();

Which both do about the same thing.

Brendan
TeamNetDynamics






"Howarth Dan" <[EMAIL PROTECTED]> on 08/20/99 11:46:13 AM

To:
      "'[EMAIL PROTECTED]'"<netdyn
      [EMAIL PROTECTED]>
cc:    (bcc: Brendan Johnston/Contractor/CF/CCI)
Subject:  [ND] Newbie Question




Am brand-new to NetD and am attempting to develop our first app and I'm
having problems with the code to retrieve the selected value from a combo
box called CbStations.  The code I have is:

String selectedStation =
CSpDisplayField.getValue("CbStations").stringValue();

It fails with the following error:

java:23: Incompatible type for method. Can't convert java.lang.String to
int.
          String selectedStation =
CSpDisplayField.getValue("CbStations").stringValue();

any help on the correct coding syntax would be greatly appreciated. thanks.
PG&E Gas Transmission Texas and any other company referenced herein which
uses the PG&E name or logo are not the same company as Pacific Gas and
Electric Company, the California utility.  These companies are not
regulated by the California Public Utilities Commission, and customers do
not have to buy products from these companies in order to continue to
receive quality regulated services from the utility.
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]




_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to