So, I need to somehow set the starting index to 1 for my variable lc_rtnmfgno in VB. If in Power Builder, lc_rtnmfgno array will start from 1. Not all array assignments are allowed, as described in the following rules. When I run this code, I will get an error: "An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll" PowerBuilder then uses the rules for one-dimensional arrays (described above) to assign the array to the target. Public Declare Function GetA0B0 Lib "MCard.dll" ( ByRef szMfgNo As Char ()) As IntegerÄim li_rtnval, li_counter, li_limitread As Integer The thing is, when I have to call a function from the dll file and get reference value from the function, I need to use an char array that started with 1, instead of 0. Like: any lany lany .destroy looJson return end if // Get the value at each array index. Assuming this will be a COM visible component one thing you could try in Powerbuilder is to bring the returned string array into an 'any' variable (or perhaps an array of any variables. This project needs to use a dll file to communicate with a card reader. (PowerBuilder) JSON: Access Array Values. I 'm converting a program from Power Builder language to VB.
0 Comments
Leave a Reply. |