Hi,
what gajender said is not the exactly you want...it is array declaration in PB.
As per my knowledge, fixed size variable declaration is not possible in PB.
I think you want this to call some windows API if that is the case then in powerbuilder when you pass any string variable as reference to any external api call that time should assign memory space to that variable in advance for that you can assign space of that much length to that variable.
for example.
there is windows api getcomputername(string compname)
where, compname is string variable and passed as reference, so according to api defination you should assign value to that variable before you pass to api call.
like...
string compname = space(128)
getcomputername(compname)
Hope, this will work for you.
Regards,
Sandeep
Main Topics
Browse All Topics





by: gajender_99Posted on 2006-11-14 at 07:36:04ID: 17938776
string vls_test[128]
Gajender