Print Page | Close Window

CustomProperties with Powerbuilder

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=16546
Printed Date: 28 September 2024 at 10:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CustomProperties with Powerbuilder
Posted By: BUCK
Subject: CustomProperties with Powerbuilder
Date Posted: 31 March 2010 at 11:05am

I translated the VB samples into Powerbuilder, but I have a problem to select customproperties (calendar 13.3.1) :

iOleEvent.CustomProperties("process_RecurrenceState") = ds_events.GetItemNumber(al_row, 'RecurrenceState')
iOleEvent.CustomProperties('process_RecurrencePatternID') = ds_events.GetItemNumber(al_row, 'RecurrencePatternID')

This syntax does not seem supported by powerbuilder => Illegal expression on left side of assignment

How to select customproperties with Powerbuilder ?



Replies:
Posted By: SuperMario
Date Posted: 31 March 2010 at 1:17pm
Maybe you want:

iOleEvent.CustomProperties.Property("process_RecurrenceState")


Posted By: BUCK
Date Posted: 31 March 2010 at 1:47pm

I had also tried this syntax with the same result


Posted By: Obelix
Date Posted: 28 April 2010 at 3:08am
Hello Buck,
 
You must change the () to [].
 
iOleEvent.CustomProperties["process_RecurrenceState"] = ds_events.GetItemNumber(al_row, 'RecurrenceState')
iOleEvent.CustomProperties["process_RecurrencePatternID"] = ds_events.GetItemNumber(al_row, 'RecurrencePatternID')
 
Have an nice day!


-------------
CodeJock Suite 13.1
Powerbuilder 11.5
Windows Vista SP2 (x32) / Windows 7 (x64)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net