Yes, I could do that, but if the application was terminated in a non normal way, the value would still be there and the program would'nt start up again. The same is for a database connection.
This application is reading thousands of file every houre 24/7/365, and must always run, but only one...
Hi
Need some help here....
I am running a application (PB 7.0.3) on a Windows 2003 server. This application is starting automatical when the server reboot, and is starting on the Consol session with user "X". Then if I or some other log on to this server with user "X" again, but not to the...
Hi
Found a solution on this problem.
We made the user I use "dbo", then it worked.
I tried "powerbuilder catalog owner" and "table owner", but that did'nt work.
The 'views' was not created with the user I use.
Thanks for all suggestions :-)
Regards
Kongsjs
Hi
We have startet to user SqlServer 2008, and when I connect to a database I can see views, Stored Procedures, but not the Tables. I use normaly PB 7.0.3 and have the problem there. I tried PB 10.5 aswell, but same problem there.
I use normal ODBC in PB and Microsoft SqlServer ODBC as the...
The problem is that the messagebox appears on the "Connect" statement, so I never get down to the "If" I have after the connect.
Connect;
if sqlca.sqlcode <> 0 then
I guess there must be some way of turning of getting the messagebox/prompt, but I dont know how.
Hi
I am makeing a program that should run 24/7 on it's own.
In this program I need to connect to 2 different SqlServer databases, and all this works well.
The problem appears when one of the SqlServers are down or someting else goes wrong when I connect to the SqlServer.
I then get a MessageBox...
Hi
I know how to read the Properties of a file. I asked for help on that in July 2007, and got several answers, and I have used "thekl0wn"'s solution, and that is working perfectly.
Here is a link to that case:
http://www.tek-tips.com/viewthread.cfm?qid=1390120&page=1
Now I need to update...
When you right click on a file in the File Explorer, and choose Properties (at the bottom).
In the Properties window you the get choose tab folder Summary. There you have Tittle and comments + some more fields. There might be some fields only shown in "Advanced" view I also need to change.
Hi
I need to change the Title and Comments on files (.txt) from a PB application. I know how to read the Properties, but I dont know how to update them.
Is there anywone that could help me ?
Thanks in advance !!!
Hi citclasspb
I dont know how to get the directory size, but if you need to know if a directory contains files or not, youcan use DIRLIST, and put the result into a listbox, etc.
If you then use function TotalItems to count files in the listbox, you will get what you want.
If you need to know...
Hi
I have a datawindow that have 2 nested reports inside.
The man datawindow always have 1 row, but the nested reports could have several rows.
I need to know how many rows there is in each nested report.
Anyone who know how to code this in PB ?
I am using version 6.5 of PB.
Regards
Kongsjs
Hi
You are right of course. But there wasn’t any values in the fields over 34 on the file types I have tested.
If you or someone else have a more complete list of property fields they would share, so would that be very nice.
Hi
I have tested the solution with OleObjects, and that work perfektly. The function "LastPos" wasnt in PB 7.0, but that was easy to make.
An additional info is that if you change the number (3) to any other number from 0 up to atleast 34 you will get almost every property on files...
Hi
Is there anyone that know how to get the properties on files in windows from a PB application ?
What I need is the modified Date and Time on files.
I cant find a PB function that give this.
It is probably a Microsoft program I can call to get this, but I have'nt found any and how to do it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.