Help sorta off topic

new topic     » topic index » view thread      » older message » newer message

I'm trying to write a sequential file with EU which I can sync to windows mobile. I have one example which works great. I wrote 5 years ago and can't remember enough to get it to work with a different record length.

Here is the old statement which creates the file which works:

	printMask = "%012d%-30s%-30s%9.4f%9.4f" -- 90 chars 
			recString = {8,0,90,0} & sprintf(printMask, {icmaRec[icmaUPCNbr], icmaRec[icmaItemDesc1],  
										icmaRec[icmaItemDesc2], icmaRec[icmaPrice1],  
										icmaRec[icmaStdCost]}) 
			puts(fileNbr, recString) 

I read the file in windows moble as using :

file.Open "\My Documents\icMaster.txt",4,1,3,94 'input, direct, locked, reclen

file.Get fileRec, loc 'loc is the record number

My questin is does anyone know what the leading stuff is that I put in front of the record ({8,0,90,0}). The 90 is the number of characters but I don't know what the other items are. I can't find any MS documentation which explains the file structure I need to create.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu