MC and SQL/ODBC direct connections : some more...

2000-12-14 Thread Pierre Sahores

Hi,

Just see the script below to figure you out how MC is, natively and without any
XCMD, DLL or so on, able to connect any SQL database server, using the Metatalk
built-in "POST" command :-)

To include to a cgi .mt script or an mc applications server app (second edition)
:

on QuerySQL
  global Retour
  set httpHeaders to "Content-Type: text/html" & cr & "Content-Length:" && the
length of "a=b" & cr & cr
  post "a=b" to url "http://localhost/cndp/repmysql.php" # to connect MySQL
(Linux,Win32) 
  # post "a=b" to url "http://localhost/cndp/repaccess.asp" # to connect MS
ACCESS (Win32) 
  # post "a=b" to url "http://localhost/cndp/repmssql.asp" # to connect MS
SQLServer 6.5/7 (Win32) 
  set httpHeaders to ""
  put "" & \
  ""
& \
  "" & \
  "" & \
  "Connexion METACARD/MSSQL via IIS4/PHP" & \
  "" & cr & \
  it & cr & "" into Retour
end QuerySQL

to store in the httpd docs folder as "repmysql.php" :



to store in the httpd docs folder as "repaccess.asp" :

<%
Dim objConn
Dim objRec
set objConn = Server.CreateObject ("ADODB.Connection")
set objRec = Server.CreateObject ("ADODB.Recordset")
objConn.Open "DSN=NOMENCL"
objRec.Open "la_Fonction", objConn, 0, 1, 2
while not objRec.EOF
response.write objRec("Telen_Fonction") & ""
objRec.moveNext
Wend
objRec.close
objConn.close
set objRec = nothing
set objConn = nothing
%> 

to store in the httpd docs folder as "repmssql.asp" :

<%
Dim objConn
Dim objRec
set objConn = Server.CreateObject ("ADODB.Connection")
set objRec = Server.CreateObject ("ADODB.Recordset")
objConn.Open "DSN=BNPRSQL;USR=SA;PWD="
objRec.Open "SELECT ARTITRE FROM T_PRODUIT WHERE FK_ID_MODE=2", objConn
while not objRec.EOF
response.write objRec("ARTITRE") & "" 
objRec.moveNext
Wend
objRec.close
objConn.close
set objRec = nothing
set objConn = nothing
%> 

My two cents ;-)

Regards, Pierre Sahores

chef de projet cyberlibrairie
SNPIN - CNDP. 91, rue Gabriel-Peri
92120 Montrouge. Tél.: 01.64.45.05.33

Penser la part du rêve et
produire l'avantage compétitif.

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




RE: FromSocketToField

2000-12-14 Thread Xavier Bury

