![]() *by making big string as sum of many chunks (limited to 1000-3000 chars for ex) and insring a ctrf (chr(13)+chr(10),and evaluating it with clause "pretext", by magic this works. *the code shows to convert any big file to string and insert it between text/endtext.vfp have limited these litteral strings insertion to 8192 chars. *the js file (as class or library) is converted to a string and inserted beteen text/endtext vfp command. *this builds a web color picker with a jsfile and a html originall =53Ko (can be downloaded for free from ). *save this mandatory as ycolorPicker.prg (used to build ycolorpicker.exe ) *this is a demo how to work with a big litteral string built with code *1* *2* created on wednesday 05 of april 2018 Messagebox(m.mess+cr+'The big string is in clipboard'+m.cr+'Paste the clipboard between text/endtext',0+32+4096,'in clipboard') M.mess="Parfect egality strconv(m.out64,14) = m.source " Local m.source,m.source64,m.x,chunkL,m.str,m.cr *this can avoid to attach some resources. *the string calculated can be pasted between text/endtext in any vfp code. *1* this code converts any file ,even big one,to a compatible string with text/endtext command. Strconv(string,13) encode and strconv(string,14) decode.Ĭlick on code to select -click outside to deselect I used also the 64 hexdecimal encoded strings working as well in vfp.this avoid some problems with unicode strings (not readable with vfp). Then you can integrate big pictures inside text/endtext codes without problem. In code *2* i used a js library file with 53 Ko for this purpose and demo. (even big) to a "compatible string" running without problem. ![]() The first code is able to convert any file,picture, exe. In text clause add flags as "pretext 1+2+4+8" to re evaluate the string dynamically.Īnd its all.the magic is this new string is accepted by vfp. The problem is how to embed a litteral string between command text/endtext for big and even very big strings ?Ĭut this big string into pieces of 1000 to 3000 bytes (not override the limit 8192 octets) and separate these chunks with ctrf (chr(13)+chr(10)). If you put in code between command text/endtext a big string (more 8192 octets), vfp returns error (in certain cases it crashes also).Ī string is limited theorically to 16.7 Mo (tested more this limit with no problem but not general). In text/endtext this string was limited to 8192 octets. Vfp has natively limited the litteral string to 255 chars. The web uses actually very big string to represent for ex a big picture,as 64 encoded string. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |