I’m developing a small tool which should allow the user to choose any random table from NF database, then select what field (or fields) does she want to export to html, and finally generate an html table containing the selected data (colors, padding, alignment, and all that stuff should be easily customizable too). Problem I find here comes when, after collecting the user’s wishes (i.e., selected table and fields), in a recordset of ‘Field’ (table 2000000041), I pass this record onto a codeunit which will write the html file. The codeunit receives the record and does this: (…) // and rest of the tags go here IF SelectedFields.FIND(’-’) THEN REPEAT htmlfile.WRITE(’’ + mypointer.FIELDNAME (SelectedFields.FieldName) + ‘’) UNTIL SelectedFields.NEXT = 0; (…) where, SelectedFields->record-> Field htmlfile-> file mypointer->record-> ¿?¿? DON´T KNOW WHERE TO POINT AT! the problem is that although we know perfectly well which fields should we write, and what table are they coming from, we just happen to get this information in runtime. And variables as ‘mypointer’ should have been defined before that. As it seems we cannot define variables in a dynamic way (anyone?), I’m looking for any solution or workaround that will fix this --preferably not using VB or other stuff. Any help will be greatly appreciated! Greetz, Paul Salazar Mora. p.s. the tool is really simple, but might help you a little --I’ll upload it when it’s done if someone’s interested.
There is no way to create a variable at runtime. So unless you have the variables defined at design time, you will probably have a hard time getting around using the C/Front. Soren Nielsen, moderator Integration/Developer NOLUG