Thanks Hassan (that's your 1st name i hope!)
Good show! Simple scripts are the best!

As for your question about reading multiple sockets,
it should be no problem at all. There are two ways to do it...

PreParsed: Open your sockets with different messages according to different
sockets (ip's and/or ports)
or
Post-parsed: With the same message, you could compare the ips or ports to
handle the different messages.
or
Merry-Parsed: You even have a third option to parse different talks/messages
between the client(s) and server(s) to do for example a mix of both ftp,
http and email or what have you...
or
Unparsable: Cotton sockets are better for snowboarding

Am i wrong? Other concepts?

Sun Tzu said, "there are five notes of music
yet their combinations are infinite"

Merry seasonings!
Dont drink and drive, you might spill!
Xavier

> Hi Xavier,  here is the script i have learned and
> modified from a lot of what have been posted
> previously on this list.  This is a great list with a
> lot of kind, cooperative helpful people.  hope you can
> use it somehow.  it works on a one machine(client) to
> a server test.  haven't tried with more than that.
> let us/me know if you try it with more.  (can anyone
> show how to do this with more than one open socket?)
>
> Here's how it works:
> The client send some data/text to the server, and get
> the message that the data has been/has not been
> received at certain time of the day.  At the same
> time, the client will get to see back almost
> immediately the latest update of data on the server.
>
> The server reads/accept the the data/text that is sent
> by the client.  What you do/process with the data/text
> is up to you then.  It sent the latest update back to
> the client just to show that the new data has been
> added.
>
> Here's the script:
>
> on the client side:
>
> on mouseUp
>   open socket to "1.1.1.1:8080" with message gotcha
>   --change 1.1.1.1 to the appropriate server address
> end mouseUp
>
> on gotcha s
>   put field "a" into var1
>   (--text to be sent to server)
>   write var1 & crlf & (the long time) to socket s
>
>   (--reading feedback from the server)
>   read from socket s until empty
>   put it into field "b"
>
>   if last line of field "b"  = "RESULT OK"&&the date
>   then
> put "Data sent successfully at:."&the long time
> after the last line of field "b"
> put "Looks like we are online at"&&(the long time)
>   else
> answer "Looks like the server is not responding."
>   end if
>   close socket s
> end gotcha
>
>
>
> On the server side:
>
> on openCard
>   accept connections on port 8080 with message
> "newconnect"
>   if the result is not empty then put the result
>   checkData
> end openCard
>
> on checkData
>   put field 1 into field "b"
>   send "checkData" to this card in 1 seconds
> end checkData
>
> on newconnect s
>   read from socket s until empty
>   (--text sent from the client)
>   put it into fld 1
>   put field 1 into var2
>   write var2&cr&cr&"RESULT OK " && the date to socket
> s
>   (--to show back to the client the latest update sent
>to the server)
> close socket s
> end newconnect
>
> feel free to add/modified and it will be great if it
> can be posted back to the list.
>
> cheers.-rosli
>
> __
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
>
> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




RE: FromSocketToField

2000-12-14 Thread Xavier Bury

figures
Thanks Andu!

Now on to find what that Q3 server expects!

Merry Xmas to all!
Xavier

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of andu
> Sent: Thursday, December 14, 2000 8:41 PM
> To: [EMAIL PROTECTED]
> Subject: RE: FromSocketToField
>
>
> >
> >I did look it up, and like it, i tried to get first a read from
> the server.
> >
> >But then why do i get an error and what does that error mean?
> >
> >Should I look it up in the technet or is this a MetaCard error code?
> >
> >I've tried many times before with the write and neither got an answer...
> >I know for sure it works cause a friend made it work...
> >He wont give me his code so im trying...
>
> In what way it works, I still don't understand what you expect to
> read from a server as
> soon as you open a connection to it? Some servers (mail) acknowledge a new
> connection , others need some input.
>
> >
> >> >
> >> >Andu,
> >> >
> >> >I tried and failed again...
> >> >
> >> >on mouseUp
> >> >  put "" into fld "socketresult"
> >> >  put fld "url" &":"&fld "port" into theurl
> >> >  open socket theurl with message "readmore"
> >> >end mouseUp
> >> >
> >> >on readmore socketOpen
> >> >  put "reading socket" && socketOpen
> >> >  read from socket socketOpen for 1024 with message "dataHasArrived"
> >> >end readmore
> >>
> >> What do you xpect to read from the socket? Try writing a request
> >> or something and *then
> >> read the reply. Someone posted a script here the other day for
> >> ftp uploads I think, look it
> >> up in the archives to see an example of comunication with ftp server.
> >>
> >> >
> >> >on dataHasArrived socketOpen, tData
> >> >  beep
> >> >  put "data has arrived"
> >> >  put tData into fld "data"
> >> >  Close socket socketopen
> >> >end dataHasArrived
> >> >
> >> >all i get is
> >> >SocketError:212.166.2.96:21 Error 10057 reading socket
> >> >I tried port 21 FTP, 80 (HTTP)
> >> >and 27961, 27963 (Quake 3 servers)
> >> >
> >> >and I get only errors 10057
> >> >Im sure im missing something... can someone help?
> >> >
> >> >TIA
> >> >Cheers,
> >> >Xavier
> >> >
> >> >> -Original Message-
> >> >> From: [EMAIL PROTECTED]
> >> >> [mailto:[EMAIL PROTECTED]]On Behalf Of andu
> >> >> Sent: Tuesday, December 12, 2000 5:20 PM
> >> >> To: [EMAIL PROTECTED]
> >> >> Subject: Re: FromSocketToField
> >> >>
> >> >>
> >> >> >
> >> >> >I have the following script in a btn:
> >> >> >---
> >> >> >read from socket "127.0.0.1:9980" for 1024 with
> >> >> >message "dataHasArrived"
> >> >>
> >> >> on dataHasArrived socketOpen, tData
> >> >> put tData into fld 1
> >> >> end dataHasArrived
> >> >>
> >> >> Also you can just do:
> >> >> read from socket "127.0.0.1:9980" for 1024
> >> >> put it into fld 1
> >> >>
> >> >> Remember to open the socket before reading from it and to close
> >> >> it when you are done
> >> >> reading.
> >> >>
> >> >> >
> >> >> >I click on the btn, then send some data from another
> >> >> >stack to the recieving stack. How do I make the data
> >> >> >appear in a fld in the receiving stack?
> >> >> >
> >> >> >>From the reference:
> >> >> >
> >> >> >The "read from socket" command is used to read data
> >> >> >from a socket. Sockets are always opened in binary
> >> >> >mode and so any required data conversion must be done
> >> >> >in scripts.
> >> >> >
> >> >> >Could anyone kindly supply one of the "scripts" that
> >> >> >the reference mentions?
> >> >> >
> >> >> >Thank you, Michael Kann, [EMAIL PROTECTED]
> >> >> >
> >> >> >
> >> >> >
> >> >> >__
> >> >> >Do You Yahoo!?
> >> >> >Yahoo! Shopping - Thousands of Stores. Millions of Products.
> >> >> >http://shopping.yahoo.com/
> >> >> >
> >> >> >Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> >> >> >Info: http://www.xworlds.com/metacard/mailinglist.htm
> >> >> >Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> >> >> >
> >> >> >.
> >> >>
> >> >>
> >> >> Regards, Andu
> >> >> ___
> >> >> [EMAIL PROTECTED]
> >> >>
> >> >> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> >> >> Info: http://www.xworlds.com/metacard/mailinglist.htm
> >> >> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> >> >>
> >> >
> >> >Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> >> >Info: http://www.xworlds.com/metacard/mailinglist.htm
> >> >Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> >> >
> >> >.
> >>
> >>
> >> Regards, Andu
> >> ___
> >> [EMAIL PROTECTED]
> >>
> >> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> >> Info: http://www.xworlds.com/metacard/mailinglist.htm
> >> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> >>
> >
> >Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> >Info: http://www.xworlds.com/metacard/mailinglist.htm
> >Please send bug reports to <[EMAIL PROTECTED]>, 

Re: Digest metacard.v004.n106

2000-12-14 Thread Tariel Gogoberidze

> >> Anyone familiar with 4D database?
> > >
> >> Can MC access/read-write to a 4D database?
> >>
> >> Hinduism Today
> >> Sivakatirswami
> >> Editor's Assistant/Production Manager
>
>
> >Yes, in using appleevents on mac (sure) and sockets under win32 (not tested).
> >
> >Pierre Sahores
> >--
> >chef de projet cyberlibrairie

You can also access/read-write to 4D From MC on any platform using BlueWorld's lasso 
with 4D module. On BlueWord web site
  you'll find all documentation 
(Lasso 3.6.5 4D Module Guide.pdf)

In MC the syntax will be something like...

on mouseup
  put  "http://192.138.13.10/Action.lasso" into aPPP -- use your PPP address
  post 
"-dataSource=Auction&-table=bid&-keyField=bid+id&-Response=auction.lasso&-findall" to 
url aPPP
 if the result is not empty then
 answer the result
else
 put it
end if
end mouseup

You can add records, delete records, update (modify) records and find records by any 
criteria  using "-add" , "-delete", "-update" and "-find" commands instead of
"-findAll"

To test:
Download evaluation versions of  both 4D server 6.5.6 and Lasso WDE 3.6.5.
In lasso examples folder find the "Auction" folder (it contains 4D example databases) 
then use script above to test it.

Note: To get proper response in MC you'll need to create text file named 
"auction.lasso", place it on the same directory as a "Lasso Web Server" on a mac or in
InetPub/wwwroot /  on win and type in the following
--
[Found_Count]
[records][Field:name,EncodeNone] any itemdel here [Field:amount,EncodeNone]
[/records]
--

you will also need two computers, one for lasso + MC and one for 4D server to do this.

Best regards
Tariel Gogoberidze



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




RE: FromSocketToField

2000-12-14 Thread Rosli Hassan

Hi Xavier,  here is the script i have learned and
modified from a lot of what have been posted
previously on this list.  This is a great list with a
lot of kind, cooperative helpful people.  hope you can
use it somehow.  it works on a one machine(client) to
a server test.  haven't tried with more than that. 
let us/me know if you try it with more.  (can anyone
show how to do this with more than one open socket?)

Here's how it works:
The client send some data/text to the server, and get
the message that the data has been/has not been
received at certain time of the day.  At the same
time, the client will get to see back almost
immediately the latest update of data on the server.

The server reads/accept the the data/text that is sent
by the client.  What you do/process with the data/text
is up to you then.  It sent the latest update back to
the client just to show that the new data has been
added.

Here's the script: 

on the client side:

on mouseUp
  open socket to "1.1.1.1:8080" with message gotcha
  --change 1.1.1.1 to the appropriate server address
end mouseUp

on gotcha s
  put field "a" into var1 
  (--text to be sent to server)
  write var1 & crlf & (the long time) to socket s
  
  (--reading feedback from the server)
  read from socket s until empty 
  put it into field "b"
  
  if last line of field "b"  = "RESULT OK"&&the date
  then
put "Data sent successfully at:."&the long time
after the last line of field "b"
put "Looks like we are online at"&&(the long time)
  else
answer "Looks like the server is not responding."
  end if
  close socket s
end gotcha



On the server side:

on openCard
  accept connections on port 8080 with message
"newconnect"
  if the result is not empty then put the result
  checkData
end openCard

on checkData
  put field 1 into field "b"
  send "checkData" to this card in 1 seconds
end checkData

on newconnect s
  read from socket s until empty
  (--text sent from the client)
  put it into fld 1 
  put field 1 into var2
  write var2&cr&cr&"RESULT OK " && the date to socket
s
  (--to show back to the client the latest update sent
   to the server)  
close socket s
end newconnect

feel free to add/modified and it will be great if it
can be posted back to the list.

cheers.-rosli

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




RE: FromSocketToField

2000-12-14 Thread andu

>
>I did look it up, and like it, i tried to get first a read from the server. 
>
>But then why do i get an error and what does that error mean? 
>
>Should I look it up in the technet or is this a MetaCard error code?
>
>I've tried many times before with the write and neither got an answer... 
>I know for sure it works cause a friend made it work... 
>He wont give me his code so im trying... 

In what way it works, I still don't understand what you expect to read from a server as
soon as you open a connection to it? Some servers (mail) acknowledge a new
connection , others need some input.

>
>> >
>> >Andu,
>> >
>> >I tried and failed again...
>> >
>> >on mouseUp
>> >  put "" into fld "socketresult"
>> >  put fld "url" &":"&fld "port" into theurl
>> >  open socket theurl with message "readmore"
>> >end mouseUp
>> >
>> >on readmore socketOpen
>> >  put "reading socket" && socketOpen
>> >  read from socket socketOpen for 1024 with message "dataHasArrived"
>> >end readmore
>> 
>> What do you xpect to read from the socket? Try writing a request 
>> or something and *then
>> read the reply. Someone posted a script here the other day for 
>> ftp uploads I think, look it
>> up in the archives to see an example of comunication with ftp server.
>> 
>> >
>> >on dataHasArrived socketOpen, tData
>> >  beep
>> >  put "data has arrived"
>> >  put tData into fld "data"
>> >  Close socket socketopen
>> >end dataHasArrived
>> >
>> >all i get is 
>> >SocketError:212.166.2.96:21 Error 10057 reading socket
>> >I tried port 21 FTP, 80 (HTTP)
>> >and 27961, 27963 (Quake 3 servers)
>> >
>> >and I get only errors 10057
>> >Im sure im missing something... can someone help?
>> >
>> >TIA
>> >Cheers,
>> >Xavier
>> >
>> >> -Original Message-
>> >> From: [EMAIL PROTECTED]
>> >> [mailto:[EMAIL PROTECTED]]On Behalf Of andu
>> >> Sent: Tuesday, December 12, 2000 5:20 PM
>> >> To: [EMAIL PROTECTED]
>> >> Subject: Re: FromSocketToField
>> >> 
>> >> 
>> >> >
>> >> >I have the following script in a btn:
>> >> >---
>> >> >read from socket "127.0.0.1:9980" for 1024 with
>> >> >message "dataHasArrived"
>> >> 
>> >> on dataHasArrived socketOpen, tData
>> >> put tData into fld 1
>> >> end dataHasArrived
>> >> 
>> >> Also you can just do: 
>> >> read from socket "127.0.0.1:9980" for 1024
>> >> put it into fld 1
>> >> 
>> >> Remember to open the socket before reading from it and to close 
>> >> it when you are done
>> >> reading.
>> >> 
>> >> >
>> >> >I click on the btn, then send some data from another
>> >> >stack to the recieving stack. How do I make the data
>> >> >appear in a fld in the receiving stack?
>> >> >
>> >> >>From the reference:
>> >> >
>> >> >The "read from socket" command is used to read data
>> >> >from a socket. Sockets are always opened in binary
>> >> >mode and so any required data conversion must be done
>> >> >in scripts.  
>> >> >
>> >> >Could anyone kindly supply one of the "scripts" that
>> >> >the reference mentions?
>> >> >
>> >> >Thank you, Michael Kann, [EMAIL PROTECTED]
>> >> >
>> >> >
>> >> >
>> >> >__
>> >> >Do You Yahoo!?
>> >> >Yahoo! Shopping - Thousands of Stores. Millions of Products.
>> >> >http://shopping.yahoo.com/
>> >> >
>> >> >Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
>> >> >Info: http://www.xworlds.com/metacard/mailinglist.htm
>> >> >Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>> >> >
>> >> >.
>> >> 
>> >> 
>> >> Regards, Andu 
>> >> ___
>> >> [EMAIL PROTECTED]
>> >> 
>> >> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
>> >> Info: http://www.xworlds.com/metacard/mailinglist.htm
>> >> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>> >> 
>> >
>> >Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
>> >Info: http://www.xworlds.com/metacard/mailinglist.htm
>> >Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>> >
>> >.
>> 
>> 
>> Regards, Andu 
>> ___
>> [EMAIL PROTECTED]
>> 
>> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
>> Info: http://www.xworlds.com/metacard/mailinglist.htm
>> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>> 
>
>Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
>Info: http://www.xworlds.com/metacard/mailinglist.htm
>Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
>.


Regards, Andu 
___
[EMAIL PROTECTED]

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




Re: Icons of standalones on Mac & Win

2000-12-14 Thread Sjoerd Op 't Land

I wrote:
> I've a problem with the icon of a standalone on Mac. I only get the standard
> 'APPL' icon, and not icon ID 129 of the resource fork. I played around in
> ResEdit, but now I don't have any icons at all in the BNDL resource?!
Solved it! Maybe this is handy to know for others, too, so:
1) Set the 'Signature:' in the BNDL resource to the creator of the
standalone.
2) Rebuild you desktop.
Apparently, Finder only links a programme with its own icon if the creator
and the 'Signature' are the same.

