networking qbaisc 
Author Message
 networking qbaisc

how can i use network support in qbasic ?

Sam Mckoy



Sat, 22 Jan 2000 03:00:00 GMT  
 networking qbaisc

There is limited network support, depemds on what you mean
by network support - I am assuming multi-user access to
files ?

Difficult with anything but Random Access files, so for
these you should uses

omit the READ or the WRITE depending on the circumstance

Once you have a record in memory for editing, you can use

EditStuff:
  DIM Mystuff AS MyData

  OPEN "filename" FOR RANDOM ACCESS READ WRITE SHARED AS #n
  GET #N,RecNum,MyStuff
    LOCK #n, RecNum

        'do your things to stuff here

        PUT #n,MyStuff
    UNLOCK #n, RecNum
  CLOSE #n
EXIT SUB

Much depends on the LAN,  so the general rule is to keep
records open and locked for as little time as possible.

If you open a record, read in the data, close the record,
wait for user to do their stuff, then save the record,  
someone could have gotten in and edited and saved, then
your edit loses out.

You have to be very wary of logic bombs like this when
playing with multi user data access.

Rob



Tue, 25 Jan 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Opening a Qbaisc program in Pbasic

2. Animation in Qbaisc

3. If you know Qbaisc and VB4.0 HELP

4. Network error but no network ???

5. Distinguishing dial-up networking from local network

6. FileSystemObject - Network Drive/Network Path

7. Network Browser (Network Neighborhood)

8. hints on configuring dial-up networking, networking, etc.

9. HELP : Network : How to get VB to display Network Connections

10. Connecting to network shares when network is detected only - help please

11. get drive size from network network mapped drives

12. Network Neighborhood/Dial-Up Networking

 

 
Powered by phpBB® Forum Software