Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global Array declaration ?? Please help

Status
Not open for further replies.

unackvi

Programmer
Aug 18, 2004
5
US
I have only a handful of global variables defined in my PowerBuilder application. I recently tried to define 2 global arrays and everytime I do that and run the application it just crashes. As soon as I remove the declarations it is fine. Here is what I am doing:
Long gl_test1[]
Decimal{2} gdec_test2[]
I have one day lost to this problem already in a project I don't have any time to waste. Will appreciate if anyone can help me with this.
Thanks,
unackvi
 
You could create an nvo, delare the arrays as instance variables on it, then use the nvo as a global. Your code would then be like g_nvo.idec_test[1] = 1, etc...
 
hey...
wat u could do is export the object to a text file.... add in the global variables... import it back into the library... and then rebuild the object...

then try it..it shd work....

Anjali
 
Thank you for your help and prompt replies.
unakcvi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top