xBase Command Interpreter

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

User avatar
meneale
Posts: 51
Joined: Sat Jan 12, 2013 2:05 am
Location: Campinas -SP, Brasil

xBase Command Interpreter

Post by meneale » Sun Mar 09, 2014 9:32 pm

Hello,
In the last 4 months i was working in a project that is an 'HMG' version of Command Prompt but executing HMG functions using Macro (&)
Now it seems finished, and then i decided to post it in HMGForum.
The Form looks pretty good using the DwmExtendFrameIntoClientArea function contributed by Dr. Claudio Soto

Basic Tips:
Creating text files and drag 'n' drop into the window, the program will run like CMD opens '.bat' files, reading line per line and executing them
Var(cIdVar,xValue) // for define public variables
XCOM=T or F (XCOM=F program will decline HMGFunctions and will execute custom commands)
lEcho := .t. (all function that give return will be printed on screen)

What does not work // yet:
Commands like: IF ENDIF ELSE FOR CALL RUN DO WHILE CASE...

Maybe it can be part of official HMG Samples :P
Attachments
xBaseCMDsource.zip
xBaseCMD exe&source
(1.33 MiB) Downloaded 308 times
Capture.PNG
Capture.PNG (184.82 KiB) Viewed 3759 times
AMD Phenom II X6 1090T 3.2GHz (OverClock 3.9GHz) | Windows 8.1 Pro 64-bit
4GB DDR3 | GTX 550 Ti 1GB | MSI 880GMA-E35

Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Sun Mar 09, 2014 10:00 pm

Hello Meneale,

I do not understand what your program, any ideas?

regards

User avatar
danielmaximiliano
Posts: 2146
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 162 times
Been thanked: 25 times
Contact:

Post by danielmaximiliano » Sun Mar 09, 2014 10:15 pm

Javier Tovar wrote:Hello Meneale,

I do not understand what your program, any ideas?

regards
..

Javier :
Visual Fox , foxpro desde epocas antiguas venia con una linea de comando donde ejecutas comandos basicos como abrir tablas, indezr bases etc.etc.
imaginate que podes tener abierto un proyecto y necesitas ver el contenido de una tabla que no pertenece al proyecto.
no salis del IDE y desde la linea de comando haces

USE MITABLA
BROW.

simple no ?
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
danielmaximiliano
Posts: 2146
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 162 times
Been thanked: 25 times
Contact:

Post by danielmaximiliano » Sun Mar 09, 2014 10:16 pm

Gracias por compatir Meneale !!!!

descargando y probando !!!!!!
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
meneale
Posts: 51
Joined: Sat Jan 12, 2013 2:05 am
Location: Campinas -SP, Brasil

Post by meneale » Sun Mar 09, 2014 10:27 pm

Yes Daniel,
I create this program to run test scripts without needed to compile it.
Make it very useful
AMD Phenom II X6 1090T 3.2GHz (OverClock 3.9GHz) | Windows 8.1 Pro 64-bit
4GB DDR3 | GTX 550 Ti 1GB | MSI 880GMA-E35

User avatar
danielmaximiliano
Posts: 2146
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 162 times
Been thanked: 25 times
Contact:

Post by danielmaximiliano » Sun Mar 09, 2014 11:37 pm

Error :

Falta Win.ico
windres: can't open icon file `win.ico': No such file or directory
Necesitarios una lista de los comandos soportados por "xBase Command Interpreter"
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Mon Mar 10, 2014 12:29 am

Ahhh :o ,

OK DanielMaximiliano eso seria estupendo :D

Saludos

User avatar
meneale
Posts: 51
Joined: Sat Jan 12, 2013 2:05 am
Location: Campinas -SP, Brasil

Post by meneale » Mon Mar 10, 2014 1:44 am

xBase CMD Support all defined Functions, including user defined, hmg default functions, c functions...

xBaseCMD doesn't support commands / structures, like:
LOCAL, PRIVATE, STATIC, PUBLIC // substitute var(idVar,xContent) // define public variables
IF, ELSE, ENDIF // substitute If(conditional,iftrue,iffalse)
DEFINE <control definition>, END // substitute(s) _DefineWindow(), _DefineModalWindow, _DefineSplitChildWindow(), _DefineEditBox(),... (look at hmg3.2\include)
DO WHILE, END DO, LOOP // nothing yet
FOR, NEXT // substitute fstep(starn,end,step,bAction)
CASE, OTHERWISE, END // nothing yet
@...BOX, @...SAY, @....<control definition>
SET *

.facp files are scripts to the xBase (like .bat for the cmd)
chrome.facp // Turns Google Chrome or Opera into half transparent
cmdmenu.facp // Define a Main Menu in the form, but look bad because of DWM
yourip.facp // Get you ip address
To open it, drag and drop in EXE or in the form
Attachments
win.zip
Win.ico (i zipped because ico isn't allowed)
(76.98 KiB) Downloaded 190 times
AMD Phenom II X6 1090T 3.2GHz (OverClock 3.9GHz) | Windows 8.1 Pro 64-bit
4GB DDR3 | GTX 550 Ti 1GB | MSI 880GMA-E35

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Mon Mar 10, 2014 2:25 am

Wow. It is a very nice work. Great achievement. Thanks a lot for sharing MeneAle.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
bpd2000
Posts: 1078
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 197 times
Been thanked: 96 times

Post by bpd2000 » Mon Mar 10, 2014 9:20 am

+1
Excellent work, Thank's for sharing
BPD
Convert Dream into Reality through HMG

Post Reply