shamilton Posted July 6, 2007 Share Posted July 6, 2007 So I am looking into doing some online applications - I have already written quite a bit of it - and the clients are requesting more and more stuff to be added. I figured - if I had some sort of GRID I could deal with their requests for data handling way easier. So I looked into AJAX and PHP grids, which looks cool so far. Then my boss (a vb6 guru) proposed an interesting question to me. Can PHP load objects from other languages? In Visual Basic 6 - there is an object we have called UltraGrid - which does exactly what I need. This object can be loaded in ASP (according to the boss) - and I was wondering... How would one go about loading a Visual Basic 6 Object onto their page? Is this possible - because if it is...my head is going to explode... Quote Link to comment Share on other sites More sharing options...
per1os Posted July 6, 2007 Share Posted July 6, 2007 It can be loaded in ASP because ASP and VB6 are part of the same framework and developed by the same company. Of course it would work there. I highly doubt that code would be compatible with PHP due to the fact that PHP people do not like the .NET community and the .NET community do not like PHP people. I think you are SOL. (vb6 really sucks to be honest) lol I hate VB coding it is so lame. Grrrrr.... =) Quote Link to comment Share on other sites More sharing options...
shamilton Posted July 6, 2007 Author Share Posted July 6, 2007 Yeah I figured as much. I don't mind programming in VB. I like the fact that I am bringing VB and PHP together with the projects I am working on. So much hate between the two...VB is just misunderstood Quote Link to comment Share on other sites More sharing options...
per1os Posted July 6, 2007 Share Posted July 6, 2007 I had to code for VB for a job, and hated it. I didn't mind c# but VB really takes ALL of the phone out of programming by using terms if not x = 1 then etc. I like to use regular syntax, after all we are not writing a book. Anyhow end of my rant. Quote Link to comment Share on other sites More sharing options...
shamilton Posted July 6, 2007 Author Share Posted July 6, 2007 Yeah... Right now I am doing it for my job. It's not bad if you write it properly - that's just my opinion. Now I end my rant... Quote Link to comment Share on other sites More sharing options...
Barand Posted July 6, 2007 Share Posted July 6, 2007 Can PHP load objects from other languages? Well, it can certainly handle xmlhttp objects and also M$ Office document objects (via COM) Quote Link to comment Share on other sites More sharing options...
shamilton Posted July 6, 2007 Author Share Posted July 6, 2007 Hmmm...I should look into seeing whether one can load the object via COM...that's how I am connecting via ADODB...so it might work. I doubt it though - I can't possibly imagine that this would work. If it did...how come I haven't seen anyone else do it? Quote Link to comment Share on other sites More sharing options...
Barand Posted July 6, 2007 Share Posted July 6, 2007 If it did...how come I haven't seen anyone else do it? I guess they are using my grid Quote Link to comment Share on other sites More sharing options...
shamilton Posted July 6, 2007 Author Share Posted July 6, 2007 Arg - Some of us don't want to pay lot's of money for code VB provides such objects for free - and PHP programming for these kinds of things (or - what I want to do anyway) is like 1k-4k... Quote Link to comment Share on other sites More sharing options...
per1os Posted July 6, 2007 Share Posted July 6, 2007 Didn't know barand's grid cost money...wait it doesn't! As for finding the right code, it could cost money but chances are someone else already did it and it is freely distributed. Just have to find to right place to get it =) The better part of this, if you learn PHP programming you can code it yourself and open it up as open source to save everyone the hassle of buying it! =) Quote Link to comment Share on other sites More sharing options...
shamilton Posted July 6, 2007 Author Share Posted July 6, 2007 True enough frost I made an assumption when I saw the word "product". On a random side note - Barrand - I am going through your code - noticed you don't allow for a SELECT * FROM in the sql... You parse through the SQL statement for the table headers? Interesting idea - had not though of doing that. Quote Link to comment Share on other sites More sharing options...
Barand Posted July 6, 2007 Share Posted July 6, 2007 You can use $sql = "SELECT * FROM tablename"; $g = new baaGrid($sql); $g->display(); Quote Link to comment Share on other sites More sharing options...
shamilton Posted July 6, 2007 Author Share Posted July 6, 2007 I can use $sql_query_string = "SELECT Top 10 CustNum FROM CRMActivity"; and I get results. If I use $sql_query_string = "SELECT * FROM CRMActivity"; no results are produced as far as I can tell. Either way - it's still well written. I am going to make some modifications to it to suit my needs. I am going to tie AJAX into it Quote Link to comment Share on other sites More sharing options...
per1os Posted July 6, 2007 Share Posted July 6, 2007 Either way - it's still well written. I am going to make some modifications to it to suit my needs. I am going to tie AJAX into it Thats the spirit! Just make sure you post the finished product for all to use somewhere =) Quote Link to comment Share on other sites More sharing options...
shamilton Posted July 6, 2007 Author Share Posted July 6, 2007 I will Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.