Error R0002 Powerbuilder
Contents |
and SafetyAsset NetworkAsset Operations and powerbuilder null object reference at line MaintenanceCommerceOverviewSubscription Billing and Revenue ManagementMaster Data Management for
Powerbuilder Application Execution Error R0039
CommerceOmnichannel CommerceFinanceOverviewAccounting and Financial CloseCollaborative Finance OperationsEnterprise Risk and ComplianceFinancial Planning and AnalysisTreasury and Financial Risk ManagementHuman ResourcesOverviewCore Human Resources and PayrollHuman Capital AnalyticsTalent ManagementTime and Attendance ManagementManufacturingOverviewManufacturing NetworkManufacturing OperationsResponsive ManufacturingMarketingOverviewMarket with Speed and AgilityUnique Customer ExperiencesReal-Time Customer InsightsR&D/EngineeringOverviewDesign NetworkDesign OrchestrationProject and Portfolio ManagementSalesOverviewCollaborative Quote to CashSales Force AutomationSales Performance ManagementSelling Through Contact CentersServiceOverviewEfficient Field Service ManagementOmnichannel Customer ServiceTransparent Service Process and OperationsSourcing and ProcurementOverviewContingent Workforce ManagementDirect ProcurementSelf-Service ProcurementServices ProcurementStrategic Sourcing and Supplier ManagementSupply ChainOverviewDemand ManagementDemand NetworkLogistics NetworkManufacturing Planning and SchedulingResponse NetworkResponse and Supply ManagementSales, Inventory, and Operations PlanningTransportation ManagementWarehouse ManagementSustainabilityOverviewEnvironment, Health, and SafetyProduct Safety and Stewardship NetworkBrowse by IndustryAerospace and DefenseAutomotiveBankingChemicalsConsumer ProductsDefense and SecurityEngineering, Construction, and OperationsHealthcareHigh TechHigher Education and ResearchIndustrial Machinery and ComponentsInsuranceLife SciencesMediaMill ProductsMiningOil and GasProfessional ServicesPublic SectorRetailSports and EntertainmentTelecommunicationsTravel and TransportationUtilitiesWholesale DistributionBrowse Platform and TechnologyAnalyticsOverviewBu
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > PowerBuilder App Exec Error (R0002) - Null object reference Want to Advertise Here? Solved PowerBuilder App Exec Error (R0002) - Null object reference Posted on 2005-11-16 Sybase Database 1 Verified Solution 5 Comments 2,752 Views Last Modified: 2007-12-19 We have a customer who is using an older version of PowerBuilder (5.0). There current application was written for them by a http://scn.sap.com/thread/3668349 company they are no longer able to approach and they have asked me to try and resolve a couple of errors that they are getting. My exposure to PowerBuilder is very limited (to be generous!) but I was hoping to be able to help them out of a hole. One of these is the above error, with the message "Error: Null object reference at line 6 in clicked event of object cb_10 of w_prop_maint." The code for this is: https://www.experts-exchange.com/questions/21632741/PowerBuilder-App-Exec-Error-R0002-Null-object-reference.html 1. str_chosen_address a 2. 3. Open(w_postcode_browse) 4. 5. a = Message.PowerObjectParm 6. if a.Postcode <> '' then 7. // User has chosen an address 8. dwc_prop.Object.property_t_address_1[1] = a.addr1 9. dwc_prop.Object.property_t_address_2[1] = a.addr2 10. dwc_prop.Object.property_town[1] = a.town 11. dwc_prop.Object.property_county[1] = a.county 12. dwc_prop.Object.property_t_postcode[1] = a.postcode 13. end if Can anyone help me identify the cause? Cheers Paul 0 Question by:P_Robinson Facebook Twitter LinkedIn Google LVL 6 Best Solution byBenClark Should also add; If you add a line of code, 1. str_chosen_address a 2. 3. Open(w_postcode_browse) 4. 5. a = Message.PowerObjectParm 6. If NOT IsValid(a) Then 7. // Do what ever Go to Solution 3 Comments LVL 29 Overall: Level 29 Sybase Database 7 Message Expert Comment by:leonstryker2005-11-16 I don't know Power Builder, but do you know what is the value of Message.PowerObjectParm and/or a.Postcode? It seems like a = Message.PowerObjectParm does not really assign a value to a, so on the next line a does not have a Postcode property. Leon 0 LVL 6 Overall: Level 6 Sybase Database 1 Message Expert Comment by:BenClark2005-11-18 There is a Command button, cb_10, whose clicked event, line 6, is referencing a window, w_prop_maint, that has not been opened. If your code IS the clicked event code, then I would say that the PowerObjectParm is passing a reference to the window but the windo
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Same function in different windows in Powerbuilder up vote 1 down vote favorite I have two windows let say w_base1 and w_base2. Now in w_base1 I have below statement written which is working fine. ls_Value = This.GetItemString(ll_CurrRow, "af_value") Now the same above statement I want to use in w_base2 but it is giving below error: Powerbuilder Application Execution Error (R0002) Application Terminated. Error: Null Object reference at line 230 in abcd event of object w_base2. When it terminate the application it comes directly to above statement i.e. ls_Value = This.GetItemString(ll_CurrRow, "af_value") I believe the problem is with af_value which I am not unable to see what actually it is fetching, but as per the above error it is encoutering to Null. Could anyone please help me out on this as soon as possible. powerbuilder share|improve this question asked Jun 3 '09 at 10:56 Amit A few questions: What's your PB version? Where's the statement invoked in the window? In a user-defined function? In a window event? Do you test for a valid datawindow object before calling GetItemString? –Vincent Buck Jun 3 '09 at 12:34 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote Your error says line 230 in abcd event of object w_base2, this sounds like a window, but your code says This.GetItemString(). GetItemString is a DataWindow method and can't be used on a window. Check that your code is actually operating on a DataWindow control. If the type of af_value is not a string, then you will get an execution error (although I think it should be a different error?) Basically this error means you're referencing an object which does not exist or is out of scope. Check if you have a DataWindow object assigned to the DataWindow control too. Things you can rule out: If the contents of af_value is null, then you will get a null in ls_Value, but you will not get this error. If the row or column do not exist, you will get "In