Bu still:
> Also, is it possible to make a Windows icon file on Mac, with Graphic
> Converter or something?

Thanks in advance for any help,
Sjoerd Op 't Land


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




RE: FromSocketToField

2000-12-14 Thread Xavier Bury

I did look it up, and like it, i tried to get first a read from the server. 

But then why do i get an error and what does that error mean? 

Should I look it up in the technet or is this a MetaCard error code?

I've tried many times before with the write and neither got an answer... 
I know for sure it works cause a friend made it work... 
He wont give me his code so im trying... 

> >
> >Andu,
> >
> >I tried and failed again...
> >
> >on mouseUp
> >  put "" into fld "socketresult"
> >  put fld "url" &":"&fld "port" into theurl
> >  open socket theurl with message "readmore"
> >end mouseUp
> >
> >on readmore socketOpen
> >  put "reading socket" && socketOpen
> >  read from socket socketOpen for 1024 with message "dataHasArrived"
> >end readmore
> 
> What do you xpect to read from the socket? Try writing a request 
> or something and *then
> read the reply. Someone posted a script here the other day for 
> ftp uploads I think, look it
> up in the archives to see an example of comunication with ftp server.
> 
> >
> >on dataHasArrived socketOpen, tData
> >  beep
> >  put "data has arrived"
> >  put tData into fld "data"
> >  Close socket socketopen
> >end dataHasArrived
> >
> >all i get is 
> >SocketError:212.166.2.96:21 Error 10057 reading socket
> >I tried port 21 FTP, 80 (HTTP)
> >and 27961, 27963 (Quake 3 servers)
> >
> >and I get only errors 10057
> >Im sure im missing something... can someone help?
> >
> >TIA
> >Cheers,
> >Xavier
> >
> >> -Original Message-
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED]]On Behalf Of andu
> >> Sent: Tuesday, December 12, 2000 5:20 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: Re: FromSocketToField
> >> 
> >> 
> >> >
> >> >I have the following script in a btn:
> >> >---
> >> >read from socket "127.0.0.1:9980" for 1024 with
> >> >message "dataHasArrived"
> >> 
> >> on dataHasArrived socketOpen, tData
> >> put tData into fld 1
> >> end dataHasArrived
> >> 
> >> Also you can just do: 
> >> read from socket "127.0.0.1:9980" for 1024
> >> put it into fld 1
> >> 
> >> Remember to open the socket before reading from it and to close 
> >> it when you are done
> >> reading.
> >> 
> >> >
> >> >I click on the btn, then send some data from another
> >> >stack to the recieving stack. How do I make the data
> >> >appear in a fld in the receiving stack?
> >> >
> >> >>From the reference:
> >> >
> >> >The "read from socket" command is used to read data
> >> >from a socket. Sockets are always opened in binary
> >> >mode and so any required data conversion must be done
> >> >in scripts.  
> >> >
> >> >Could anyone kindly supply one of the "scripts" that
> >> >the reference mentions?
> >> >
> >> >Thank you, Michael Kann, [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >> >__
> >> >Do You Yahoo!?
> >> >Yahoo! Shopping - Thousands of Stores. Millions of Products.
> >> >http://shopping.yahoo.com/
> >> >
> >> >Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> >> >Info: http://www.xworlds.com/metacard/mailinglist.htm
> >> >Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> >> >
> >> >.
> >> 
> >> 
> >> Regards, Andu 
> >> ___
> >> [EMAIL PROTECTED]
> >> 
> >> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> >> Info: http://www.xworlds.com/metacard/mailinglist.htm
> >> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> >> 
> >
> >Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> >Info: http://www.xworlds.com/metacard/mailinglist.htm
> >Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> >
> >.
> 
> 
> Regards, Andu 
> ___
> [EMAIL PROTECTED]
> 
> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> 

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




Icons of standalones on Mac & Win

2000-12-14 Thread Sjoerd Op 't Land

Hello all,

I've a problem with the icon of a standalone on Mac. I only get the standard
'APPL' icon, and not icon ID 129 of the resource fork. I played around in
ResEdit, but now I don't have any icons at all in the BNDL resource?!

Also, is it possible to make a Windows icon file on Mac, with Graphic
Converter or something?

Thanks in advance for any help,
Sjoerd Op 't Land


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




Re: Powerful installer for Mac

2000-12-14 Thread James Parker


How about using MetaCard to make your own installer?


>Can anyone suggest a full-featured installer for Mac that has a reasonable 
>licensing policy?
>I need one that has the ability read and write to the Preferences folder.
>
>TIA
>
>Leston Drake, President
>LetterPress Software, Inc.

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




Re: Valentina and MC

2000-12-14 Thread Ruslan Zasukhin

on 14/12/00 08:42, michael kann at [EMAIL PROTECTED] wrote:

Hi Michael,

> --- Ruslan Zasukhin wrote:
> 
>> I'd like to inform you about ability to built into
> your MetaCard applications Valentina database engine.
> 
> --- Looks like a great product. I can see lots of uses
> for it. I have the VXCMD Test Project open on my
> Windows desktop. How do I use it to create a database,
> put some records in, and get some records out? How do
> you write your own interface to access the records? I
> know about databases and SQL, I just need a jump start
> to get something working. Thanks, Michael Kann, [EMAIL PROTECTED]

You ask how to run example project from VXCMD for Windows archive ?

1) Make sure that VXCMD.DLL correctly listed in list of DLLs of stack

