1. 馥穗 莊
  2. PowerBuilder
  3. Wednesday, 18 May 2022 05:38 AM UTC

Hi:

I am migrating pb6.0 to powerbuilder 2021 but it shows error as below,  gs_uid is global variable,

so, Where can I declare powerbuilder 2021 global variables?

 

---------- Compiler: Errors (下午 01:18:44)
security.pbl(w_login).cb_ok.clicked.6: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.7: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.7: Error C0003: Condition for if statement must be a boolean.
security.pbl(w_login).cb_ok.clicked.13: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.29: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.37: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.43: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.46: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.53: Error C0015: Undefined variable: gs_deptno
security.pbl(w_login).cb_ok.clicked.54: Error C0015: Undefined variable: gs_deptclass
security.pbl(w_login).cb_ok.clicked.58: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.74: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.81: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.82: Error C0020: Function with no return value used in expression
security.pbl(w_login).cb_ok.clicked.105: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.107: Error C0015: Undefined variable: gs_uid
security.pbl(w_login).cb_ok.clicked.110: Error C0015: Undefined variable: gs_uid
---------- Finished Errors (下午 01:18:44)

 

Andreas Mykonios Accepted Answer Pending Moderation
  1. Wednesday, 18 May 2022 05:57 AM UTC
  2. PowerBuilder
  3. # 1

Global variables declaration is saved in application object. When migrating, did you used the original application object?

Andreas.

Comment
There are no comments made yet.
Tracy Lamb Accepted Answer Pending Moderation
  1. Friday, 20 May 2022 05:38 AM UTC
  2. PowerBuilder
  3. # 2

FWIW, I recently upgraded as well, and found I had to redefine the globals in the application object because they did not migrate over.

~~~Tracy

Comment
There are no comments made yet.
馥穗 莊 Accepted Answer Pending Moderation
  1. Friday, 20 May 2022 03:04 AM UTC
  2. PowerBuilder
  3. # 3

Dear :

Yes, I  used the original application object

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Friday, 20 May 2022 13:59 PM UTC
  2. PowerBuilder
  3. # 4

Manually copy over your Globals from the original code into the new application object.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.