Jump to content


Barry Glass

Member Since 03 Nov 2006
Offline Last Active Jun 15 2017 03:25 AM
-----

Posts I've Made

In Topic: ActiveX gives field property error in VIP

18 September 2009 - 06:28 PM

Try placing the ActiveX control as the last object in the cycle. Don't really know why this works, but it solved the problem we had. We have reported this issue as a bug in version 5.5. Hopefully in 6.2 it has been fixed.


Is the ActiveX control being defined in the Dynamics or Statics. I would strongly advise that ActiveX controls be defined in Statics only (like buttons and icons (with the exception of paging screens/list boxes))


Thanks for the suggestion to make it static. That seems to work.

In Topic: ActiveX gives field property error in VIP

17 September 2009 - 10:32 PM

Try placing the ActiveX control as the last object in the cycle. Don't really know why this works, but it solved the problem we had. We have reported this issue as a bug in version 5.5. Hopefully in 6.2 it has been fixed.


The ActiveX is actually the last item in a different cycle from the one I am getting the error in. It has been suggested that I make it static. I'll give that a try. Thanks.

In Topic: add to proisam file

29 December 2006 - 07:08 AM

Bus and task (p4task) could also be used if you create a task and function to add the record. Parameter passing might be a bit easier.

Barry

In Topic: creating dynamic file .

29 December 2006 - 06:51 AM

I would suggest you first of all make a LSCALL to list all the filenames (from the folder you save all the files) and save them into a temp file (by dir or ls depends on your O/S), you may also want to delete or move all the files after processing them.

Then you loop the temp file to read all the files from the folder and then proceed them one by one to generate the CSV file.

Does this make sense to you?


Could you please elaborate some more on this ,Could you go a bit deeper . Guess you are making sense but then i have no idea as to how should i proceed.

After i save filenames in a file , How do i loop the temp file to generate the CSV file , please suggest me in superlayer or Native PRO IV term.

Thanks a lot Vol Yip.
I really appreciate your suggestions.



Hi Vol,

I think what you are trying to do is to enter the name of a PRO-ISAM file into your screen and have the contents of that file output into a CSV file. If that is your problem, I'm afraid there is no easy way in SuperLayer or Native to do that. One way would be to create a function with an LU for each file that could need to be processed. The reason is that the kernel uses the file definition to get the data types of the fields and unpack the data so a separate LU for each file would be needed.

The only other possibility would be very complicated. You would need to dynamically create a function that uses the file definition for the name entered and also create and add a file definition for the sequential CSV file. You would also need to create logic to add the commas and then automatically gen and run your new function.