2) run project, 

-- click button "create", choose location on disk for database

-- to add test records click "Add Records", enter in dialog for example 100.
VXCMD will add 100 records.

-- Now you can click "select records"
you will see dialog with simplest SQL: "SELECT * FROM Customers"
  click Ok
  you will see fields of first record.
  Now you can use navigation buttons to go next/prev/first/last records.
  Enter new SQL


Please note, VXCMD Win archive is old enough.
Latest 2 months we have work with MAC version only.

VXCMD 1.8.6 final release with a lots of improvements expect tomorrow.
  

-- 
Best regards,
Ruslan Zasukhin

-
Paradigma.

e-mail: [EMAIL PROTECTED]
web   : http://www.paradigmasoft.com

To subscribe to the Valentina mail list
send a letter to [EMAIL PROTECTED]



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




Re: Valentina and MC (was: MC to 4D Database)

2000-12-14 Thread Ruslan Zasukhin

on 14/12/00 08:42, michael kann at [EMAIL PROTECTED] wrote:

> --- Looks like a great product. I can see lots of uses
> for it. I have the VXCMD Test Project open on my
> Windows desktop. How do I use it to create a database,
> put some records in, and get some records out? How do
> you write your own interface to access the records? I
> know about databases and SQL, I just need a jump start
> to get something working. Thanks, Michael Kann, [EMAIL PROTECTED]

Hi Michael,

to start use Valentina XCMD in your project you need
a) on Windows add VXCMD.dll to list of dlls
b) on MAC copy by ResEdit xfcn "Valentina" and install shared lib "Valentina
engine" into extension folder or MC folder

First you call to Valentina must be
ValentinaInit( cache, ...)

On finish you need 
ValentinaShutDown()

Between them you can do anything

Database_Create()
Databae_MakeNewBaseObject
...




-- 
Best regards,
Ruslan Zasukhin

-
Paradigma.

e-mail: [EMAIL PROTECTED]
web   : http://www.paradigmasoft.com

To subscribe to the Valentina mail list
send a letter to [EMAIL PROTECTED]



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.