VBScript TO HMG

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

VBScript TO HMG

Post by andyglezl »

Hola
Les dejo este link donde hay ejemplos de VBScript que se pueden convertir a HMG (algunos) sin mucho trabajo.
( ó utlizarlos como están)
Espero les sirva...
---------------------------------------------------------------------------------------------------------------------------
Hello
Here I leave this link where there are examples of VBScript that can be converted to HMG (some) without much work.
(Or use them as they are)
I hope you serve them ...


http://www.robvanderwoude.com/wshexamples.php


Other...

http://www.ericphelps.com/scripting/samples/
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
serge_girard
Posts: 3420
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: VBScript TO HMG

Post by serge_girard »

Thanks Andy !
Serge
There's nothing you can do that can't be done...
User avatar
serge_girard
Posts: 3420
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: VBScript TO HMG

Post by serge_girard »

Hello,

Here is (first) VBScript to HMG. It converts DOCx to RTF and HTML.
Based upon /samples/ole/demo.prg + Source code for wsaveas.vbs

VBS to HMG is making fun (and better and nicer)

Serge
Attachments
doc2rtf.rar
(1.37 KiB) Downloaded 235 times
There's nothing you can do that can't be done...
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

VBScript TO HMG

Post by Pablo César »

Gracias Andrés.

Thank you Serge.

Specifcally I like to think VBScript in Harbour intead of HMG or VBScript in xBase (programming language) as supposed to be... (IMO).
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
serge_girard
Posts: 3420
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: VBScript TO HMG

Post by serge_girard »

Here another one: readexcel file without excel in to TXT:
Serge
Attachments
readexcel.rar
(2.26 KiB) Downloaded 279 times
There's nothing you can do that can't be done...
huiyi_ch
Posts: 173
Joined: Sat May 21, 2016 5:27 am

Re: VBScript TO HMG

Post by huiyi_ch »

Thank you Serge.
EduardoLuis
Posts: 684
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: VBScript TO HMG

Post by EduardoLuis »

Hi Serge:

Wow, your investigation is excellent.-
First attemp with doc2rtf successfull.-
Thanks for share and iluminate us.-
With regards.
Eduardo
User avatar
serge_girard
Posts: 3420
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: VBScript TO HMG

Post by serge_girard »

Eduardo, you're welcome!

Now I found a problem concerning reading XLS files. Maybe someone knows a solution?

I want to retrieve all sheetnames from an Excel. Default name is 'Sheet1' but this may be changed or added. In my language default is 'Blad1'.
I use this piece of code (not working) to retrieve all names.

Code: Select all

objRS  := TOleAuto():New('ADODB.Recordset')
oRS := objRS:OpenSchema(adSchemaTables)
Do While .Not. oRS:EOF() 
   sSheetName := oRS:Fields("table_name"):Value()
   ? sSheetName
   // do somethng with the sSheetName
   oRS:MoveNext()
enddo
Anybody knows how to get the sheetnames?

Serge
There's nothing you can do that can't be done...
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: VBScript TO HMG

Post by mol »

Hello Serge!
Your sample does not work on computer without excel installed...
Post Reply